diff options
| author | Georg Brandl <georg@python.org> | 2009-01-26 22:42:00 +0100 |
|---|---|---|
| committer | Georg Brandl <georg@python.org> | 2009-01-26 22:42:00 +0100 |
| commit | cfbfe8dc82f25bddfb6ec8a27fa78fd01c56c70a (patch) | |
| tree | a79ad31cdbfa03e3b03bb70232c71b61876df1d1 /doc/ext/appapi.rst | |
| parent | 1eec03fe7471cbf63d6b5e0595b26f0c05ebb744 (diff) | |
| parent | f5e2ccd6c0728861b0eaf9794b021ca498f51896 (diff) | |
| download | sphinx-cfbfe8dc82f25bddfb6ec8a27fa78fd01c56c70a.tar.gz | |
merge with 0.5
Diffstat (limited to 'doc/ext/appapi.rst')
| -rw-r--r-- | doc/ext/appapi.rst | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/doc/ext/appapi.rst b/doc/ext/appapi.rst index fcc29e38..00fd2e58 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) @@ -86,6 +86,13 @@ the following public API: source, *role* the role function (see the `Docutils documentation <http://docutils.sourceforge.net/docs/howto/rst-roles.html>`_ on details). +.. method:: Sphinx.add_generic_role(name, nodeclass) + + Register a Docutils role that does nothing but wrap its contents in the + node given by *nodeclass*. + + .. versionadded:: 0.6 + .. method:: Sphinx.add_description_unit(directivename, rolename, indextemplate='', parse_node=None, ref_nodeclass=None) This method is a very convenient way to add a new type of information that @@ -167,6 +174,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) |
