diff --git a/docs/tests/navigation/exclude/0.md b/docs/tests/navigation/exclude/0.md new file mode 100644 index 0000000..3e49590 --- /dev/null +++ b/docs/tests/navigation/exclude/0.md @@ -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 +``` diff --git a/docs/tests/navigation/exclude/00.md b/docs/tests/navigation/exclude/00.md new file mode 100644 index 0000000..5353004 --- /dev/null +++ b/docs/tests/navigation/exclude/00.md @@ -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 +``` diff --git a/docs/tests/navigation/exclude/000.md b/docs/tests/navigation/exclude/000.md new file mode 100644 index 0000000..fa34b83 --- /dev/null +++ b/docs/tests/navigation/exclude/000.md @@ -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 +``` diff --git a/docs/tests/navigation/exclude/001.md b/docs/tests/navigation/exclude/001.md new file mode 100644 index 0000000..823cfad --- /dev/null +++ b/docs/tests/navigation/exclude/001.md @@ -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 +``` diff --git a/docs/tests/navigation/exclude/01.md b/docs/tests/navigation/exclude/01.md new file mode 100644 index 0000000..499230e --- /dev/null +++ b/docs/tests/navigation/exclude/01.md @@ -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 +``` diff --git a/docs/tests/navigation/exclude/010.md b/docs/tests/navigation/exclude/010.md new file mode 100644 index 0000000..01f498e --- /dev/null +++ b/docs/tests/navigation/exclude/010.md @@ -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 +``` diff --git a/docs/tests/navigation/exclude/011.md b/docs/tests/navigation/exclude/011.md new file mode 100644 index 0000000..e1413b3 --- /dev/null +++ b/docs/tests/navigation/exclude/011.md @@ -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 +``` diff --git a/docs/tests/navigation/exclude/1.md b/docs/tests/navigation/exclude/1.md new file mode 100644 index 0000000..4200f2c --- /dev/null +++ b/docs/tests/navigation/exclude/1.md @@ -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 +``` diff --git a/docs/tests/navigation/exclude/10.md b/docs/tests/navigation/exclude/10.md new file mode 100644 index 0000000..c68339e --- /dev/null +++ b/docs/tests/navigation/exclude/10.md @@ -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 +``` diff --git a/docs/tests/navigation/exclude/100.md b/docs/tests/navigation/exclude/100.md new file mode 100644 index 0000000..22d144e --- /dev/null +++ b/docs/tests/navigation/exclude/100.md @@ -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 +``` diff --git a/docs/tests/navigation/exclude/101.md b/docs/tests/navigation/exclude/101.md new file mode 100644 index 0000000..5f4a0ee --- /dev/null +++ b/docs/tests/navigation/exclude/101.md @@ -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 +``` diff --git a/docs/tests/navigation/exclude/11.md b/docs/tests/navigation/exclude/11.md new file mode 100644 index 0000000..6ec08b3 --- /dev/null +++ b/docs/tests/navigation/exclude/11.md @@ -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 +``` diff --git a/docs/tests/navigation/exclude/110.md b/docs/tests/navigation/exclude/110.md new file mode 100644 index 0000000..a9e8610 --- /dev/null +++ b/docs/tests/navigation/exclude/110.md @@ -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 +``` diff --git a/docs/tests/navigation/exclude/111.md b/docs/tests/navigation/exclude/111.md new file mode 100644 index 0000000..524ab89 --- /dev/null +++ b/docs/tests/navigation/exclude/111.md @@ -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 +``` diff --git a/docs/tests/navigation/exclude/excluded-child.md b/docs/tests/navigation/exclude/excluded-child.md deleted file mode 100644 index b7b4f9a..0000000 --- a/docs/tests/navigation/exclude/excluded-child.md +++ /dev/null @@ -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 -``` diff --git a/docs/tests/navigation/exclude/excluded-grandchild.md b/docs/tests/navigation/exclude/excluded-grandchild.md deleted file mode 100644 index 2e3eadf..0000000 --- a/docs/tests/navigation/exclude/excluded-grandchild.md +++ /dev/null @@ -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 -``` diff --git a/docs/tests/navigation/exclude/excluded.md b/docs/tests/navigation/exclude/excluded.md deleted file mode 100644 index 50cebd3..0000000 --- a/docs/tests/navigation/exclude/excluded.md +++ /dev/null @@ -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 -``` diff --git a/docs/tests/navigation/exclude/index.md b/docs/tests/navigation/exclude/index.md new file mode 100644 index 0000000..cdeeaab --- /dev/null +++ b/docs/tests/navigation/exclude/index.md @@ -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/) diff --git a/docs/tests/navigation/exclude/non-excluded-child-of-excluded.md b/docs/tests/navigation/exclude/non-excluded-child-of-excluded.md deleted file mode 100644 index efe478c..0000000 --- a/docs/tests/navigation/exclude/non-excluded-child-of-excluded.md +++ /dev/null @@ -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 -``` diff --git a/docs/tests/navigation/exclude/non-excluded-child.md b/docs/tests/navigation/exclude/non-excluded-child.md deleted file mode 100644 index b7ec02d..0000000 --- a/docs/tests/navigation/exclude/non-excluded-child.md +++ /dev/null @@ -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 -``` diff --git a/docs/tests/navigation/exclude/non-excluded-grandchild-of-excluded.md b/docs/tests/navigation/exclude/non-excluded-grandchild-of-excluded.md deleted file mode 100644 index 8dc7720..0000000 --- a/docs/tests/navigation/exclude/non-excluded-grandchild-of-excluded.md +++ /dev/null @@ -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 -``` diff --git a/docs/tests/navigation/exclude/non-excluded-grandchild.md b/docs/tests/navigation/exclude/non-excluded-grandchild.md deleted file mode 100644 index 6fc2dd1..0000000 --- a/docs/tests/navigation/exclude/non-excluded-grandchild.md +++ /dev/null @@ -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 -``` diff --git a/docs/tests/navigation/exclude/non-excluded.md b/docs/tests/navigation/exclude/non-excluded.md deleted file mode 100644 index 849c4f2..0000000 --- a/docs/tests/navigation/exclude/non-excluded.md +++ /dev/null @@ -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 -``` diff --git a/docs/tests/navigation/exclude/untitled.md b/docs/tests/navigation/exclude/untitled.md index 8fcd544..d822889 100644 --- a/docs/tests/navigation/exclude/untitled.md +++ b/docs/tests/navigation/exclude/untitled.md @@ -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`. diff --git a/docs/tests/navigation/grandparent/index.md b/docs/tests/navigation/grandparent/index.md new file mode 100644 index 0000000..980a38b --- /dev/null +++ b/docs/tests/navigation/grandparent/index.md @@ -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. diff --git a/docs/tests/navigation/index.md b/docs/tests/navigation/index.md index 50587d8..90c6711 100644 --- a/docs/tests/navigation/index.md +++ b/docs/tests/navigation/index.md @@ -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. diff --git a/docs/tests/navigation/order/default/index.md b/docs/tests/navigation/order/default/index.md index d672d77..3c9cd8f 100644 --- a/docs/tests/navigation/order/default/index.md +++ b/docs/tests/navigation/order/default/index.md @@ -1,7 +1,7 @@ --- layout: default title: Default -parent: Order +parent: Tests for navigation order nav_order: 1 has_children: true --- diff --git a/docs/tests/navigation/order/floats/index.md b/docs/tests/navigation/order/floats/index.md index 2a3db37..145ed50 100644 --- a/docs/tests/navigation/order/floats/index.md +++ b/docs/tests/navigation/order/floats/index.md @@ -1,7 +1,7 @@ --- layout: default title: Floats -parent: Order +parent: Tests for navigation order nav_order: 4 has_children: true --- diff --git a/docs/tests/navigation/order/index.md b/docs/tests/navigation/order/index.md index c1b488a..427cc93 100644 --- a/docs/tests/navigation/order/index.md +++ b/docs/tests/navigation/order/index.md @@ -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. diff --git a/docs/tests/navigation/order/integers/index.md b/docs/tests/navigation/order/integers/index.md index 674c841..093944c 100644 --- a/docs/tests/navigation/order/integers/index.md +++ b/docs/tests/navigation/order/integers/index.md @@ -1,7 +1,7 @@ --- layout: default title: Integers -parent: Order +parent: Tests for navigation order nav_order: 3 has_children: true --- diff --git a/docs/tests/navigation/order/mixture/index.md b/docs/tests/navigation/order/mixture/index.md index 1d45bc7..5b25463 100644 --- a/docs/tests/navigation/order/mixture/index.md +++ b/docs/tests/navigation/order/mixture/index.md @@ -1,7 +1,7 @@ --- layout: default title: Mixture -parent: Order +parent: Tests for navigation order nav_order: 5 has_children: true --- diff --git a/docs/tests/navigation/order/order.md b/docs/tests/navigation/order/order.md new file mode 100644 index 0000000..2d8cebf --- /dev/null +++ b/docs/tests/navigation/order/order.md @@ -0,0 +1,7 @@ +--- +layout: default +title: Tests for order +has_children: true +--- + +# Order diff --git a/docs/tests/navigation/order/strings/index.md b/docs/tests/navigation/order/strings/index.md index 3eb5bc5..10d20fa 100644 --- a/docs/tests/navigation/order/strings/index.md +++ b/docs/tests/navigation/order/strings/index.md @@ -1,7 +1,7 @@ --- layout: default title: Strings -parent: Order +parent: Tests for navigation order nav_order: 2 has_children: true ---