Add "nature" theme, as used by PIP and distribute.

This commit is contained in:
Georg Brandl
2010-01-03 19:40:07 +01:00
parent 7bafd3d553
commit 443eb4e594
5 changed files with 248 additions and 5 deletions

View File

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