mirror of
https://github.com/snachodog/just-the-docs.git
synced 2025-09-13 21:33: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:
14
docs/tests/navigation/grandparent/a.md
Normal file
14
docs/tests/navigation/grandparent/a.md
Normal file
@@ -0,0 +1,14 @@
|
||||
---
|
||||
layout: default
|
||||
title: A
|
||||
has_children: true
|
||||
---
|
||||
|
||||
# A
|
||||
|
||||
A top-level page
|
||||
|
||||
```yaml
|
||||
title: A
|
||||
has_children: true
|
||||
```
|
14
docs/tests/navigation/grandparent/b.md
Normal file
14
docs/tests/navigation/grandparent/b.md
Normal file
@@ -0,0 +1,14 @@
|
||||
---
|
||||
layout: default
|
||||
title: B
|
||||
has_children: true
|
||||
---
|
||||
|
||||
# B
|
||||
|
||||
A top-level page
|
||||
|
||||
```yaml
|
||||
title: B
|
||||
has_children: true
|
||||
```
|
16
docs/tests/navigation/grandparent/ca.md
Normal file
16
docs/tests/navigation/grandparent/ca.md
Normal file
@@ -0,0 +1,16 @@
|
||||
---
|
||||
layout: default
|
||||
title: C
|
||||
parent: A
|
||||
has_children: true
|
||||
---
|
||||
|
||||
# C
|
||||
|
||||
A child of page A, and parent of page D
|
||||
|
||||
```yaml
|
||||
title: C
|
||||
parent: A
|
||||
has_children: true
|
||||
```
|
16
docs/tests/navigation/grandparent/cb.md
Normal file
16
docs/tests/navigation/grandparent/cb.md
Normal file
@@ -0,0 +1,16 @@
|
||||
---
|
||||
layout: default
|
||||
title: C
|
||||
parent: B
|
||||
has_children: true
|
||||
---
|
||||
|
||||
# C
|
||||
|
||||
A child of page B, and parent of page D
|
||||
|
||||
```yaml
|
||||
title: C
|
||||
parent: B
|
||||
has_children: true
|
||||
```
|
16
docs/tests/navigation/grandparent/dca.md
Normal file
16
docs/tests/navigation/grandparent/dca.md
Normal file
@@ -0,0 +1,16 @@
|
||||
---
|
||||
layout: default
|
||||
title: D
|
||||
parent: C
|
||||
grand_parent: A
|
||||
---
|
||||
|
||||
# D
|
||||
|
||||
A grandchild of page A
|
||||
|
||||
```yaml
|
||||
title: D
|
||||
parent: C
|
||||
grand_parent: A
|
||||
```
|
16
docs/tests/navigation/grandparent/dcb.md
Normal file
16
docs/tests/navigation/grandparent/dcb.md
Normal file
@@ -0,0 +1,16 @@
|
||||
---
|
||||
layout: default
|
||||
title: D
|
||||
parent: C
|
||||
grand_parent: B
|
||||
---
|
||||
|
||||
# D
|
||||
|
||||
A grandchild of page B
|
||||
|
||||
```yaml
|
||||
title: D
|
||||
parent: C
|
||||
grand_parent: B
|
||||
```
|
Reference in New Issue
Block a user