summaryrefslogtreecommitdiff
path: root/doc/ext/appapi.rst
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2009-01-13 23:59:01 +0100
committerGeorg Brandl <georg@python.org>2009-01-13 23:59:01 +0100
commit2d740f6f61c6a783fc0c270188393e30997ddb25 (patch)
tree959f93834256617ea84f2144baa4bf5cb8d18dee /doc/ext/appapi.rst
parentc8095115faac2bf326c856f531691bfe0661b613 (diff)
parent778631271c3ee71d0e54e6405db1a951f4de4e09 (diff)
downloadsphinx-2d740f6f61c6a783fc0c270188393e30997ddb25.tar.gz
merge with 0.5
Diffstat (limited to 'doc/ext/appapi.rst')
-rw-r--r--doc/ext/appapi.rst9
1 files changed, 8 insertions, 1 deletions
diff --git a/doc/ext/appapi.rst b/doc/ext/appapi.rst
index fcc29e38..3dd5282b 100644
--- a/doc/ext/appapi.rst
+++ b/doc/ext/appapi.rst
@@ -13,7 +13,7 @@ the following public API:
.. method:: Sphinx.add_builder(builder)
Register a new builder. *builder* must be a class that inherits from
- :class:`~sphinx.builder.Builder`.
+ :class:`~sphinx.builders.Builder`.
.. method:: Sphinx.add_config_value(name, default, rebuild_env)
@@ -167,6 +167,13 @@ the following public API:
:confval:`the docs for the config value <html_static_path>`.
.. versionadded:: 0.5
+
+.. method:: Sphinx.add_lexer(alias, lexer)
+
+ Use *lexer*, which must be an instance of a Pygments lexer class, to
+ highlight code blocks with the given language *alias*.
+
+ .. versionadded:: 0.6
.. method:: Sphinx.connect(event, callback)