mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Added documentation... and removed another stray debug line.
This commit is contained in:
parent
280699a75f
commit
a097525e15
@ -598,3 +598,41 @@ These roles are provided to refer to the described objects:
|
||||
.. role:: js:func
|
||||
js:data
|
||||
js:attr
|
||||
|
||||
The reStructuredText domain
|
||||
---------------------------
|
||||
|
||||
The reStructuredText domain (**rst**) provides the following directives:
|
||||
|
||||
.. directive:: .. rst:directive:: name
|
||||
|
||||
Describes a reST directive. The directive syntax (`..` prefix and
|
||||
`::` suffix) is optional and will be automatically added if not
|
||||
present. For example::
|
||||
|
||||
.. rst:directive:: foo
|
||||
|
||||
.. rst:directive:: .. bar:: baz
|
||||
|
||||
will be rendered as:
|
||||
|
||||
.. rst:directive:: foo
|
||||
|
||||
.. rst:directive:: .. bar:: baz
|
||||
|
||||
.. directive:: .. rst:role:: name
|
||||
|
||||
Describes a reST role. For example::
|
||||
|
||||
.. rst:role:: foo
|
||||
|
||||
|
||||
will be rendered as:
|
||||
|
||||
.. rst:role:: foo
|
||||
|
||||
These roles are provided to refer to the described objects:
|
||||
|
||||
.. rst:role:: rst:dir
|
||||
rst:role
|
||||
|
||||
|
@ -30,7 +30,6 @@ class ReSTMarkup(ObjectDescription):
|
||||
self.state.document.note_explicit_target(signode)
|
||||
|
||||
objects = self.env.domaindata['rst']['objects']
|
||||
print objects
|
||||
if name in objects:
|
||||
self.env.warn(
|
||||
self.env.docname,
|
||||
|
Loading…
Reference in New Issue
Block a user