mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Merge branch '3.x'
This commit is contained in:
@@ -90,9 +90,9 @@ section describe an easy way to translate with *sphinx-intl*.
|
||||
locale_dirs = ['locale/'] # path is example but recommended.
|
||||
gettext_compact = False # optional.
|
||||
|
||||
This case-study assumes that :confval:`locale_dirs` is set to ``locale/`` and
|
||||
:confval:`gettext_compact` is set to ``False`` (the Sphinx document is
|
||||
already configured as such).
|
||||
This case-study assumes that BUILDDIR is set to ``_build``,
|
||||
:confval:`locale_dirs` is set to ``locale/`` and :confval:`gettext_compact`
|
||||
is set to ``False`` (the Sphinx document is already configured as such).
|
||||
|
||||
#. Extract translatable messages into pot files.
|
||||
|
||||
|
||||
@@ -2117,6 +2117,13 @@ These options influence LaTeX output.
|
||||
|
||||
.. versionadded:: 3.0
|
||||
|
||||
.. confval:: latex_theme_options
|
||||
|
||||
A dictionary of options that influence the look and feel of the selected
|
||||
theme.
|
||||
|
||||
.. versionadded:: 3.1
|
||||
|
||||
.. confval:: latex_theme_path
|
||||
|
||||
A list of paths that contain custom LaTeX themes as subdirectories. Relative
|
||||
|
||||
@@ -154,6 +154,21 @@ inserting them into the page source under a suitable :rst:dir:`py:module`,
|
||||
|
||||
.. versionadded:: 3.0
|
||||
|
||||
* autodoc considers a member public if its docstring contains
|
||||
``:meta public:`` in its :ref:`info-field-lists`, even if it starts with
|
||||
an underscore.
|
||||
For example:
|
||||
|
||||
.. code-block:: rst
|
||||
|
||||
def _my_function(my_arg, my_other_arg):
|
||||
"""blah blah blah
|
||||
|
||||
:meta public:
|
||||
"""
|
||||
|
||||
.. versionadded:: 3.1
|
||||
|
||||
* Python "special" members (that is, those named like ``__special__``) will
|
||||
be included if the ``special-members`` flag option is given::
|
||||
|
||||
|
||||
@@ -32,7 +32,8 @@ The :mod:`sphinx.ext.autosummary` extension does this in two parts:
|
||||
|
||||
The :rst:dir:`autosummary` directive can also optionally serve as a
|
||||
:rst:dir:`toctree` entry for the included items. Optionally, stub
|
||||
``.rst`` files for these items can also be automatically generated.
|
||||
``.rst`` files for these items can also be automatically generated
|
||||
when :confval:`autosummary_generate` is `True`.
|
||||
|
||||
For example, ::
|
||||
|
||||
@@ -76,6 +77,12 @@ The :mod:`sphinx.ext.autosummary` extension does this in two parts:
|
||||
directory. If no argument is given, output is placed in the same directory
|
||||
as the file that contains the directive.
|
||||
|
||||
You can also use ``caption`` option to give a caption to the toctree.
|
||||
|
||||
.. versionadded:: 3.1
|
||||
|
||||
caption option added.
|
||||
|
||||
* If you don't want the :rst:dir:`autosummary` to show function signatures in
|
||||
the listing, include the ``nosignatures`` option::
|
||||
|
||||
@@ -99,6 +106,17 @@ The :mod:`sphinx.ext.autosummary` extension does this in two parts:
|
||||
|
||||
.. versionadded:: 1.0
|
||||
|
||||
* You can specify the ``recursive`` option to generate documents for
|
||||
modules and sub-packages recursively. It defaults to disabled.
|
||||
For example, ::
|
||||
|
||||
.. autosummary::
|
||||
:recursive:
|
||||
|
||||
sphinx.environment.BuildEnvironment
|
||||
|
||||
.. versionadded:: 3.1
|
||||
|
||||
|
||||
:program:`sphinx-autogen` -- generate autodoc stub pages
|
||||
--------------------------------------------------------
|
||||
@@ -136,7 +154,7 @@ also use these config values:
|
||||
.. confval:: autosummary_generate
|
||||
|
||||
Boolean indicating whether to scan all found documents for autosummary
|
||||
directives, and to generate stub pages for each.
|
||||
directives, and to generate stub pages for each. It is disabled by default.
|
||||
|
||||
Can also be a list of documents for which stub pages should be generated.
|
||||
|
||||
@@ -263,6 +281,12 @@ The following variables available in the templates:
|
||||
List containing names of "public" attributes in the class. Only available
|
||||
for classes.
|
||||
|
||||
.. data:: modules
|
||||
|
||||
List containing names of "public" modules in the package. Only available for
|
||||
modules that are packages.
|
||||
|
||||
.. versionadded:: 3.1
|
||||
|
||||
Additionally, the following filters are available
|
||||
|
||||
|
||||
Reference in New Issue
Block a user