mirror of
https://github.com/snachodog/just-the-docs.git
synced 2025-09-13 13:23:32 -06:00
Tests updated
This commit is contained in:
13
docs/tests/navigation/exclude/0.md
Normal file
13
docs/tests/navigation/exclude/0.md
Normal 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
|
||||
```
|
15
docs/tests/navigation/exclude/00.md
Normal file
15
docs/tests/navigation/exclude/00.md
Normal 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
|
||||
```
|
17
docs/tests/navigation/exclude/000.md
Normal file
17
docs/tests/navigation/exclude/000.md
Normal 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
|
||||
```
|
17
docs/tests/navigation/exclude/001.md
Normal file
17
docs/tests/navigation/exclude/001.md
Normal 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
|
||||
```
|
15
docs/tests/navigation/exclude/01.md
Normal file
15
docs/tests/navigation/exclude/01.md
Normal 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
|
||||
```
|
17
docs/tests/navigation/exclude/010.md
Normal file
17
docs/tests/navigation/exclude/010.md
Normal 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
|
||||
```
|
17
docs/tests/navigation/exclude/011.md
Normal file
17
docs/tests/navigation/exclude/011.md
Normal 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
|
||||
```
|
13
docs/tests/navigation/exclude/1.md
Normal file
13
docs/tests/navigation/exclude/1.md
Normal 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
|
||||
```
|
15
docs/tests/navigation/exclude/10.md
Normal file
15
docs/tests/navigation/exclude/10.md
Normal 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
|
||||
```
|
17
docs/tests/navigation/exclude/100.md
Normal file
17
docs/tests/navigation/exclude/100.md
Normal 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
|
||||
```
|
17
docs/tests/navigation/exclude/101.md
Normal file
17
docs/tests/navigation/exclude/101.md
Normal 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
|
||||
```
|
15
docs/tests/navigation/exclude/11.md
Normal file
15
docs/tests/navigation/exclude/11.md
Normal 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
|
||||
```
|
17
docs/tests/navigation/exclude/110.md
Normal file
17
docs/tests/navigation/exclude/110.md
Normal 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
|
||||
```
|
17
docs/tests/navigation/exclude/111.md
Normal file
17
docs/tests/navigation/exclude/111.md
Normal 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
|
||||
```
|
@@ -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
|
||||
```
|
@@ -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
|
||||
```
|
@@ -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
|
||||
```
|
32
docs/tests/navigation/exclude/index.md
Normal file
32
docs/tests/navigation/exclude/index.md
Normal 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/)
|
@@ -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
|
||||
```
|
@@ -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
|
||||
```
|
@@ -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
|
||||
```
|
@@ -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
|
||||
```
|
@@ -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
|
||||
```
|
@@ -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`.
|
||||
|
Reference in New Issue
Block a user