1
0
mirror of https://github.com/thangisme/notes.git synced 2024-11-19 12:46:06 -05:00

Tests updated

This commit is contained in:
PLanCompS 2020-09-28 12:08:27 +02:00
parent 76f8f064ac
commit aa247408e4
33 changed files with 288 additions and 155 deletions

View File

@ -0,0 +1,13 @@
---
layout: default
title: "0"
has_children: true
nav_exclude: true
---
# Tests for exclusion 0
```yaml
title: "0"
has_children: true
nav_exclude: true
```

View File

@ -0,0 +1,15 @@
---
layout: default
title: "00"
parent: "0"
has_children: true
nav_exclude: true
---
# Tests for exclusion 00
```yaml
title: "00"
parent: "0"
has_children: true
nav_exclude: true
```

View File

@ -0,0 +1,17 @@
---
layout: default
title: "000"
parent: "00"
grand_parent: "0"
has_children: false
nav_exclude: true
---
# Tests for exclusion 000
```yaml
title: "000"
parent: "00"
grand_parent: "0"
has_children: false
nav_exclude: true
```

View File

@ -0,0 +1,17 @@
---
layout: default
title: "001"
parent: "00"
grand_parent: "0"
has_children: false
nav_exclude: false
---
# Tests for exclusion 001
```yaml
title: "001"
parent: "00"
grand_parent: "0"
has_children: false
nav_exclude: false
```

View File

@ -0,0 +1,15 @@
---
layout: default
title: "01"
parent: "0"
has_children: true
nav_exclude: false
---
# Tests for exclusion 01
```yaml
title: "01"
parent: "0"
has_children: true
nav_exclude: false
```

View File

@ -0,0 +1,17 @@
---
layout: default
title: "010"
parent: "01"
grand_parent: "0"
has_children: false
nav_exclude: true
---
# Tests for exclusion 010
```yaml
title: "010"
parent: "01"
grand_parent: "0"
has_children: false
nav_exclude: true
```

View File

@ -0,0 +1,17 @@
---
layout: default
title: "011"
parent: "01"
grand_parent: "0"
has_children: false
nav_exclude: false
---
# Tests for exclusion 011
```yaml
title: "011"
parent: "01"
grand_parent: "0"
has_children: false
nav_exclude: false
```

View File

@ -0,0 +1,13 @@
---
layout: default
title: "1"
has_children: true
nav_exclude: false
---
# Tests for exclusion 1
```yaml
title: "1"
has_children: true
nav_exclude: false
```

View File

@ -0,0 +1,15 @@
---
layout: default
title: "10"
parent: "1"
has_children: true
nav_exclude: true
---
# Tests for exclusion 10
```yaml
title: "10"
parent: "1"
has_children: true
nav_exclude: true
```

View File

@ -0,0 +1,17 @@
---
layout: default
title: "100"
parent: "10"
grand_parent: "1"
has_children: false
nav_exclude: true
---
# Tests for exclusion 100
```yaml
title: "100"
parent: "10"
grand_parent: "1"
has_children: false
nav_exclude: true
```

View File

@ -0,0 +1,17 @@
---
layout: default
title: "101"
parent: "10"
grand_parent: "1"
has_children: false
nav_exclude: false
---
# Tests for exclusion 101
```yaml
title: "101"
parent: "10"
grand_parent: "1"
has_children: false
nav_exclude: false
```

View File

@ -0,0 +1,15 @@
---
layout: default
title: "11"
parent: "1"
has_children: true
nav_exclude: false
---
# Tests for exclusion 11
```yaml
title: "11"
parent: "1"
has_children: true
nav_exclude: false
```

View File

@ -0,0 +1,17 @@
---
layout: default
title: "110"
parent: "11"
grand_parent: "1"
has_children: false
nav_exclude: true
---
# Tests for exclusion 110
```yaml
title: "110"
parent: "11"
grand_parent: "1"
has_children: false
nav_exclude: true
```

View File

@ -0,0 +1,17 @@
---
layout: default
title: "111"
parent: "11"
grand_parent: "1"
has_children: false
nav_exclude: false
---
# Tests for exclusion 111
```yaml
title: "111"
parent: "11"
grand_parent: "1"
has_children: false
nav_exclude: false
```

View File

@ -1,15 +0,0 @@
---
layout: default
title: Excluded Child
parent: Not Excluded
nav_exclude: true
---
# Excluded Child
This child page is explicitly excluded, and should not appear in the navigation.
```yaml
title: Excluded Child
parent: Not Excluded
nav_exclude: true
```

View File

@ -1,17 +0,0 @@
---
layout: default
title: Excluded Grandchild
parent: Non-excluded Child
grand_parent: Non-excluded
nav_exclude: true
---
# Excluded Grandchild
This grandchild page is explicitly excluded, and should not appear in the navigation.
```yaml
title: Excluded Grandchild
parent: Non-excluded Child
grand_parent: Non-excluded
nav_exclude: true
```

View File

@ -1,15 +0,0 @@
---
layout: default
title: Excluded
has_children: true
nav_exclude: true
---
# Excluded
This top-level page is explicitly excluded, and should not appear in the navigation. Any child pages are implicitly excluded.
```yaml
title: Excluded
has_children: true
nav_exclude: true
```

View File

@ -0,0 +1,32 @@
---
layout: default
title: Exclusion
parent: Navigation
grand_parent: Tests
---
# Tests for exclusion Exclusion
## Tests for exclusion Included in main navigation
- ["1"](1/)
- ["11"](11/)
- ["111"](111/)
## Tests for exclusion Included only in child navigation
- ["110"](110/)
- ["10"](10/)
- ["101"](101/)
- ["100"](100/)
## Tests for exclusion Not included in navigation
- ["0"](0/)
- ["01"](01/)
- ["011"](011/)
- ["010"](010/)
- ["00"](00/)
- ["001"](001/)
- ["000"](000/)
- ["Untitled"](untitled/)

View File

@ -1,15 +0,0 @@
---
layout: default
title: Non-excluded Child of Excluded
parent: Excluded
nav_exclude: false
---
# Non-excluded Child of Excluded
This child page is explicitly not excluded, but its parent page is excluded, so it should not appear in the navigation.
```yaml
title: Non-excluded Child of Excluded
parent: Excluded
nav_exclude: false
```

View File

@ -1,16 +0,0 @@
---
layout: default
title: Non-excluded Child
parent: Non-excluded
has_children: true
nav_exclude: false
---
# Non-excluded Child
This child page is explicitly not excluded, and should appear in the navigation.
```yaml
title: Non-excluded Child
parent: Non-excluded
nav_exclude: false
```

View File

@ -1,17 +0,0 @@
---
layout: default
title: Non-excluded Grandchild of Excluded
parent: Non-excluded Child
grand_parent: Excluded
nav_exclude: false
---
# Non-excluded Grandchild of Excluded
This grandchild page is explicitly not excluded, and neither is its parent page; but its grandparent page is excluded, so it should not appear in the navigation.
```yaml
title: Non-excluded Grandchild of Excluded
parent: Non-excluded Child
grand_parent: Excluded
nav_exclude: false
```

View File

@ -1,17 +0,0 @@
---
layout: default
title: Non-excluded Grandchild
parent: Non-excluded Child
grand_parent: Non-excluded
nav_exclude: false
---
# Non-excluded Grandchild
This grandchild page is explicitly not excluded, and neither is its parent page nor its grandparent page, so it should appear in the navigation.
```yaml
title: Non-excluded Grandchild of Excluded
parent: Non-excluded Child
grand_parent: Excluded
nav_exclude: false
```

View File

@ -1,14 +0,0 @@
---
layout: default
title: Non-excluded
has_children: true
nav_exclude: false
---
# Non-excluded
This top-level page is explicitly not excluded, and should appear in the navigation.
```yaml
title: Non-excluded
nav_exclude: false
```

View File

@ -1,6 +1,6 @@
---
layout: default
---
# Untitled
# Tests for exclusion Untitled
This page does not have a `title`, and it is excluded from the navigation -- unless it is located in a Jekyll collection (which provides default titles). To exclude a title-less page from the navigation, regardless of whether it is located in a collection, set `nav_exclude: true`.

View File

@ -0,0 +1,12 @@
---
layout: default
title: Parent disambiguation
parent: Navigation
grand_parent: Tests
---
# Parent disambiguation
- [Page A](a/) has a child [page with title C](ca/), and a grandchild [page with title D](dca/).
- [Page B](b/) has a child [page with title C](cb/), and a grandchild [page with title D](dcb/).
- The grandchild pages specify their parent and grandparent pages, so there is no ambiguity.

View File

@ -2,27 +2,7 @@
layout: default
title: Navigation
parent: Tests
has_children: true
---
# Navigation
## Parent page disambiguation
- [Page A](grandparent/a/) has a child [page with title C](grandparent/ca/), and a grandchild [page with title D](grandparent/dca/).
- [Page B](grandparent/b/) has a child [page with title C](grandparent/cb/), and a grandchild [page with title D](grandparent/dcb/).
- The grandchild pages specify their parent and grandparent pages, so there is no ambiguity.
## Page exclusion
- An [untitled page](exclude/untitled/) is excluded from the navigation.
- An excluded [top level page](exclude/excluded/), [child page](exclude/excluded-child/), or [grandchild page](exclude/excluded-grandchild/) does not appear.
- A non-excluded [top level page](exclude/non-excluded/) appears; and a non-excluded [child page](exclude/non-excluded-child/) or [grandchild page](exclude/non-excluded-grandchild/) appears if its parent appears.
- A non-excluded child page or grandchild page does not appear if its parent is excluded.
## Page order
- [Default](order/default/), using `title` instead of `nav_order` fields.
- [Strings](order/strings/), lexicographically ordered, possibly case-insensitively.
- [Integers](order/integers/), numerically ordered.
- [Floats](order/floats/), numerically ordered.
- [Mixture](order/mixture/), with numbers before strings.

View File

@ -1,7 +1,7 @@
---
layout: default
title: Default
parent: Order
parent: Tests for navigation order
nav_order: 1
has_children: true
---

View File

@ -1,7 +1,7 @@
---
layout: default
title: Floats
parent: Order
parent: Tests for navigation order
nav_order: 4
has_children: true
---

View File

@ -1,8 +1,14 @@
---
layout: default
title: Order
has_children: true
nav_order: 110
parent: Navigation
grand_parent: Tests
---
# Order
- [Default](default/), using `title` instead of `nav_order` fields.
- [Strings](strings/), lexicographically ordered, possibly case-insensitively.
- [Integers](integers/), numerically ordered.
- [Floats](floats/), numerically ordered.
- [Mixture](mixture/), with numbers before strings.

View File

@ -1,7 +1,7 @@
---
layout: default
title: Integers
parent: Order
parent: Tests for navigation order
nav_order: 3
has_children: true
---

View File

@ -1,7 +1,7 @@
---
layout: default
title: Mixture
parent: Order
parent: Tests for navigation order
nav_order: 5
has_children: true
---

View File

@ -0,0 +1,7 @@
---
layout: default
title: Tests for order
has_children: true
---
# Order

View File

@ -1,7 +1,7 @@
---
layout: default
title: Strings
parent: Order
parent: Tests for navigation order
nav_order: 2
has_children: true
---