summaryrefslogtreecommitdiff
path: root/tests/root/markup.txt
diff options
context:
space:
mode:
Diffstat (limited to 'tests/root/markup.txt')
-rw-r--r--tests/root/markup.txt29
1 files changed, 29 insertions, 0 deletions
diff --git a/tests/root/markup.txt b/tests/root/markup.txt
index 34e8fdb8..1ad7a13b 100644
--- a/tests/root/markup.txt
+++ b/tests/root/markup.txt
@@ -132,7 +132,9 @@ Adding \n to test unescaping.
*Linking inline markup*
* :pep:`8`
+* :pep:`Python Enhancement Proposal #8 <8>`
* :rfc:`1`
+* :rfc:`Request for Comments #1 <1>`
* :envvar:`HOME`
* :keyword:`with`
* :token:`try statement <try_stmt>`
@@ -140,6 +142,10 @@ Adding \n to test unescaping.
* :ref:`here <some-label>`
* :ref:`my-figure`
* :ref:`my-table`
+* :ref:`my-code-block`
+* :numref:`my-figure`
+* :numref:`my-table`
+* :numref:`my-code-block`
* :doc:`subdir/includes`
* ``:download:`` is tested in includes.txt
* :option:`Python -c option <python -c>`
@@ -226,8 +232,11 @@ Version markup
Code blocks
-----------
+.. _my-code-block:
+
.. code-block:: ruby
:linenos:
+ :caption: my ruby code
def ruby?
false
@@ -240,6 +249,7 @@ Misc stuff
Stuff [#]_
Reference lookup: [Ref1]_ (defined in another file).
+Reference lookup underscore: [Ref_1]_
.. seealso:: something, something else, something more
@@ -353,6 +363,25 @@ Only directive
Always present, because set through conf.py/command line.
+Any role
+--------
+
+.. default-role:: any
+
+Test referencing to `headings <with>` and `objects <func_without_body>`.
+Also `modules <mod>` and `classes <Time>`.
+
+More domains:
+
+* `JS <bar.baz>`
+* `C <SphinxType>`
+* `myobj` (user markup)
+* `n::Array`
+* `perl -c`
+
+.. default-role::
+
+
.. rubric:: Footnotes
.. [#] Like footnotes.