summaryrefslogtreecommitdiffstats
path: root/tests/roots/test-toctree-domain-objects
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-09-19 04:57:08 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-09-19 04:57:08 +0000
commit7cd3cd5f0f0393459ef746009ab80c27296eb49e (patch)
treef3df6f3c3a95d0a6344edd50208adf7e4ded8eb8 /tests/roots/test-toctree-domain-objects
parentAdding debian version 7.3.7-3. (diff)
downloadsphinx-7cd3cd5f0f0393459ef746009ab80c27296eb49e.tar.xz
sphinx-7cd3cd5f0f0393459ef746009ab80c27296eb49e.zip
Merging upstream version 7.4.7.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'tests/roots/test-toctree-domain-objects')
-rw-r--r--tests/roots/test-toctree-domain-objects/document_scoping.rst23
-rw-r--r--tests/roots/test-toctree-domain-objects/index.rst1
2 files changed, 24 insertions, 0 deletions
diff --git a/tests/roots/test-toctree-domain-objects/document_scoping.rst b/tests/roots/test-toctree-domain-objects/document_scoping.rst
new file mode 100644
index 0000000..49aba9e
--- /dev/null
+++ b/tests/roots/test-toctree-domain-objects/document_scoping.rst
@@ -0,0 +1,23 @@
+Level 1
+=======
+
+.. py:class:: ClassLevel1a
+ ClassLevel1b
+
+ .. py:method:: f()
+
+.. py:method:: ClassLevel1a.g()
+
+.. py:method:: ClassLevel1b.g()
+
+Level 2
+-------
+
+.. py:class:: ClassLevel2a
+ ClassLevel2b
+
+ .. py:method:: f()
+
+.. py:method:: ClassLevel2a.g()
+
+.. py:method:: ClassLevel2b.g()
diff --git a/tests/roots/test-toctree-domain-objects/index.rst b/tests/roots/test-toctree-domain-objects/index.rst
index 77ee010..5f04172 100644
--- a/tests/roots/test-toctree-domain-objects/index.rst
+++ b/tests/roots/test-toctree-domain-objects/index.rst
@@ -4,3 +4,4 @@
:name: mastertoc
domains
+ document_scoping