mirror of
https://github.com/snachodog/just-the-docs.git
synced 2025-09-14 13:53:32 -06:00
Reorganise tests
Make the titles of test pages more suggestive. Refactor the documentation of the tests.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
---
|
||||
layout: default
|
||||
title: A
|
||||
title: Tests for disambiguation A
|
||||
has_children: true
|
||||
---
|
||||
|
||||
@@ -9,6 +9,6 @@ has_children: true
|
||||
A top-level page
|
||||
|
||||
```yaml
|
||||
title: A
|
||||
title: Tests for disambiguation A
|
||||
has_children: true
|
||||
```
|
||||
|
@@ -1,6 +1,6 @@
|
||||
---
|
||||
layout: default
|
||||
title: B
|
||||
title: Tests for disambiguation B
|
||||
has_children: true
|
||||
---
|
||||
|
||||
@@ -9,6 +9,6 @@ has_children: true
|
||||
A top-level page
|
||||
|
||||
```yaml
|
||||
title: B
|
||||
title: Tests for disambiguation B
|
||||
has_children: true
|
||||
```
|
||||
|
@@ -1,7 +1,7 @@
|
||||
---
|
||||
layout: default
|
||||
title: C
|
||||
parent: A
|
||||
title: Tests for disambiguation C
|
||||
parent: Tests for disambiguation A
|
||||
has_children: true
|
||||
---
|
||||
|
||||
@@ -10,7 +10,7 @@ has_children: true
|
||||
A child of page A, and parent of page D
|
||||
|
||||
```yaml
|
||||
title: C
|
||||
parent: A
|
||||
title: Tests for disambiguation C
|
||||
parent: Tests for disambiguation A
|
||||
has_children: true
|
||||
```
|
||||
|
@@ -1,7 +1,7 @@
|
||||
---
|
||||
layout: default
|
||||
title: C
|
||||
parent: B
|
||||
title: Tests for disambiguation C
|
||||
parent: Tests for disambiguation B
|
||||
has_children: true
|
||||
---
|
||||
|
||||
@@ -10,7 +10,7 @@ has_children: true
|
||||
A child of page B, and parent of page D
|
||||
|
||||
```yaml
|
||||
title: C
|
||||
parent: B
|
||||
title: Tests for disambiguation C
|
||||
parent: Tests for disambiguation B
|
||||
has_children: true
|
||||
```
|
||||
|
@@ -1,8 +1,8 @@
|
||||
---
|
||||
layout: default
|
||||
title: D
|
||||
parent: C
|
||||
grand_parent: A
|
||||
title: Tests for disambiguation D
|
||||
parent: Tests for disambiguation C
|
||||
grand_parent: Tests for disambiguation A
|
||||
---
|
||||
|
||||
# D
|
||||
@@ -10,7 +10,7 @@ grand_parent: A
|
||||
A grandchild of page A
|
||||
|
||||
```yaml
|
||||
title: D
|
||||
parent: C
|
||||
grand_parent: A
|
||||
title: Tests for disambiguation D
|
||||
parent: Tests for disambiguation C
|
||||
grand_parent: Tests for disambiguation A
|
||||
```
|
||||
|
@@ -1,8 +1,8 @@
|
||||
---
|
||||
layout: default
|
||||
title: D
|
||||
parent: C
|
||||
grand_parent: B
|
||||
title: Tests for disambiguation D
|
||||
parent: Tests for disambiguation C
|
||||
grand_parent: Tests for disambiguation B
|
||||
---
|
||||
|
||||
# D
|
||||
@@ -10,7 +10,7 @@ grand_parent: B
|
||||
A grandchild of page B
|
||||
|
||||
```yaml
|
||||
title: D
|
||||
parent: C
|
||||
grand_parent: B
|
||||
title: Tests for disambiguation D
|
||||
parent: Tests for disambiguation C
|
||||
grand_parent: Tests for disambiguation B
|
||||
```
|
||||
|
@@ -1,11 +1,13 @@
|
||||
---
|
||||
layout: default
|
||||
title: Parent disambiguation
|
||||
title: Disambiguation
|
||||
parent: Navigation
|
||||
grand_parent: Tests
|
||||
---
|
||||
|
||||
# Parent disambiguation
|
||||
# Disambiguation
|
||||
|
||||
When different pages with children have the same title, referencing the relevant grandparent in the children disambiguates which page is intended.
|
||||
|
||||
- [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/).
|
||||
|
Reference in New Issue
Block a user