2014-01-20 10:21:44 -06:00
|
|
|
|
.. _dev-extensions:
|
|
|
|
|
|
|
|
|
|
Developing extensions for Sphinx
|
|
|
|
|
================================
|
|
|
|
|
|
|
|
|
|
Since many projects will need special features in their documentation, Sphinx is
|
|
|
|
|
designed to be extensible on several levels.
|
|
|
|
|
|
|
|
|
|
This is what you can do in an extension: First, you can add new
|
|
|
|
|
:term:`builder`\s to support new output formats or actions on the parsed
|
|
|
|
|
documents. Then, it is possible to register custom reStructuredText roles and
|
|
|
|
|
directives, extending the markup. And finally, there are so-called "hook
|
|
|
|
|
points" at strategic places throughout the build process, where an extension can
|
|
|
|
|
register a hook and run specialized code.
|
|
|
|
|
|
|
|
|
|
An extension is simply a Python module. When an extension is loaded, Sphinx
|
|
|
|
|
imports this module and executes its ``setup()`` function, which in turn
|
|
|
|
|
notifies Sphinx of everything the extension offers -- see the extension tutorial
|
|
|
|
|
for examples.
|
|
|
|
|
|
|
|
|
|
The configuration file itself can be treated as an extension if it contains a
|
|
|
|
|
``setup()`` function. All other extensions to load must be listed in the
|
|
|
|
|
:confval:`extensions` configuration value.
|
|
|
|
|
|
2016-07-20 12:41:54 -05:00
|
|
|
|
Discovery of builders by entry point
|
|
|
|
|
------------------------------------
|
|
|
|
|
|
|
|
|
|
.. versionadded:: 1.6
|
|
|
|
|
|
|
|
|
|
:term:`Builder` extensions can be discovered by means of `entry points`_ so
|
2017-04-14 04:01:09 -05:00
|
|
|
|
that they do not have to be listed in the :confval:`extensions` configuration
|
|
|
|
|
value.
|
2016-07-20 12:41:54 -05:00
|
|
|
|
|
2017-04-14 04:01:09 -05:00
|
|
|
|
Builder extensions should define an entry point in the ``sphinx.builders``
|
|
|
|
|
group. The name of the entry point needs to match your builder's
|
|
|
|
|
:attr:`~.Builder.name` attribute, which is the name passed to the
|
|
|
|
|
:option:`sphinx-build -b` option. The entry point value should equal the
|
|
|
|
|
dotted name of the extension module. Here is an example of how an entry point
|
|
|
|
|
for 'mybuilder' can be defined in the extension's ``setup.py``::
|
2016-07-20 12:41:54 -05:00
|
|
|
|
|
|
|
|
|
setup(
|
|
|
|
|
# ...
|
|
|
|
|
entry_points={
|
|
|
|
|
'sphinx.builders': [
|
2017-04-14 04:01:09 -05:00
|
|
|
|
'mybuilder = my.extension.module',
|
2016-07-20 12:41:54 -05:00
|
|
|
|
],
|
|
|
|
|
}
|
|
|
|
|
)
|
|
|
|
|
|
2017-04-14 04:01:09 -05:00
|
|
|
|
Note that it is still necessary to register the builder using
|
|
|
|
|
:meth:`~.Sphinx.add_builder` in the extension's :func:`setup` function.
|
2016-07-20 12:41:54 -05:00
|
|
|
|
|
|
|
|
|
.. _entry points: https://setuptools.readthedocs.io/en/latest/setuptools.html#dynamic-discovery-of-services-and-plugins
|
|
|
|
|
|
2018-12-22 04:38:12 -06:00
|
|
|
|
.. _important-objects:
|
|
|
|
|
|
|
|
|
|
Important objects
|
|
|
|
|
-----------------
|
|
|
|
|
|
|
|
|
|
There are several key objects whose API you will use while writing an
|
|
|
|
|
extension. These are:
|
|
|
|
|
|
|
|
|
|
**Application**
|
|
|
|
|
The application object (usually called ``app``) is an instance of
|
|
|
|
|
:class:`.Sphinx`. It controls most high-level functionality, such as the
|
|
|
|
|
setup of extensions, event dispatching and producing output (logging).
|
|
|
|
|
|
|
|
|
|
If you have the environment object, the application is available as
|
|
|
|
|
``env.app``.
|
|
|
|
|
|
|
|
|
|
**Environment**
|
|
|
|
|
The build environment object (usually called ``env``) is an instance of
|
|
|
|
|
:class:`.BuildEnvironment`. It is responsible for parsing the source
|
|
|
|
|
documents, stores all metadata about the document collection and is
|
|
|
|
|
serialized to disk after each build.
|
|
|
|
|
|
|
|
|
|
Its API provides methods to do with access to metadata, resolving references,
|
|
|
|
|
etc. It can also be used by extensions to cache information that should
|
|
|
|
|
persist for incremental rebuilds.
|
|
|
|
|
|
|
|
|
|
If you have the application or builder object, the environment is available
|
|
|
|
|
as ``app.env`` or ``builder.env``.
|
|
|
|
|
|
|
|
|
|
**Builder**
|
|
|
|
|
The builder object (usually called ``builder``) is an instance of a specific
|
|
|
|
|
subclass of :class:`.Builder`. Each builder class knows how to convert the
|
|
|
|
|
parsed documents into an output format, or otherwise process them (e.g. check
|
|
|
|
|
external links).
|
|
|
|
|
|
|
|
|
|
If you have the application object, the builder is available as
|
|
|
|
|
``app.builder``.
|
|
|
|
|
|
|
|
|
|
**Config**
|
|
|
|
|
The config object (usually called ``config``) provides the values of
|
|
|
|
|
configuration values set in :file:`conf.py` as attributes. It is an instance
|
|
|
|
|
of :class:`.Config`.
|
|
|
|
|
|
|
|
|
|
The config is available as ``app.config`` or ``env.config``.
|
|
|
|
|
|
|
|
|
|
To see an example of use of these objects, refer to :doc:`../development/tutorials/index`.
|
|
|
|
|
|
|
|
|
|
.. _build-phases:
|
|
|
|
|
|
|
|
|
|
Build Phases
|
|
|
|
|
------------
|
|
|
|
|
|
|
|
|
|
One thing that is vital in order to understand extension mechanisms is the way
|
|
|
|
|
in which a Sphinx project is built: this works in several phases.
|
|
|
|
|
|
|
|
|
|
**Phase 0: Initialization**
|
|
|
|
|
|
|
|
|
|
In this phase, almost nothing of interest to us happens. The source
|
|
|
|
|
directory is searched for source files, and extensions are initialized.
|
|
|
|
|
Should a stored build environment exist, it is loaded, otherwise a new one is
|
|
|
|
|
created.
|
|
|
|
|
|
|
|
|
|
**Phase 1: Reading**
|
|
|
|
|
|
|
|
|
|
In Phase 1, all source files (and on subsequent builds, those that are new or
|
|
|
|
|
changed) are read and parsed. This is the phase where directives and roles
|
|
|
|
|
are encountered by docutils, and the corresponding code is executed. The
|
|
|
|
|
output of this phase is a *doctree* for each source file; that is a tree of
|
|
|
|
|
docutils nodes. For document elements that aren't fully known until all
|
|
|
|
|
existing files are read, temporary nodes are created.
|
|
|
|
|
|
|
|
|
|
There are nodes provided by docutils, which are documented `in the docutils
|
|
|
|
|
documentation <http://docutils.sourceforge.net/docs/ref/doctree.html>`__.
|
|
|
|
|
Additional nodes are provided by Sphinx and :ref:`documented here <nodes>`.
|
|
|
|
|
|
|
|
|
|
During reading, the build environment is updated with all meta- and cross
|
|
|
|
|
reference data of the read documents, such as labels, the names of headings,
|
|
|
|
|
described Python objects and index entries. This will later be used to
|
|
|
|
|
replace the temporary nodes.
|
|
|
|
|
|
|
|
|
|
The parsed doctrees are stored on the disk, because it is not possible to
|
|
|
|
|
hold all of them in memory.
|
|
|
|
|
|
|
|
|
|
**Phase 2: Consistency checks**
|
|
|
|
|
|
|
|
|
|
Some checking is done to ensure no surprises in the built documents.
|
|
|
|
|
|
|
|
|
|
**Phase 3: Resolving**
|
|
|
|
|
|
|
|
|
|
Now that the metadata and cross-reference data of all existing documents is
|
|
|
|
|
known, all temporary nodes are replaced by nodes that can be converted into
|
2018-12-28 09:03:26 -06:00
|
|
|
|
output using components called transforms. For example, links are created for
|
2018-12-22 04:38:12 -06:00
|
|
|
|
object references that exist, and simple literal nodes are created for those
|
|
|
|
|
that don't.
|
|
|
|
|
|
|
|
|
|
**Phase 4: Writing**
|
|
|
|
|
|
|
|
|
|
This phase converts the resolved doctrees to the desired output format, such
|
|
|
|
|
as HTML or LaTeX. This happens via a so-called docutils writer that visits
|
|
|
|
|
the individual nodes of each doctree and produces some output in the process.
|
|
|
|
|
|
|
|
|
|
.. note::
|
|
|
|
|
|
|
|
|
|
Some builders deviate from this general build plan, for example, the builder
|
|
|
|
|
that checks external links does not need anything more than the parsed
|
|
|
|
|
doctrees and therefore does not have phases 2--4.
|
|
|
|
|
|
|
|
|
|
To see an example of application, refer to :doc:`../development/tutorials/todo`.
|
|
|
|
|
|
2018-01-24 06:37:54 -06:00
|
|
|
|
.. _ext-metadata:
|
|
|
|
|
|
2014-09-22 04:06:42 -05:00
|
|
|
|
Extension metadata
|
|
|
|
|
------------------
|
|
|
|
|
|
|
|
|
|
.. versionadded:: 1.3
|
|
|
|
|
|
|
|
|
|
The ``setup()`` function can return a dictionary. This is treated by Sphinx
|
|
|
|
|
as metadata of the extension. Metadata keys currently recognized are:
|
|
|
|
|
|
|
|
|
|
* ``'version'``: a string that identifies the extension version. It is used for
|
|
|
|
|
extension version requirement checking (see :confval:`needs_extensions`) and
|
|
|
|
|
informational purposes. If not given, ``"unknown version"`` is substituted.
|
2018-01-24 06:37:54 -06:00
|
|
|
|
* ``'env_version'``: an integer that identifies the version of env data
|
|
|
|
|
structure if the extension stores any data to environment. It is used to
|
|
|
|
|
detect the data structure has been changed from last build. The extensions
|
|
|
|
|
have to increment the version when data structure has changed. If not given,
|
|
|
|
|
Sphinx considers the extension does not stores any data to environment.
|
2014-09-22 07:51:47 -05:00
|
|
|
|
* ``'parallel_read_safe'``: a boolean that specifies if parallel reading of
|
|
|
|
|
source files can be used when the extension is loaded. It defaults to
|
|
|
|
|
``False``, i.e. you have to explicitly specify your extension to be
|
|
|
|
|
parallel-read-safe after checking that it is.
|
|
|
|
|
* ``'parallel_write_safe'``: a boolean that specifies if parallel writing of
|
|
|
|
|
output files can be used when the extension is loaded. Since extensions
|
|
|
|
|
usually don't negatively influence the process, this defaults to ``True``.
|
2014-09-22 04:06:42 -05:00
|
|
|
|
|
|
|
|
|
APIs used for writing extensions
|
|
|
|
|
--------------------------------
|
|
|
|
|
|
2014-01-20 10:21:44 -06:00
|
|
|
|
.. toctree::
|
2018-11-28 10:27:12 -06:00
|
|
|
|
:maxdepth: 2
|
2014-01-20 10:21:44 -06:00
|
|
|
|
|
|
|
|
|
appapi
|
2018-01-18 03:23:57 -06:00
|
|
|
|
projectapi
|
2014-01-20 10:21:44 -06:00
|
|
|
|
envapi
|
|
|
|
|
builderapi
|
2017-01-21 09:04:11 -06:00
|
|
|
|
collectorapi
|
2014-01-20 10:21:44 -06:00
|
|
|
|
markupapi
|
|
|
|
|
domainapi
|
2016-01-02 01:38:17 -06:00
|
|
|
|
parserapi
|
2014-01-20 10:21:44 -06:00
|
|
|
|
nodes
|
2016-12-28 06:14:56 -06:00
|
|
|
|
logging
|
2018-02-25 06:41:39 -06:00
|
|
|
|
i18n
|
2018-03-30 08:39:25 -05:00
|
|
|
|
utils
|
2018-02-23 06:33:16 -06:00
|
|
|
|
|
2018-12-20 14:18:37 -06:00
|
|
|
|
.. _dev-deprecated-apis:
|
|
|
|
|
|
2018-02-23 06:33:16 -06:00
|
|
|
|
Deprecated APIs
|
|
|
|
|
---------------
|
|
|
|
|
|
|
|
|
|
On developing Sphinx, we are always careful to the compatibility of our APIs.
|
|
|
|
|
But, sometimes, the change of interface are needed for some reasons. In such
|
2018-06-13 13:25:21 -05:00
|
|
|
|
cases, we've marked them as deprecated. And they are kept during the two
|
2018-02-23 06:33:16 -06:00
|
|
|
|
major versions (for more details, please see :ref:`deprecation-policy`).
|
|
|
|
|
|
2018-09-22 04:44:04 -05:00
|
|
|
|
The following is a list of deprecated interfaces.
|
|
|
|
|
|
|
|
|
|
.. tabularcolumns:: |>{\raggedright}\Y{.4}|>{\centering}\Y{.1}|>{\centering}\Y{.12}|>{\raggedright\arraybackslash}\Y{.38}|
|
|
|
|
|
|
|
|
|
|
.. |LaTeXHyphenate| raw:: latex
|
|
|
|
|
|
|
|
|
|
\hspace{0pt}
|
2018-02-23 06:33:16 -06:00
|
|
|
|
|
|
|
|
|
.. list-table:: deprecated APIs
|
|
|
|
|
:header-rows: 1
|
2018-04-22 06:00:46 -05:00
|
|
|
|
:class: deprecated
|
|
|
|
|
:widths: 40, 10, 10, 40
|
2018-02-23 06:33:16 -06:00
|
|
|
|
|
|
|
|
|
* - Target
|
2018-09-22 04:44:04 -05:00
|
|
|
|
- |LaTeXHyphenate|\ Deprecated
|
|
|
|
|
- (will be) Removed
|
2018-02-23 06:33:16 -06:00
|
|
|
|
- Alternatives
|
|
|
|
|
|
2018-11-11 22:48:45 -06:00
|
|
|
|
* - ``encoding`` argument of ``autodoc.Documenter.get_doc()``,
|
|
|
|
|
``autodoc.DocstringSignatureMixin.get_doc()``,
|
|
|
|
|
``autodoc.DocstringSignatureMixin._find_signature()``, and
|
|
|
|
|
``autodoc.ClassDocumenter.get_doc()``
|
|
|
|
|
- 2.0
|
|
|
|
|
- 4.0
|
|
|
|
|
- N/A
|
|
|
|
|
|
2019-01-08 08:45:54 -06:00
|
|
|
|
* - arguments of ``EpubBuilder.build_mimetype()``,
|
2019-01-08 08:45:57 -06:00
|
|
|
|
``EpubBuilder.build_container()``, ``EpubBuilder.build_content()``,
|
2019-01-08 08:45:58 -06:00
|
|
|
|
``EpubBuilder.build_toc()`` and ``EpubBuilder.build_epub()``
|
2019-01-08 08:45:52 -06:00
|
|
|
|
- 2.0
|
|
|
|
|
- 4.0
|
|
|
|
|
- N/A
|
|
|
|
|
|
2019-01-08 08:46:00 -06:00
|
|
|
|
* - arguments of ``Epub3Builder.build_navigation_doc()``
|
|
|
|
|
- 2.0
|
|
|
|
|
- 4.0
|
|
|
|
|
- N/A
|
|
|
|
|
|
2018-11-30 03:03:20 -06:00
|
|
|
|
* - ``nodetype`` argument of
|
|
|
|
|
``sphinx.search.WordCollector.is_meta_keywords()``
|
|
|
|
|
- 2.0
|
|
|
|
|
- 4.0
|
|
|
|
|
- N/A
|
|
|
|
|
|
2018-09-01 11:54:47 -05:00
|
|
|
|
* - ``suffix`` argument of ``BuildEnvironment.doc2path()``
|
|
|
|
|
- 2.0
|
|
|
|
|
- 4.0
|
|
|
|
|
- N/A
|
|
|
|
|
|
2018-09-01 21:32:01 -05:00
|
|
|
|
* - string style ``base`` argument of ``BuildEnvironment.doc2path()``
|
|
|
|
|
- 2.0
|
|
|
|
|
- 4.0
|
|
|
|
|
- ``os.path.join()``
|
|
|
|
|
|
2018-12-15 04:50:15 -06:00
|
|
|
|
* - ``sphinx.addnodes.abbreviation``
|
|
|
|
|
- 2.0
|
|
|
|
|
- 4.0
|
|
|
|
|
- ``docutils.nodes.abbreviation``
|
|
|
|
|
|
2019-01-19 09:36:59 -06:00
|
|
|
|
* - ``sphinx.builders.devhelp``
|
|
|
|
|
- 2.0
|
|
|
|
|
- 4.0
|
|
|
|
|
- ``sphinxcontrib.devhelp``
|
|
|
|
|
|
2019-01-08 08:45:50 -06:00
|
|
|
|
* - ``sphinx.builders.epub3.Epub3Builder.validate_config_value()``
|
|
|
|
|
- 2.0
|
|
|
|
|
- 4.0
|
|
|
|
|
- ``sphinx.builders.epub3.validate_config_values()``
|
|
|
|
|
|
2019-01-03 09:15:29 -06:00
|
|
|
|
* - ``sphinx.builders.html.SingleFileHTMLBuilder``
|
|
|
|
|
- 2.0
|
|
|
|
|
- 4.0
|
|
|
|
|
- ``sphinx.builders.singlehtml.SingleFileHTMLBuilder``
|
|
|
|
|
|
2018-09-12 04:21:05 -05:00
|
|
|
|
* - ``sphinx.builders.htmlhelp.HTMLHelpBuilder.open_file()``
|
|
|
|
|
- 2.0
|
|
|
|
|
- 4.0
|
|
|
|
|
- ``open()``
|
|
|
|
|
|
2019-01-19 01:34:06 -06:00
|
|
|
|
* - ``sphinx.builders.qthelp``
|
|
|
|
|
- 2.0
|
|
|
|
|
- 4.0
|
|
|
|
|
- ``sphinxcontrib.qthelp``
|
|
|
|
|
|
2018-12-17 08:22:37 -06:00
|
|
|
|
* - ``sphinx.cmd.quickstart.term_decode()``
|
|
|
|
|
- 2.0
|
|
|
|
|
- 4.0
|
|
|
|
|
- N/A
|
|
|
|
|
|
|
|
|
|
* - ``sphinx.cmd.quickstart.TERM_ENCODING``
|
|
|
|
|
- 2.0
|
|
|
|
|
- 4.0
|
|
|
|
|
- ``sys.stdin.encoding``
|
|
|
|
|
|
2018-12-10 07:36:43 -06:00
|
|
|
|
* - ``sphinx.config.check_unicode()``
|
|
|
|
|
- 2.0
|
|
|
|
|
- 4.0
|
|
|
|
|
- N/A
|
|
|
|
|
|
2018-12-16 13:25:18 -06:00
|
|
|
|
* - ``sphinx.config.string_classes``
|
|
|
|
|
- 2.0
|
|
|
|
|
- 4.0
|
|
|
|
|
- ``[str]``
|
|
|
|
|
|
2018-12-18 18:38:49 -06:00
|
|
|
|
* - ``sphinx.domains.cpp.DefinitionError.description``
|
|
|
|
|
- 2.0
|
|
|
|
|
- 4.0
|
|
|
|
|
- ``str(exc)``
|
|
|
|
|
|
|
|
|
|
* - ``sphinx.domains.cpp.NoOldIdError.description``
|
|
|
|
|
- 2.0
|
|
|
|
|
- 4.0
|
|
|
|
|
- ``str(exc)``
|
|
|
|
|
|
|
|
|
|
* - ``sphinx.domains.cpp.UnsupportedMultiCharacterCharLiteral.decoded``
|
|
|
|
|
- 2.0
|
|
|
|
|
- 4.0
|
|
|
|
|
- ``str(exc)``
|
|
|
|
|
|
2018-12-10 07:36:43 -06:00
|
|
|
|
* - ``sphinx.ext.autosummary.Autosummary.warn()``
|
|
|
|
|
- 2.0
|
|
|
|
|
- 4.0
|
|
|
|
|
- N/A
|
|
|
|
|
|
|
|
|
|
* - ``sphinx.ext.autosummary.Autosummary.genopt``
|
|
|
|
|
- 2.0
|
|
|
|
|
- 4.0
|
|
|
|
|
- N/A
|
|
|
|
|
|
|
|
|
|
* - ``sphinx.ext.autosummary.Autosummary.warnings``
|
|
|
|
|
- 2.0
|
|
|
|
|
- 4.0
|
|
|
|
|
- N/A
|
|
|
|
|
|
|
|
|
|
* - ``sphinx.ext.autosummary.Autosummary.result``
|
2018-09-23 17:11:35 -05:00
|
|
|
|
- 2.0
|
|
|
|
|
- 4.0
|
|
|
|
|
- N/A
|
|
|
|
|
|
2018-09-07 20:52:24 -05:00
|
|
|
|
* - ``sphinx.ext.doctest.doctest_encode()``
|
|
|
|
|
- 2.0
|
|
|
|
|
- 4.0
|
|
|
|
|
- N/A
|
|
|
|
|
|
2019-01-04 05:16:18 -06:00
|
|
|
|
* - ``sphinx.ext.jsmath``
|
|
|
|
|
- 2.0
|
|
|
|
|
- 4.0
|
|
|
|
|
- ``sphinxcontrib.jsmath``
|
|
|
|
|
|
2018-09-07 20:52:24 -05:00
|
|
|
|
* - ``sphinx.testing.util.remove_unicode_literal()``
|
|
|
|
|
- 2.0
|
|
|
|
|
- 4.0
|
|
|
|
|
- N/A
|
|
|
|
|
|
2018-12-09 16:45:33 -06:00
|
|
|
|
* - ``sphinx.util.attrdict``
|
|
|
|
|
- 2.0
|
|
|
|
|
- 4.0
|
|
|
|
|
- N/A
|
|
|
|
|
|
2018-11-11 22:48:45 -06:00
|
|
|
|
* - ``sphinx.util.force_decode()``
|
|
|
|
|
- 2.0
|
|
|
|
|
- 4.0
|
|
|
|
|
- N/A
|
|
|
|
|
|
2018-02-14 23:07:29 -06:00
|
|
|
|
* - ``sphinx.util.get_matching_docs()``
|
|
|
|
|
- 2.0
|
|
|
|
|
- 4.0
|
|
|
|
|
- ``sphinx.util.get_matching_files()``
|
|
|
|
|
|
2018-12-15 05:48:30 -06:00
|
|
|
|
* - ``sphinx.util.inspect.Parameter``
|
|
|
|
|
- 2.0
|
|
|
|
|
- 3.0
|
|
|
|
|
- N/A
|
|
|
|
|
|
2018-12-15 10:58:09 -06:00
|
|
|
|
* - ``sphinx.util.osutil.EEXIST``
|
|
|
|
|
- 2.0
|
|
|
|
|
- 4.0
|
|
|
|
|
- ``errno.EEXIST`` or ``FileExistsError``
|
|
|
|
|
|
2018-12-15 05:38:46 -06:00
|
|
|
|
* - ``sphinx.util.osutil.EINVAL``
|
|
|
|
|
- 2.0
|
|
|
|
|
- 4.0
|
|
|
|
|
- ``errno.EINVAL``
|
|
|
|
|
|
2018-12-15 10:58:09 -06:00
|
|
|
|
* - ``sphinx.util.osutil.ENOENT``
|
|
|
|
|
- 2.0
|
|
|
|
|
- 4.0
|
|
|
|
|
- ``errno.ENOENT`` or ``FileNotFoundError``
|
|
|
|
|
|
2018-12-15 05:38:46 -06:00
|
|
|
|
* - ``sphinx.util.osutil.EPIPE``
|
|
|
|
|
- 2.0
|
|
|
|
|
- 4.0
|
|
|
|
|
- ``errno.ENOENT`` or ``BrokenPipeError``
|
|
|
|
|
|
2018-09-23 10:04:57 -05:00
|
|
|
|
* - ``sphinx.util.osutil.walk()``
|
|
|
|
|
- 2.0
|
|
|
|
|
- 4.0
|
|
|
|
|
- ``os.walk()``
|
|
|
|
|
|
2019-01-07 07:27:05 -06:00
|
|
|
|
* - ``sphinx.util.pycompat.TextIOWrapper``
|
|
|
|
|
- 2.0
|
|
|
|
|
- 4.0
|
|
|
|
|
- ``io.TextIOWrapper``
|
|
|
|
|
|
2018-12-15 08:45:26 -06:00
|
|
|
|
* - ``sphinx.util.pycompat.UnicodeMixin``
|
|
|
|
|
- 2.0
|
|
|
|
|
- 4.0
|
|
|
|
|
- N/A
|
|
|
|
|
|
2019-01-07 07:27:05 -06:00
|
|
|
|
* - ``sphinx.util.pycompat.htmlescape()``
|
|
|
|
|
- 2.0
|
|
|
|
|
- 4.0
|
|
|
|
|
- ``html.escape()``
|
|
|
|
|
|
|
|
|
|
* - ``sphinx.util.pycompat.indent()``
|
|
|
|
|
- 2.0
|
|
|
|
|
- 4.0
|
|
|
|
|
- ``textwrap.indent()``
|
|
|
|
|
|
2018-11-12 18:31:27 -06:00
|
|
|
|
* - ``sphinx.util.pycompat.u``
|
|
|
|
|
- 2.0
|
|
|
|
|
- 4.0
|
|
|
|
|
- N/A
|
|
|
|
|
|
2018-12-09 16:45:33 -06:00
|
|
|
|
* - ``sphinx.util.PeekableIterator``
|
|
|
|
|
- 2.0
|
|
|
|
|
- 4.0
|
|
|
|
|
- N/A
|
|
|
|
|
|
2018-12-16 15:32:00 -06:00
|
|
|
|
* - Omitting the ``filename`` argument in an overriddent
|
|
|
|
|
``IndexBuilder.feed()`` method.
|
|
|
|
|
- 2.0
|
|
|
|
|
- 4.0
|
|
|
|
|
- ``IndexBuilder.feed(docname, filename, title, doctree)``
|
|
|
|
|
|
2018-10-07 01:16:35 -05:00
|
|
|
|
* - ``sphinx.writers.latex.ExtBabel``
|
|
|
|
|
- 2.0
|
|
|
|
|
- 4.0
|
|
|
|
|
- ``sphinx.builders.latex.util.ExtBabel``
|
|
|
|
|
|
2018-12-15 09:19:04 -06:00
|
|
|
|
* - ``sphinx.writers.latex.LaTeXTranslator.babel_defmacro()``
|
|
|
|
|
- 2.0
|
|
|
|
|
- 4.0
|
|
|
|
|
- N/A
|
|
|
|
|
|
2018-09-12 06:09:23 -05:00
|
|
|
|
* - ``sphinx.application.Sphinx._setting_up_extension``
|
|
|
|
|
- 2.0
|
|
|
|
|
- 3.0
|
|
|
|
|
- N/A
|
|
|
|
|
|
2018-12-04 07:49:51 -06:00
|
|
|
|
* - The ``importer`` argument of ``sphinx.ext.autodoc.importer._MockModule``
|
|
|
|
|
- 2.0
|
|
|
|
|
- 3.0
|
|
|
|
|
- N/A
|
|
|
|
|
|
|
|
|
|
* - ``sphinx.ext.autodoc.importer._MockImporter``
|
|
|
|
|
- 2.0
|
|
|
|
|
- 3.0
|
|
|
|
|
- N/A
|
|
|
|
|
|
2018-12-17 07:06:51 -06:00
|
|
|
|
* - ``sphinx.io.SphinxBaseFileInput``
|
|
|
|
|
- 2.0
|
|
|
|
|
- 3.0
|
|
|
|
|
- N/A
|
|
|
|
|
|
2018-12-17 07:06:53 -06:00
|
|
|
|
* - ``sphinx.io.SphinxFileInput.supported``
|
|
|
|
|
- 2.0
|
|
|
|
|
- 3.0
|
|
|
|
|
- N/A
|
|
|
|
|
|
2018-12-05 07:53:38 -06:00
|
|
|
|
* - ``sphinx.io.SphinxRSTFileInput``
|
|
|
|
|
- 2.0
|
|
|
|
|
- 3.0
|
|
|
|
|
- N/A
|
|
|
|
|
|
2018-12-17 07:06:46 -06:00
|
|
|
|
* - ``sphinx.registry.SphinxComponentRegistry.add_source_input()``
|
|
|
|
|
- 2.0
|
|
|
|
|
- 3.0
|
|
|
|
|
- N/A
|
|
|
|
|
|
2018-12-03 10:04:53 -06:00
|
|
|
|
* - ``sphinx.writers.latex.LaTeXTranslator._make_visit_admonition()``
|
|
|
|
|
- 2.0
|
|
|
|
|
- 3.0
|
|
|
|
|
- N/A
|
|
|
|
|
|
2018-12-15 09:21:43 -06:00
|
|
|
|
* - ``sphinx.writers.latex.LaTeXTranslator.collect_footnotes()``
|
2018-12-03 10:10:51 -06:00
|
|
|
|
- 2.0
|
2018-12-15 09:21:43 -06:00
|
|
|
|
- 4.0
|
2018-12-03 10:10:51 -06:00
|
|
|
|
- N/A
|
|
|
|
|
|
|
|
|
|
* - ``sphinx.writers.texinfo.TexinfoTranslator._make_visit_admonition()``
|
2018-12-03 10:00:37 -06:00
|
|
|
|
- 2.0
|
|
|
|
|
- 3.0
|
|
|
|
|
- N/A
|
|
|
|
|
|
|
|
|
|
* - ``sphinx.writers.text.TextTranslator._make_depart_admonition()``
|
2018-08-10 08:19:55 -05:00
|
|
|
|
- 2.0
|
2018-12-03 10:00:37 -06:00
|
|
|
|
- 3.0
|
2018-08-10 08:19:55 -05:00
|
|
|
|
- N/A
|
|
|
|
|
|
2018-11-24 03:59:51 -06:00
|
|
|
|
* - ``sphinx.writers.latex.LaTeXTranslator.generate_numfig_format()``
|
|
|
|
|
- 2.0
|
|
|
|
|
- 4.0
|
|
|
|
|
- N/A
|
|
|
|
|
|
2018-04-14 09:15:31 -05:00
|
|
|
|
* - :rst:dir:`highlightlang`
|
|
|
|
|
- 1.8
|
|
|
|
|
- 4.0
|
|
|
|
|
- :rst:dir:`highlight`
|
|
|
|
|
|
2018-04-03 09:55:39 -05:00
|
|
|
|
* - :meth:`~sphinx.application.Sphinx.add_stylesheet()`
|
|
|
|
|
- 1.8
|
|
|
|
|
- 4.0
|
|
|
|
|
- :meth:`~sphinx.application.Sphinx.add_css_file()`
|
|
|
|
|
|
2018-05-22 10:37:54 -05:00
|
|
|
|
* - :meth:`~sphinx.application.Sphinx.add_javascript()`
|
|
|
|
|
- 1.8
|
|
|
|
|
- 4.0
|
|
|
|
|
- :meth:`~sphinx.application.Sphinx.add_js_file()`
|
|
|
|
|
|
2018-08-18 03:40:38 -05:00
|
|
|
|
* - :confval:`autodoc_default_flags`
|
|
|
|
|
- 1.8
|
|
|
|
|
- 4.0
|
|
|
|
|
- :confval:`autodoc_default_options`
|
|
|
|
|
|
2018-09-10 06:45:16 -05:00
|
|
|
|
* - ``content`` arguments of ``sphinx.util.image.guess_mimetype()``
|
|
|
|
|
- 1.8
|
|
|
|
|
- 3.0
|
|
|
|
|
- N/A
|
|
|
|
|
|
2018-09-08 06:06:15 -05:00
|
|
|
|
* - ``gettext_compact`` arguments of
|
|
|
|
|
``sphinx.util.i18n.find_catalog_source_files()``
|
|
|
|
|
- 1.8
|
|
|
|
|
- 3.0
|
|
|
|
|
- N/A
|
|
|
|
|
|
2018-08-21 09:03:12 -05:00
|
|
|
|
* - ``sphinx.io.SphinxI18nReader.set_lineno_for_reporter()``
|
|
|
|
|
- 1.8
|
|
|
|
|
- 3.0
|
|
|
|
|
- N/A
|
|
|
|
|
|
|
|
|
|
* - ``sphinx.io.SphinxI18nReader.line``
|
|
|
|
|
- 1.8
|
|
|
|
|
- 3.0
|
|
|
|
|
- N/A
|
|
|
|
|
|
2018-08-01 11:22:11 -05:00
|
|
|
|
* - ``sphinx.directives.other.VersionChanges``
|
|
|
|
|
- 1.8
|
|
|
|
|
- 3.0
|
|
|
|
|
- ``sphinx.domains.changeset.VersionChanges``
|
|
|
|
|
|
2018-07-19 11:37:31 -05:00
|
|
|
|
* - ``sphinx.highlighting.PygmentsBridge.unhighlight()``
|
|
|
|
|
- 1.8
|
|
|
|
|
- 3.0
|
|
|
|
|
- N/A
|
|
|
|
|
|
2018-07-20 21:25:54 -05:00
|
|
|
|
* - ``trim_doctest_flags`` arguments of
|
|
|
|
|
``sphinx.highlighting.PygmentsBridge``
|
|
|
|
|
- 1.8
|
|
|
|
|
- 3.0
|
|
|
|
|
- N/A
|
|
|
|
|
|
2018-07-28 05:48:21 -05:00
|
|
|
|
* - ``sphinx.ext.mathbase``
|
|
|
|
|
- 1.8
|
|
|
|
|
- 3.0
|
|
|
|
|
- N/A
|
|
|
|
|
|
2018-05-15 09:21:01 -05:00
|
|
|
|
* - ``sphinx.ext.mathbase.MathDomain``
|
|
|
|
|
- 1.8
|
|
|
|
|
- 3.0
|
|
|
|
|
- ``sphinx.domains.math.MathDomain``
|
|
|
|
|
|
2018-09-21 09:43:05 -05:00
|
|
|
|
* - ``sphinx.ext.mathbase.MathDirective``
|
|
|
|
|
- 1.8
|
|
|
|
|
- 3.0
|
|
|
|
|
- ``sphinx.directives.patches.MathDirective``
|
|
|
|
|
|
|
|
|
|
* - ``sphinx.ext.mathbase.math_role()``
|
|
|
|
|
- 1.8
|
|
|
|
|
- 3.0
|
|
|
|
|
- ``docutils.parsers.rst.roles.math_role()``
|
|
|
|
|
|
2018-05-16 10:57:09 -05:00
|
|
|
|
* - ``sphinx.ext.mathbase.setup_math()``
|
|
|
|
|
- 1.8
|
|
|
|
|
- 3.0
|
|
|
|
|
- :meth:`~sphinx.application.Sphinx.add_html_math_renderer()`
|
|
|
|
|
|
2018-05-14 20:57:07 -05:00
|
|
|
|
* - ``sphinx.ext.mathbase.is_in_section_title()``
|
|
|
|
|
- 1.8
|
|
|
|
|
- 3.0
|
|
|
|
|
- N/A
|
|
|
|
|
|
2018-07-28 05:48:21 -05:00
|
|
|
|
* - ``sphinx.ext.mathbase.get_node_equation_number()``
|
|
|
|
|
- 1.8
|
|
|
|
|
- 3.0
|
|
|
|
|
- ``sphinx.util.math.get_node_equation_number()``
|
|
|
|
|
|
|
|
|
|
* - ``sphinx.ext.mathbase.wrap_displaymath()``
|
|
|
|
|
- 1.8
|
|
|
|
|
- 3.0
|
|
|
|
|
- ``sphinx.util.math.wrap_displaymath()``
|
|
|
|
|
|
2018-05-14 20:57:07 -05:00
|
|
|
|
* - ``sphinx.ext.mathbase.math`` (node)
|
|
|
|
|
- 1.8
|
|
|
|
|
- 3.0
|
|
|
|
|
- ``docutils.nodes.math``
|
|
|
|
|
|
2018-03-02 07:52:39 -06:00
|
|
|
|
* - ``sphinx.ext.mathbase.displaymath`` (node)
|
|
|
|
|
- 1.8
|
|
|
|
|
- 3.0
|
|
|
|
|
- ``docutils.nodes.math_block``
|
|
|
|
|
|
2018-05-15 08:26:16 -05:00
|
|
|
|
* - ``sphinx.ext.mathbase.eqref`` (node)
|
|
|
|
|
- 1.8
|
|
|
|
|
- 3.0
|
2018-05-17 09:19:41 -05:00
|
|
|
|
- ``sphinx.builders.latex.nodes.math_reference``
|
2018-05-15 08:26:16 -05:00
|
|
|
|
|
2018-04-01 22:32:07 -05:00
|
|
|
|
* - ``viewcode_import`` (config value)
|
|
|
|
|
- 1.8
|
|
|
|
|
- 3.0
|
|
|
|
|
- :confval:`viewcode_follow_imported_members`
|
|
|
|
|
|
2018-04-20 08:14:49 -05:00
|
|
|
|
* - ``sphinx.writers.latex.Table.caption_footnotetexts``
|
|
|
|
|
- 1.8
|
|
|
|
|
- 3.0
|
2018-05-13 11:30:45 -05:00
|
|
|
|
- N/A
|
2018-04-20 08:14:49 -05:00
|
|
|
|
|
|
|
|
|
* - ``sphinx.writers.latex.Table.header_footnotetexts``
|
|
|
|
|
- 1.8
|
|
|
|
|
- 3.0
|
2018-05-13 11:30:45 -05:00
|
|
|
|
- N/A
|
2018-04-20 08:14:49 -05:00
|
|
|
|
|
2018-05-31 02:10:38 -05:00
|
|
|
|
* - ``sphinx.writers.latex.LaTeXTranslator.footnotestack``
|
2018-04-20 08:14:49 -05:00
|
|
|
|
- 1.8
|
|
|
|
|
- 3.0
|
2018-05-13 11:30:45 -05:00
|
|
|
|
- N/A
|
2018-04-20 08:14:49 -05:00
|
|
|
|
|
2018-05-31 02:10:38 -05:00
|
|
|
|
* - ``sphinx.writers.latex.LaTeXTranslator.in_container_literal_block``
|
2018-05-23 08:50:46 -05:00
|
|
|
|
- 1.8
|
|
|
|
|
- 3.0
|
|
|
|
|
- N/A
|
|
|
|
|
|
2018-05-31 02:10:38 -05:00
|
|
|
|
* - ``sphinx.writers.latex.LaTeXTranslator.next_section_ids``
|
2018-05-23 10:23:50 -05:00
|
|
|
|
- 1.8
|
|
|
|
|
- 3.0
|
|
|
|
|
- N/A
|
|
|
|
|
|
2018-05-31 02:10:38 -05:00
|
|
|
|
* - ``sphinx.writers.latex.LaTeXTranslator.next_hyperlink_ids``
|
2018-05-23 08:50:46 -05:00
|
|
|
|
- 1.8
|
|
|
|
|
- 3.0
|
|
|
|
|
- N/A
|
|
|
|
|
|
2018-05-31 02:10:38 -05:00
|
|
|
|
* - ``sphinx.writers.latex.LaTeXTranslator.restrict_footnote()``
|
2018-04-20 08:14:49 -05:00
|
|
|
|
- 1.8
|
|
|
|
|
- 3.0
|
2018-05-13 11:30:45 -05:00
|
|
|
|
- N/A
|
2018-04-20 08:14:49 -05:00
|
|
|
|
|
2018-05-31 02:10:38 -05:00
|
|
|
|
* - ``sphinx.writers.latex.LaTeXTranslator.unrestrict_footnote()``
|
2018-04-20 08:14:49 -05:00
|
|
|
|
- 1.8
|
|
|
|
|
- 3.0
|
2018-05-13 11:30:45 -05:00
|
|
|
|
- N/A
|
2018-04-20 08:14:49 -05:00
|
|
|
|
|
2018-05-31 02:10:38 -05:00
|
|
|
|
* - ``sphinx.writers.latex.LaTeXTranslator.push_hyperlink_ids()``
|
2018-05-23 08:50:46 -05:00
|
|
|
|
- 1.8
|
|
|
|
|
- 3.0
|
|
|
|
|
- N/A
|
|
|
|
|
|
2018-05-31 02:10:38 -05:00
|
|
|
|
* - ``sphinx.writers.latex.LaTeXTranslator.pop_hyperlink_ids()``
|
2018-05-23 08:50:46 -05:00
|
|
|
|
- 1.8
|
|
|
|
|
- 3.0
|
|
|
|
|
- N/A
|
|
|
|
|
|
2018-05-31 02:10:38 -05:00
|
|
|
|
* - ``sphinx.writers.latex.LaTeXTranslator.bibitems``
|
2018-04-25 11:13:55 -05:00
|
|
|
|
- 1.8
|
|
|
|
|
- 3.0
|
2018-05-13 11:30:45 -05:00
|
|
|
|
- N/A
|
2018-04-25 11:13:55 -05:00
|
|
|
|
|
2018-07-20 10:13:31 -05:00
|
|
|
|
* - ``sphinx.writers.latex.LaTeXTranslator.hlsettingstack``
|
|
|
|
|
- 1.8
|
|
|
|
|
- 3.0
|
|
|
|
|
- N/A
|
|
|
|
|
|
2018-06-06 11:55:49 -05:00
|
|
|
|
* - ``sphinx.writers.latex.ExtBabel.get_shorthandoff()``
|
|
|
|
|
- 1.8
|
2018-06-07 11:29:24 -05:00
|
|
|
|
- 3.0
|
2018-06-06 11:55:49 -05:00
|
|
|
|
- N/A
|
|
|
|
|
|
2018-07-20 10:13:31 -05:00
|
|
|
|
* - ``sphinx.writers.html.HTMLTranslator.highlightlang()``
|
|
|
|
|
- 1.8
|
|
|
|
|
- 3.0
|
|
|
|
|
- N/A
|
|
|
|
|
|
|
|
|
|
* - ``sphinx.writers.html.HTMLTranslator.highlightlang_base()``
|
|
|
|
|
- 1.8
|
|
|
|
|
- 3.0
|
|
|
|
|
- N/A
|
|
|
|
|
|
|
|
|
|
* - ``sphinx.writers.html.HTMLTranslator.highlightlangopts()``
|
|
|
|
|
- 1.8
|
|
|
|
|
- 3.0
|
|
|
|
|
- N/A
|
|
|
|
|
|
|
|
|
|
* - ``sphinx.writers.html.HTMLTranslator.highlightlinenothreshold()``
|
|
|
|
|
- 1.8
|
|
|
|
|
- 3.0
|
|
|
|
|
- N/A
|
|
|
|
|
|
|
|
|
|
* - ``sphinx.writers.html5.HTMLTranslator.highlightlang()``
|
|
|
|
|
- 1.8
|
|
|
|
|
- 3.0
|
|
|
|
|
- N/A
|
|
|
|
|
|
|
|
|
|
* - ``sphinx.writers.html5.HTMLTranslator.highlightlang_base()``
|
|
|
|
|
- 1.8
|
|
|
|
|
- 3.0
|
|
|
|
|
- N/A
|
|
|
|
|
|
|
|
|
|
* - ``sphinx.writers.html5.HTMLTranslator.highlightlangopts()``
|
|
|
|
|
- 1.8
|
|
|
|
|
- 3.0
|
|
|
|
|
- N/A
|
|
|
|
|
|
|
|
|
|
* - ``sphinx.writers.html5.HTMLTranslator.highlightlinenothreshold()``
|
|
|
|
|
- 1.8
|
|
|
|
|
- 3.0
|
|
|
|
|
- N/A
|
|
|
|
|
|
2018-07-29 07:57:34 -05:00
|
|
|
|
* - ``sphinx.writers.latex.LaTeXTranslator.check_latex_elements()``
|
|
|
|
|
- 1.8
|
|
|
|
|
- 3.0
|
|
|
|
|
- Nothing
|
|
|
|
|
|
2018-04-27 23:04:21 -05:00
|
|
|
|
* - ``sphinx.application.CONFIG_FILENAME``
|
|
|
|
|
- 1.8
|
|
|
|
|
- 3.0
|
|
|
|
|
- ``sphinx.config.CONFIG_FILENAME``
|
|
|
|
|
|
2018-03-28 20:25:03 -05:00
|
|
|
|
* - ``Config.check_unicode()``
|
|
|
|
|
- 1.8
|
|
|
|
|
- 3.0
|
|
|
|
|
- ``sphinx.config.check_unicode()``
|
|
|
|
|
|
2018-03-23 06:43:41 -05:00
|
|
|
|
* - ``Config.check_types()``
|
|
|
|
|
- 1.8
|
|
|
|
|
- 3.0
|
|
|
|
|
- ``sphinx.config.check_confval_types()``
|
|
|
|
|
|
2018-03-22 11:04:56 -05:00
|
|
|
|
* - ``dirname``, ``filename`` and ``tags`` arguments of
|
|
|
|
|
``Config.__init__()``
|
|
|
|
|
- 1.8
|
|
|
|
|
- 3.0
|
2018-04-27 23:04:21 -05:00
|
|
|
|
- ``Config.read()``
|
2018-03-22 11:04:56 -05:00
|
|
|
|
|
2018-04-28 00:34:49 -05:00
|
|
|
|
* - The value of :confval:`html_search_options`
|
|
|
|
|
- 1.8
|
|
|
|
|
- 3.0
|
|
|
|
|
- see :confval:`html_search_options`
|
|
|
|
|
|
2018-04-15 10:24:49 -05:00
|
|
|
|
* - ``sphinx.versioning.prepare()``
|
|
|
|
|
- 1.8
|
|
|
|
|
- 3.0
|
|
|
|
|
- ``sphinx.versioning.UIDTransform``
|
|
|
|
|
|
2018-05-31 02:20:31 -05:00
|
|
|
|
* - ``Sphinx.override_domain()``
|
2018-03-29 07:55:59 -05:00
|
|
|
|
- 1.8
|
|
|
|
|
- 3.0
|
|
|
|
|
- :meth:`~sphinx.application.Sphinx.add_domain()`
|
|
|
|
|
|
2018-05-31 02:20:31 -05:00
|
|
|
|
* - ``Sphinx.import_object()``
|
|
|
|
|
- 1.8
|
|
|
|
|
- 3.0
|
|
|
|
|
- ``sphinx.util.import_object()``
|
|
|
|
|
|
|
|
|
|
* - ``suffix`` argument of
|
|
|
|
|
:meth:`~sphinx.application.Sphinx.add_source_parser()`
|
|
|
|
|
- 1.8
|
|
|
|
|
- 3.0
|
|
|
|
|
- :meth:`~sphinx.application.Sphinx.add_source_suffix()`
|
|
|
|
|
|
|
|
|
|
|
2018-05-09 11:25:22 -05:00
|
|
|
|
* - ``BuildEnvironment.load()``
|
|
|
|
|
- 1.8
|
|
|
|
|
- 3.0
|
|
|
|
|
- ``pickle.load()``
|
|
|
|
|
|
|
|
|
|
* - ``BuildEnvironment.loads()``
|
|
|
|
|
- 1.8
|
|
|
|
|
- 3.0
|
|
|
|
|
- ``pickle.loads()``
|
|
|
|
|
|
|
|
|
|
* - ``BuildEnvironment.frompickle()``
|
|
|
|
|
- 1.8
|
|
|
|
|
- 3.0
|
|
|
|
|
- ``pickle.load()``
|
|
|
|
|
|
|
|
|
|
* - ``BuildEnvironment.dump()``
|
|
|
|
|
- 1.8
|
|
|
|
|
- 3.0
|
|
|
|
|
- ``pickle.dump()``
|
|
|
|
|
|
|
|
|
|
* - ``BuildEnvironment.dumps()``
|
|
|
|
|
- 1.8
|
|
|
|
|
- 3.0
|
|
|
|
|
- ``pickle.dumps()``
|
|
|
|
|
|
|
|
|
|
* - ``BuildEnvironment.topickle()``
|
|
|
|
|
- 1.8
|
|
|
|
|
- 3.0
|
|
|
|
|
- ``pickle.dump()``
|
|
|
|
|
|
2018-02-22 23:01:11 -06:00
|
|
|
|
* - ``BuildEnvironment._nitpick_ignore``
|
|
|
|
|
- 1.8
|
|
|
|
|
- 3.0
|
|
|
|
|
- :confval:`nitpick_ignore`
|
|
|
|
|
|
2018-05-31 04:19:01 -05:00
|
|
|
|
* - ``BuildEnvironment.versionchanges``
|
|
|
|
|
- 1.8
|
|
|
|
|
- 3.0
|
|
|
|
|
- N/A
|
|
|
|
|
|
2018-05-31 02:14:40 -05:00
|
|
|
|
* - ``BuildEnvironment.update()``
|
2018-03-05 06:26:35 -06:00
|
|
|
|
- 1.8
|
|
|
|
|
- 3.0
|
2018-05-31 02:14:40 -05:00
|
|
|
|
- ``Builder.read()``
|
2018-03-05 06:26:35 -06:00
|
|
|
|
|
2018-05-31 02:14:40 -05:00
|
|
|
|
* - ``BuildEnvironment.read_doc()``
|
2018-03-05 06:26:35 -06:00
|
|
|
|
- 1.8
|
|
|
|
|
- 3.0
|
2018-05-31 02:14:40 -05:00
|
|
|
|
- ``Builder.read_doc()``
|
2018-03-05 06:26:35 -06:00
|
|
|
|
|
2018-05-31 02:14:40 -05:00
|
|
|
|
* - ``BuildEnvironment._read_serial()``
|
2018-03-05 06:26:35 -06:00
|
|
|
|
- 1.8
|
|
|
|
|
- 3.0
|
2018-05-31 02:14:40 -05:00
|
|
|
|
- ``Builder.read()``
|
2018-03-05 06:26:35 -06:00
|
|
|
|
|
2018-05-31 02:14:40 -05:00
|
|
|
|
* - ``BuildEnvironment._read_parallel()``
|
2018-03-05 06:26:35 -06:00
|
|
|
|
- 1.8
|
|
|
|
|
- 3.0
|
2018-05-31 02:14:40 -05:00
|
|
|
|
- ``Builder.read()``
|
2018-03-05 06:26:35 -06:00
|
|
|
|
|
2018-05-31 02:14:40 -05:00
|
|
|
|
* - ``BuildEnvironment.write_doctree()``
|
2018-03-05 06:26:35 -06:00
|
|
|
|
- 1.8
|
|
|
|
|
- 3.0
|
2018-05-31 02:14:40 -05:00
|
|
|
|
- ``Builder.write_doctree()``
|
2018-03-05 06:26:35 -06:00
|
|
|
|
|
2018-05-31 04:19:01 -05:00
|
|
|
|
* - ``BuildEnvironment.note_versionchange()``
|
|
|
|
|
- 1.8
|
|
|
|
|
- 3.0
|
|
|
|
|
- ``ChangesDomain.note_changeset()``
|
|
|
|
|
|
2018-05-31 02:14:40 -05:00
|
|
|
|
* - ``warn()`` (template helper function)
|
2018-04-21 22:36:52 -05:00
|
|
|
|
- 1.8
|
|
|
|
|
- 3.0
|
2018-05-31 02:14:40 -05:00
|
|
|
|
- ``warning()``
|
2018-04-21 22:36:52 -05:00
|
|
|
|
|
2018-05-31 02:14:40 -05:00
|
|
|
|
* - :confval:`source_parsers`
|
2018-03-05 06:26:35 -06:00
|
|
|
|
- 1.8
|
|
|
|
|
- 3.0
|
2018-05-31 02:14:40 -05:00
|
|
|
|
- :meth:`~sphinx.application.Sphinx.add_source_parser()`
|
2018-03-05 06:26:35 -06:00
|
|
|
|
|
2018-05-31 02:14:40 -05:00
|
|
|
|
* - ``sphinx.util.docutils.directive_helper()``
|
2018-03-05 06:26:35 -06:00
|
|
|
|
- 1.8
|
|
|
|
|
- 3.0
|
2018-05-31 02:14:40 -05:00
|
|
|
|
- ``Directive`` class of docutils
|
2018-03-05 06:26:35 -06:00
|
|
|
|
|
2018-05-31 02:14:40 -05:00
|
|
|
|
* - ``sphinx.cmdline``
|
2018-04-21 23:22:42 -05:00
|
|
|
|
- 1.8
|
|
|
|
|
- 3.0
|
2018-05-31 02:14:40 -05:00
|
|
|
|
- ``sphinx.cmd.build``
|
2018-04-21 23:22:42 -05:00
|
|
|
|
|
2018-07-29 07:49:01 -05:00
|
|
|
|
* - ``sphinx.make_mode``
|
|
|
|
|
- 1.8
|
|
|
|
|
- 3.0
|
|
|
|
|
- ``sphinx.cmd.make_mode``
|
|
|
|
|
|
2018-03-05 06:26:35 -06:00
|
|
|
|
* - ``sphinx.locale.l_()``
|
|
|
|
|
- 1.8
|
|
|
|
|
- 3.0
|
|
|
|
|
- :func:`sphinx.locale._()`
|
|
|
|
|
|
|
|
|
|
* - ``sphinx.locale.lazy_gettext()``
|
|
|
|
|
- 1.8
|
|
|
|
|
- 3.0
|
|
|
|
|
- :func:`sphinx.locale._()`
|
|
|
|
|
|
|
|
|
|
* - ``sphinx.locale.mygettext()``
|
|
|
|
|
- 1.8
|
|
|
|
|
- 3.0
|
|
|
|
|
- :func:`sphinx.locale._()`
|
|
|
|
|
|
|
|
|
|
* - ``sphinx.util.copy_static_entry()``
|
|
|
|
|
- 1.5
|
|
|
|
|
- 3.0
|
|
|
|
|
- ``sphinx.util.fileutil.copy_asset()``
|
|
|
|
|
|
2018-02-23 06:33:16 -06:00
|
|
|
|
* - ``sphinx.build_main()``
|
|
|
|
|
- 1.7
|
|
|
|
|
- 2.0
|
|
|
|
|
- ``sphinx.cmd.build.build_main()``
|
|
|
|
|
|
|
|
|
|
* - ``sphinx.ext.intersphinx.debug()``
|
|
|
|
|
- 1.7
|
|
|
|
|
- 2.0
|
|
|
|
|
- ``sphinx.ext.intersphinx.inspect_main()``
|
|
|
|
|
|
|
|
|
|
* - ``sphinx.ext.autodoc.format_annotation()``
|
|
|
|
|
- 1.7
|
|
|
|
|
- 2.0
|
|
|
|
|
- ``sphinx.util.inspect.Signature``
|
|
|
|
|
|
|
|
|
|
* - ``sphinx.ext.autodoc.formatargspec()``
|
|
|
|
|
- 1.7
|
|
|
|
|
- 2.0
|
|
|
|
|
- ``sphinx.util.inspect.Signature``
|
|
|
|
|
|
|
|
|
|
* - ``sphinx.ext.autodoc.AutodocReporter``
|
|
|
|
|
- 1.7
|
|
|
|
|
- 2.0
|
|
|
|
|
- ``sphinx.util.docutils.switch_source_input()``
|
|
|
|
|
|
|
|
|
|
* - ``sphinx.ext.autodoc.add_documenter()``
|
|
|
|
|
- 1.7
|
|
|
|
|
- 2.0
|
|
|
|
|
- :meth:`~sphinx.application.Sphinx.add_autodocumenter()`
|
|
|
|
|
|
|
|
|
|
* - ``sphinx.ext.autodoc.AutoDirective._register``
|
|
|
|
|
- 1.7
|
|
|
|
|
- 2.0
|
|
|
|
|
- :meth:`~sphinx.application.Sphinx.add_autodocumenter()`
|
|
|
|
|
|
|
|
|
|
* - ``AutoDirective._special_attrgetters``
|
|
|
|
|
- 1.7
|
|
|
|
|
- 2.0
|
|
|
|
|
- :meth:`~sphinx.application.Sphinx.add_autodoc_attrgetter()`
|
|
|
|
|
|
|
|
|
|
* - ``Sphinx.warn()``, ``Sphinx.info()``
|
|
|
|
|
- 1.6
|
|
|
|
|
- 2.0
|
|
|
|
|
- :ref:`logging-api`
|
|
|
|
|
|
|
|
|
|
* - ``BuildEnvironment.set_warnfunc()``
|
|
|
|
|
- 1.6
|
|
|
|
|
- 2.0
|
|
|
|
|
- :ref:`logging-api`
|
|
|
|
|
|
|
|
|
|
* - ``BuildEnvironment.note_toctree()``
|
|
|
|
|
- 1.6
|
|
|
|
|
- 2.0
|
|
|
|
|
- ``Toctree.note()`` (in ``sphinx.environment.adapters.toctree``)
|
|
|
|
|
|
|
|
|
|
* - ``BuildEnvironment.get_toc_for()``
|
|
|
|
|
- 1.6
|
|
|
|
|
- 2.0
|
|
|
|
|
- ``Toctree.get_toc_for()`` (in ``sphinx.environment.adapters.toctree``)
|
|
|
|
|
|
|
|
|
|
* - ``BuildEnvironment.get_toctree_for()``
|
|
|
|
|
- 1.6
|
|
|
|
|
- 2.0
|
|
|
|
|
- ``Toctree.get_toctree_for()`` (in ``sphinx.environment.adapters.toctree``)
|
|
|
|
|
|
|
|
|
|
* - ``BuildEnvironment.create_index()``
|
|
|
|
|
- 1.6
|
|
|
|
|
- 2.0
|
|
|
|
|
- ``IndexEntries.create_index()`` (in ``sphinx.environment.adapters.indexentries``)
|
|
|
|
|
|
|
|
|
|
* - ``sphinx.websupport``
|
|
|
|
|
- 1.6
|
|
|
|
|
- 2.0
|
2018-04-18 21:51:48 -05:00
|
|
|
|
- `sphinxcontrib-websupport <https://pypi.org/project/sphinxcontrib-websupport/>`_
|
2018-02-23 06:33:16 -06:00
|
|
|
|
|
|
|
|
|
* - ``StandaloneHTMLBuilder.css_files``
|
|
|
|
|
- 1.6
|
|
|
|
|
- 2.0
|
|
|
|
|
- :meth:`~sphinx.application.Sphinx.add_stylesheet()`
|
|
|
|
|
|
2018-02-20 21:58:55 -06:00
|
|
|
|
* - ``document.settings.gettext_compact``
|
|
|
|
|
- 1.8
|
|
|
|
|
- 1.8
|
|
|
|
|
- :confval:`gettext_compact`
|
|
|
|
|
|
2018-02-23 06:33:16 -06:00
|
|
|
|
* - ``Sphinx.status_iterator()``
|
|
|
|
|
- 1.6
|
|
|
|
|
- 1.7
|
|
|
|
|
- ``sphinx.util.status_iterator()``
|
|
|
|
|
|
|
|
|
|
* - ``Sphinx.old_status_iterator()``
|
|
|
|
|
- 1.6
|
|
|
|
|
- 1.7
|
|
|
|
|
- ``sphinx.util.old_status_iterator()``
|
|
|
|
|
|
|
|
|
|
* - ``Sphinx._directive_helper()``
|
|
|
|
|
- 1.6
|
|
|
|
|
- 1.7
|
|
|
|
|
- ``sphinx.util.docutils.directive_helper()``
|
|
|
|
|
|
|
|
|
|
* - ``sphinx.util.compat.Directive``
|
|
|
|
|
- 1.6
|
|
|
|
|
- 1.7
|
|
|
|
|
- ``docutils.parsers.rst.Directive``
|
|
|
|
|
|
|
|
|
|
* - ``sphinx.util.compat.docutils_version``
|
|
|
|
|
- 1.6
|
|
|
|
|
- 1.7
|
|
|
|
|
- ``sphinx.util.docutils.__version_info__``
|
|
|
|
|
|
|
|
|
|
.. note:: On deprecating on public APIs (internal functions and classes),
|
|
|
|
|
we also follow the policy as much as possible.
|