summaryrefslogtreecommitdiffstats
path: root/tests/roots/test-toctree-domain-objects
diff options
context:
space:
mode:
Diffstat (limited to 'tests/roots/test-toctree-domain-objects')
-rw-r--r--tests/roots/test-toctree-domain-objects/conf.py0
-rw-r--r--tests/roots/test-toctree-domain-objects/domains.rst39
-rw-r--r--tests/roots/test-toctree-domain-objects/index.rst6
3 files changed, 45 insertions, 0 deletions
diff --git a/tests/roots/test-toctree-domain-objects/conf.py b/tests/roots/test-toctree-domain-objects/conf.py
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tests/roots/test-toctree-domain-objects/conf.py
diff --git a/tests/roots/test-toctree-domain-objects/domains.rst b/tests/roots/test-toctree-domain-objects/domains.rst
new file mode 100644
index 0000000..61467cf
--- /dev/null
+++ b/tests/roots/test-toctree-domain-objects/domains.rst
@@ -0,0 +1,39 @@
+test-domain-objects
+===================
+
+.. py:module:: hello
+
+.. py:function:: world() -> str
+
+ Prints "Hello, World!" to stdout
+
+.. py:class:: HelloWorldPrinter
+
+ Controls printing of hello world
+
+ .. py:method:: set_language()
+
+ Sets the language of the HelloWorldPrinter instance
+
+ .. py:attribute:: output_count
+
+ Count of outputs of "Hello, World!"
+
+ .. py:method:: print_normal()
+ :async:
+ :classmethod:
+
+ Prints the normal form of "Hello, World!"
+
+ .. py:method:: print()
+
+ Prints "Hello, World!", including in the chosen language
+
+.. py:function:: exit()
+ :module: sys
+
+ Quits the interpreter
+
+.. js:function:: fetch(resource)
+
+ Fetches the given resource, returns a Promise \ No newline at end of file
diff --git a/tests/roots/test-toctree-domain-objects/index.rst b/tests/roots/test-toctree-domain-objects/index.rst
new file mode 100644
index 0000000..77ee010
--- /dev/null
+++ b/tests/roots/test-toctree-domain-objects/index.rst
@@ -0,0 +1,6 @@
+.. toctree::
+ :numbered:
+ :caption: Table of Contents
+ :name: mastertoc
+
+ domains