Added documentation... and removed another stray debug line.

This commit is contained in:
Leontius Adhika Pradhana 2010-04-16 03:55:18 +08:00
parent 280699a75f
commit a097525e15
2 changed files with 38 additions and 1 deletions

View File

@ -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

View File

@ -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,