Add tests for "any" role and default-role setting. Fix some minor bugs with "any".

This commit is contained in:
Georg Brandl
2014-09-19 14:17:36 +02:00
parent a973daea41
commit 6c3789a353
4 changed files with 47 additions and 19 deletions
+19
View File
@@ -356,6 +356,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.