mirror of
https://github.com/snachodog/just-the-docs.git
synced 2025-09-13 13:23:32 -06:00
Added regression tests for navigation
See the change to `_config.yml` for how to activate the tests.
This commit is contained in:
15
docs/tests/navigation/exclude/excluded-child.md
Normal file
15
docs/tests/navigation/exclude/excluded-child.md
Normal file
@@ -0,0 +1,15 @@
|
||||
---
|
||||
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
|
||||
```
|
17
docs/tests/navigation/exclude/excluded-grandchild.md
Normal file
17
docs/tests/navigation/exclude/excluded-grandchild.md
Normal file
@@ -0,0 +1,17 @@
|
||||
---
|
||||
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
|
||||
```
|
15
docs/tests/navigation/exclude/excluded.md
Normal file
15
docs/tests/navigation/exclude/excluded.md
Normal file
@@ -0,0 +1,15 @@
|
||||
---
|
||||
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
|
||||
```
|
@@ -0,0 +1,15 @@
|
||||
---
|
||||
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
|
||||
```
|
16
docs/tests/navigation/exclude/non-excluded-child.md
Normal file
16
docs/tests/navigation/exclude/non-excluded-child.md
Normal file
@@ -0,0 +1,16 @@
|
||||
---
|
||||
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
|
||||
```
|
@@ -0,0 +1,17 @@
|
||||
---
|
||||
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
|
||||
```
|
17
docs/tests/navigation/exclude/non-excluded-grandchild.md
Normal file
17
docs/tests/navigation/exclude/non-excluded-grandchild.md
Normal file
@@ -0,0 +1,17 @@
|
||||
---
|
||||
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
|
||||
```
|
14
docs/tests/navigation/exclude/non-excluded.md
Normal file
14
docs/tests/navigation/exclude/non-excluded.md
Normal file
@@ -0,0 +1,14 @@
|
||||
---
|
||||
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
|
||||
```
|
6
docs/tests/navigation/exclude/untitled.md
Normal file
6
docs/tests/navigation/exclude/untitled.md
Normal file
@@ -0,0 +1,6 @@
|
||||
---
|
||||
layout: default
|
||||
---
|
||||
# Untitled
|
||||
|
||||
This page has no `title`, and should not appear in the navigation.
|
Reference in New Issue
Block a user