summaryrefslogtreecommitdiff
path: root/doc/ext/appapi.rst
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2010-01-03 19:40:07 +0100
committerGeorg Brandl <georg@python.org>2010-01-03 19:40:07 +0100
commit49e8e51a319f5344ab25c8fa5523123153ad8ae3 (patch)
tree091deb68ab67463798e1b8858ea6fb73ebf9d739 /doc/ext/appapi.rst
parentbc033e2d4ced76efe960ea557ac56e4142f33222 (diff)
downloadsphinx-49e8e51a319f5344ab25c8fa5523123153ad8ae3.tar.gz
Add "nature" theme, as used by PIP and distribute.
Diffstat (limited to 'doc/ext/appapi.rst')
-rw-r--r--doc/ext/appapi.rst8
1 files changed, 6 insertions, 2 deletions
diff --git a/doc/ext/appapi.rst b/doc/ext/appapi.rst
index 0a3dae8f..9b2d039c 100644
--- a/doc/ext/appapi.rst
+++ b/doc/ext/appapi.rst
@@ -56,7 +56,9 @@ the following public API:
given as keyword arguments: the keyword must be one or more of ``'html'``,
``'latex'``, ``'text'``, the value a 2-tuple of ``(visit, depart)`` methods.
``depart`` can be ``None`` if the ``visit`` function raises
- :exc:`docutils.nodes.SkipNode`. Example::
+ :exc:`docutils.nodes.SkipNode`. Example:
+
+ .. code-block:: python
class math(docutils.nodes.Element)
@@ -98,7 +100,9 @@ the following public API:
support directive classes otherwise).
For example, the (already existing) :dir:`literalinclude` directive would be
- added like this::
+ added like this:
+
+ .. code-block:: python
from docutils.parsers.rst import directives
add_directive('literalinclude', literalinclude_directive,