Skip to content

Commit 1c47231

Browse files
committed
test: add CrossRefs test documents for dependency cascade testing
Adds 4 documents with 13 cross-references: - Index.rst: Hub document with 3 labels - DependentA/B/C.rst: Each references hub and siblings This enables testing: - Cross-reference rendering - Dependency tracking - Cascade re-rendering when hub is modified
1 parent 0f4a553 commit 1c47231

4 files changed

Lines changed: 92 additions & 0 deletions

File tree

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
.. include:: /Includes.rst.txt
2+
3+
.. _crossrefs-dependent-a:
4+
5+
===========
6+
Dependent A
7+
===========
8+
9+
This document depends on the hub via cross-references.
10+
11+
References to hub:
12+
13+
* See :ref:`crossrefs-hub` for the main overview
14+
* Details in :ref:`crossrefs-section-one`
15+
* More at :ref:`crossrefs-section-two`
16+
17+
References to siblings:
18+
19+
* Related: :ref:`crossrefs-dependent-b`
20+
* Also see: :ref:`crossrefs-dependent-c`
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
.. include:: /Includes.rst.txt
2+
3+
.. _crossrefs-dependent-b:
4+
5+
===========
6+
Dependent B
7+
===========
8+
9+
Another document depending on the hub.
10+
11+
References to hub:
12+
13+
* Main: :ref:`crossrefs-main`
14+
* Section: :ref:`crossrefs-section-one`
15+
16+
References to siblings:
17+
18+
* See also: :ref:`crossrefs-dependent-a`
19+
* And: :ref:`crossrefs-dependent-c`
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
.. include:: /Includes.rst.txt
2+
3+
.. _crossrefs-dependent-c:
4+
5+
===========
6+
Dependent C
7+
===========
8+
9+
Third document depending on the hub.
10+
11+
References to hub:
12+
13+
* Overview: :ref:`crossrefs-hub`
14+
* Section two details: :ref:`crossrefs-section-two`
15+
16+
References to siblings:
17+
18+
* Related A: :ref:`crossrefs-dependent-a`
19+
* Related B: :ref:`crossrefs-dependent-b`
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
.. include:: /Includes.rst.txt
2+
3+
.. _crossrefs-hub:
4+
.. _crossrefs-main:
5+
6+
================
7+
Cross-References
8+
================
9+
10+
This section tests cross-reference functionality and dependency cascading.
11+
12+
.. _crossrefs-section-one:
13+
14+
Section One
15+
===========
16+
17+
This is a section that can be referenced by other documents.
18+
19+
.. _crossrefs-section-two:
20+
21+
Section Two
22+
===========
23+
24+
Another referenceable section.
25+
26+
.. contents:: In this chapter
27+
:local:
28+
:depth: 2
29+
30+
.. toctree::
31+
:titlesonly:
32+
:glob:
33+
34+
*

0 commit comments

Comments
 (0)