summaryrefslogtreecommitdiff
path: root/doc
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
parentbc033e2d4ced76efe960ea557ac56e4142f33222 (diff)
downloadsphinx-49e8e51a319f5344ab25c8fa5523123153ad8ae3.tar.gz
Add "nature" theme, as used by PIP and distribute.
Diffstat (limited to 'doc')
-rw-r--r--doc/ext/appapi.rst8
-rw-r--r--doc/theming.rst8
2 files changed, 12 insertions, 4 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,
diff --git a/doc/theming.rst b/doc/theming.rst
index c2566ac3..4771dbec 100644
--- a/doc/theming.rst
+++ b/doc/theming.rst
@@ -65,9 +65,9 @@ Builtin themes
| | |
| *scrolls* | *agogo* |
+--------------------+--------------------+
-| |traditional| | |
+| |traditional| | |nature| |
| | |
-| *traditional* | |
+| *traditional* | *nature* |
+--------------------+--------------------+
.. |default| image:: themes/default.png
@@ -75,6 +75,7 @@ Builtin themes
.. |scrolls| image:: themes/scrolls.png
.. |agogo| image:: themes/agogo.png
.. |traditional| image:: themes/traditional.png
+.. |nature| image:: themes/nature.png
Sphinx comes with a selection of themes to choose from.
@@ -157,6 +158,9 @@ These themes are:
- **headerlinkcolor** (CSS color): Color for the backreference link in
headings.
+* **nature** -- A greenish theme. There are currently no options beyond
+ *nosidebar*.
+
* **traditional** -- A theme resembling the old Python documentation. There are
currently no options beyond *nosidebar*.