`` element for any of its items. This is standard docutils behaviour.
Default: :code-py:`True`.
- .. versionadded:: 1.0
+ .. version-added:: 1.0
.. confval:: html_secnumber_suffix
:type: :code-py:`str`
@@ -2031,7 +2031,7 @@ and also make use of these options.
Suffix for section numbers in HTML output.
Set to :code-py:`' '` to suppress the final dot on section numbers.
- .. versionadded:: 1.0
+ .. version-added:: 1.0
.. confval:: html_search_language
:type: :code-py:`str`
@@ -2072,10 +2072,10 @@ and also make use of these options.
.. _PyStemmer: https://pypi.org/project/PyStemmer/
- .. versionadded:: 1.1
+ .. version-added:: 1.1
Support English (``en``) and Japanese (``ja``).
- .. versionchanged:: 1.3
+ .. version-changed:: 1.3
Added additional languages.
.. confval:: html_search_options
@@ -2103,7 +2103,8 @@ and also make use of these options.
`Janome `_ is required.
- .. deprecated:: 1.6
+ .. version-deprecated:: 1.6
+
``'mecab'``, ``'janome'`` and ``'default'`` is deprecated.
To keep compatibility,
``'mecab'``, ``'janome'`` and ``'default'`` are also acceptable.
@@ -2140,9 +2141,9 @@ and also make use of these options.
``dict``
The ``jieba`` dictionary path for using a custom dictionary.
- .. versionadded:: 1.1
+ .. version-added:: 1.1
- .. versionchanged:: 1.4
+ .. version-changed:: 1.4
Allow any custom splitter in the *type* setting for Japanese.
.. confval:: html_search_scorer
@@ -2191,7 +2192,7 @@ and also make use of these options.
partialTerm: 2,
};
- .. versionadded:: 1.2
+ .. version-added:: 1.2
.. confval:: html_scaled_image_link
:type: :code-py:`bool`
@@ -2214,9 +2215,9 @@ and also make use of these options.
:scale: 50%
:class: no-scaled-link
- .. versionadded:: 1.3
+ .. version-added:: 1.3
- .. versionchanged:: 3.0
+ .. version-changed:: 3.0
Images with the ``no-scaled-link`` class will not be linked.
.. confval:: html_math_renderer
@@ -2227,7 +2228,7 @@ and also make use of these options.
The bundled renders are *mathjax* and *imgmath*.
You must also load the relevant extension in :confval:`extensions`.
- .. versionadded:: 1.8
+ .. version-added:: 1.8
Options for Single HTML output
@@ -2272,7 +2273,7 @@ so the HTML options also apply where appropriate.
This is the file name suffix for generated HTML help files.
- .. versionadded:: 2.0
+ .. version-added:: 2.0
.. confval:: htmlhelp_link_suffix
:type: :code-py:`str`
@@ -2280,7 +2281,7 @@ so the HTML options also apply where appropriate.
Suffix for generated links to HTML files.
- .. versionadded:: 2.0
+ .. version-added:: 2.0
.. _applehelp-options:
@@ -2288,7 +2289,7 @@ so the HTML options also apply where appropriate.
Options for Apple Help output
-----------------------------
-.. versionadded:: 1.3
+.. version-added:: 1.3
These options influence Apple Help output.
This builder derives from the HTML builder,
@@ -2522,7 +2523,7 @@ so the HTML options also apply where appropriate.
The options understood by the :ref:`builtin themes
` are described :ref:`here `.
- .. versionadded:: 1.2
+ .. version-added:: 1.2
.. confval:: epub_title
:type: :code-py:`str`
@@ -2530,7 +2531,7 @@ so the HTML options also apply where appropriate.
The title of the document.
- .. versionchanged:: 2.0
+ .. version-changed:: 2.0
It defaults to the :confval:`!project` option
(previously :confval:`!html_title`).
@@ -2540,9 +2541,9 @@ so the HTML options also apply where appropriate.
The description of the document.
- .. versionadded:: 1.4
+ .. version-added:: 1.4
- .. versionchanged:: 1.5
+ .. version-changed:: 1.5
Renamed from :confval:`!epub3_description`
.. confval:: epub_author
@@ -2559,9 +2560,9 @@ so the HTML options also apply where appropriate.
The name of a person, organisation, etc. that played a secondary role
in the creation of the content of an EPUB Publication.
- .. versionadded:: 1.4
+ .. version-added:: 1.4
- .. versionchanged:: 1.5
+ .. version-changed:: 1.5
Renamed from :confval:`!epub3_contributor`
.. confval:: epub_language
@@ -2635,7 +2636,7 @@ so the HTML options also apply where appropriate.
epub_cover = ('_static/cover.png', '')
epub_cover = ()
- .. versionadded:: 1.1
+ .. version-added:: 1.1
.. confval:: epub_css_files
:type: :code-py:`Sequence[str | tuple[str, dict[str, str]]]`
@@ -2649,7 +2650,7 @@ so the HTML options also apply where appropriate.
The *attributes* dictionary is used for the ```` tag's attributes.
For more information, see :confval:`html_css_files`.
- .. versionadded:: 1.8
+ .. version-added:: 1.8
.. confval:: epub_guide
:type: :code-py:`Sequence[tuple[str, str, str]]`
@@ -2745,7 +2746,7 @@ so the HTML options also apply where appropriate.
:code-py:`'includehidden'`
Include all ToC entries
- .. versionadded:: 1.2
+ .. version-added:: 1.2
.. confval:: epub_fix_images
:type: :code-py:`bool`
@@ -2759,7 +2760,7 @@ so the HTML options also apply where appropriate.
.. _Pillow: https://pypi.org/project/Pillow/
- .. versionadded:: 1.2
+ .. version-added:: 1.2
.. confval:: epub_max_image_width
:type: :code-py:`int`
@@ -2773,7 +2774,7 @@ so the HTML options also apply where appropriate.
.. _Pillow: https://pypi.org/project/Pillow/
- .. versionadded:: 1.2
+ .. version-added:: 1.2
.. confval:: epub_show_urls
:type: :code-py:`'footnote' | 'no' | 'inline'`
@@ -2794,7 +2795,7 @@ so the HTML options also apply where appropriate.
The display of inline URLs can be customised by adding CSS rules
for the class ``link-target``.
- .. versionadded:: 1.2
+ .. version-added:: 1.2
.. confval:: epub_use_index
:type: :code-py:`bool`
@@ -2802,7 +2803,7 @@ so the HTML options also apply where appropriate.
Add an index to the EPUB document.
- .. versionadded:: 1.2
+ .. version-added:: 1.2
.. confval:: epub_writing_mode
:type: :code-py:`'horizontal' | 'vertical'`
@@ -2886,17 +2887,17 @@ These options influence LaTeX output.
to keep a Unicode literal such as ``α`` (U+03B1) as-is in output,
rather than being rendered as :math:`\alpha`.
- .. versionchanged:: 2.1.0
+ .. version-changed:: 2.1.0
Use ``'xelatex'`` (and LaTeX package ``xeCJK``)
by default for Chinese documents.
- .. versionchanged:: 2.2.1
+ .. version-changed:: 2.2.1
Use ``'xelatex'`` by default for Greek documents.
- .. versionchanged:: 2.3
+ .. version-changed:: 2.3
Add ``'uplatex'`` support.
- .. versionchanged:: 4.0
+ .. version-changed:: 4.0
Use ``'uplatex'`` by default for Japanese documents.
.. confval:: latex_documents
@@ -2945,11 +2946,11 @@ These options influence LaTeX output.
With this option, you can put extra stuff in the master document
that shows up in the HTML, but not the LaTeX output.
- .. versionadded:: 0.3
+ .. version-added:: 0.3
The 6th item ``toctree_only``.
Tuples with 5 items are still accepted.
- .. versionadded:: 1.2
+ .. version-added:: 1.2
In the past including your own document class required you to prepend the
document class name with the string "sphinx".
This is not necessary anymore.
@@ -2978,7 +2979,7 @@ These options influence LaTeX output.
:code-tex:`\\chapter` numbering (or :code-tex:`\\section` for ``'howto'``
theme) when encountering :code-tex:`\\part` command.
- .. versionadded:: 1.4
+ .. version-added:: 1.4
.. confval:: latex_appendices
:type: :code-py:`Sequence[str]`
@@ -3006,8 +3007,8 @@ These options influence LaTeX output.
'py-modindex',
}
- .. versionadded:: 1.0
- .. versionchanged:: 7.4
+ .. version-added:: 1.0
+ .. version-changed:: 7.4
Permit and prefer a set type.
.. confval:: latex_show_pagerefs
@@ -3017,7 +3018,7 @@ These options influence LaTeX output.
Add page references after internal references.
This is very useful for printed copies of the manual.
- .. versionadded:: 1.0
+ .. version-added:: 1.0
.. confval:: latex_show_urls
:type: :code-py:`'no' | 'footnote' | 'inline'`
@@ -3034,8 +3035,8 @@ These options influence LaTeX output.
:code-py:`'inline'`
Display URLs inline in parentheses
- .. versionadded:: 1.0
- .. versionchanged:: 1.1
+ .. version-added:: 1.0
+ .. version-changed:: 1.1
This value is now a string; previously it was a boolean value,
and a true value selected the :code-py:`'inline'` display.
For backwards compatibility, :code-py:`True` is still accepted.
@@ -3058,7 +3059,7 @@ These options influence LaTeX output.
and also with multiple paragraphs in such cells
if the table is rendered using ``tabulary``.
- .. versionadded:: 1.6
+ .. version-added:: 1.6
.. confval:: latex_table_style
:type: :code-py:`list[str]`
@@ -3165,9 +3166,9 @@ These options influence LaTeX output.
.. _colortbl: https://ctan.org/pkg/colortbl
.. _xcolor: https://ctan.org/pkg/xcolor
- .. versionadded:: 5.3.0
+ .. version-added:: 5.3.0
- .. versionchanged:: 6.0.0
+ .. version-changed:: 6.0.0
Modify default from :code-py:`[]` to :code-py:`['booktabs', 'colorrows']`.
@@ -3207,13 +3208,13 @@ These options influence LaTeX output.
Cyrillic documents handle the indexing of Latin names correctly,
even those having diacritics.
- .. versionadded:: 1.8
+ .. version-added:: 1.8
.. confval:: latex_elements
:type: :code-py:`dict[str, str]`
:default: :code-py:`{}`
- .. versionadded:: 0.5
+ .. version-added:: 0.5
:ref:`See the full documentation for latex_elements `.
@@ -3227,9 +3228,9 @@ These options influence LaTeX output.
Default is to use :code-py:`'article'` for :code-py:`'howto'`
and :code-py:`'report'` for :code-py:`'manual'`.
- .. versionadded:: 1.0
+ .. version-added:: 1.0
- .. versionchanged:: 1.5
+ .. version-changed:: 1.5
In Japanese documentation (:confval:`language` is :code-py:`'ja'`),
by default :code-py:`'jreport'` is used for :code-py:`'howto'`
and :code-py:`'jsbook'` for :code-py:`'manual'`.
@@ -3255,9 +3256,9 @@ These options influence LaTeX output.
you must add a further suffix such as ``.txt`` to the filename
and adjust the :code-tex:`\\input{}` macro accordingly.
- .. versionadded:: 0.6
+ .. version-added:: 0.6
- .. versionchanged:: 1.2
+ .. version-changed:: 1.2
This overrides the files provided from Sphinx such as ``sphinx.sty``.
.. confval:: latex_theme
@@ -3281,7 +3282,7 @@ These options influence LaTeX output.
(Japanese documents use ``jreport``).
:confval:`latex_appendices` is only available for this theme.
- .. versionadded:: 3.0
+ .. version-added:: 3.0
.. confval:: latex_theme_options
:type: :code-py:`dict[str, Any]`
@@ -3291,7 +3292,7 @@ These options influence LaTeX output.
look and feel of the selected theme.
These are theme-specific.
- .. versionadded:: 3.1
+ .. version-added:: 3.1
.. confval:: latex_theme_path
:type: :code-py:`list[str]`
@@ -3300,7 +3301,7 @@ These options influence LaTeX output.
A list of paths that contain custom LaTeX themes as subdirectories.
Relative paths are taken as relative to the :term:`configuration directory`.
- .. versionadded:: 3.0
+ .. version-added:: 3.0
.. _text-options:
@@ -3316,7 +3317,7 @@ These options influence text output.
Include section numbers in text output.
- .. versionadded:: 1.7
+ .. version-added:: 1.7
.. confval:: text_newlines
:type: :code-py:`'unix' | 'windows' | 'native'`
@@ -3331,7 +3332,7 @@ These options influence text output.
:code-py:`'native'`
Use the line ending style of the platform the documentation is built on.
- .. versionadded:: 1.1
+ .. version-added:: 1.1
.. confval:: text_secnumber_suffix
:type: :code-py:`str`
@@ -3340,7 +3341,7 @@ These options influence text output.
Suffix for section numbers in text output.
Set to :code-py:`' '` to suppress the final dot on section numbers.
- .. versionadded:: 1.7
+ .. version-added:: 1.7
.. confval:: text_sectionchars
:type: :code-py:`str`
@@ -3350,7 +3351,7 @@ These options influence text output.
The first character is used for first-level headings,
the second for second-level headings and so on.
- .. versionadded:: 1.1
+ .. version-added:: 1.1
.. _man-options:
@@ -3399,7 +3400,7 @@ These options influence manual page output.
The manual page section.
Used for the output file name as well as in the manual page header.
- .. versionadded:: 1.0
+ .. version-added:: 1.0
.. confval:: man_show_urls
:type: :code-py:`bool`
@@ -3407,7 +3408,7 @@ These options influence manual page output.
Add URL addresses after links.
- .. versionadded:: 1.1
+ .. version-added:: 1.1
.. confval:: man_make_section_directory
:type: :code-py:`bool`
@@ -3415,12 +3416,12 @@ These options influence manual page output.
Make a section directory on build man page.
- .. versionadded:: 3.3
+ .. version-added:: 3.3
- .. versionchanged:: 4.0
+ .. version-changed:: 4.0
The default is now :code-py:`False` (previously :code-py:`True`).
- .. versionchanged:: 4.0.2
+ .. version-changed:: 4.0.2
Revert the change in the default.
@@ -3481,7 +3482,7 @@ These options influence Texinfo output.
With this option, you can put extra stuff in the master document
that shows up in the HTML, but not the Texinfo output.
- .. versionadded:: 1.1
+ .. version-added:: 1.1
.. confval:: texinfo_appendices
:type: :code-py:`Sequence[str]`
@@ -3489,7 +3490,7 @@ These options influence Texinfo output.
A list of document names to append as an appendix to all manuals.
- .. versionadded:: 1.1
+ .. version-added:: 1.1
.. confval:: texinfo_cross_references
:type: :code-py:`bool`
@@ -3499,7 +3500,7 @@ These options influence Texinfo output.
Disabling inline references can make an info file more readable
with a stand-alone reader (``info``).
- .. versionadded:: 4.4
+ .. version-added:: 4.4
.. confval:: texinfo_domain_indices
:type: :code-py:`bool | Sequence[str]`
@@ -3520,8 +3521,8 @@ These options influence Texinfo output.
'py-modindex',
}
- .. versionadded:: 1.1
- .. versionchanged:: 7.4
+ .. version-added:: 1.1
+ .. version-changed:: 7.4
Permit and prefer a set type.
.. confval:: texinfo_elements
@@ -3556,7 +3557,7 @@ These options influence Texinfo output.
``'author'``, ``'body'``, ``'date'``, ``'direntry'``
``'filename'``, ``'project'``, ``'release'``, and ``'title'``.
- .. versionadded:: 1.1
+ .. version-added:: 1.1
.. confval:: texinfo_no_detailmenu
:type: :code-py:`bool`
@@ -3565,7 +3566,7 @@ These options influence Texinfo output.
Do not generate a ``@detailmenu`` in the "Top" node's menu
containing entries for each sub-node in the document.
- .. versionadded:: 1.2
+ .. version-added:: 1.2
.. confval:: texinfo_show_urls
:type: :code-py:`'footnote' | 'no' | 'inline'`
@@ -3581,7 +3582,7 @@ These options influence Texinfo output.
:code-py:`'inline'`
Display URLs inline in parentheses.
- .. versionadded:: 1.1
+ .. version-added:: 1.1
.. _qthelp-options:
@@ -3631,7 +3632,7 @@ Options for XML output
Pretty-print the XML.
- .. versionadded:: 1.2
+ .. version-added:: 1.2
Options for the linkcheck builder
@@ -3668,9 +3669,9 @@ and which failures and redirects it ignores.
r'https://sphinx-doc\.org/.*': r'https://sphinx-doc\.org/en/master/.*'
}
- .. versionadded:: 4.1
+ .. version-added:: 4.1
- .. versionchanged:: 8.3
+ .. version-changed:: 8.3
Setting :confval:`!linkcheck_allowed_redirects` to an empty dictionary
may now be used to warn on all redirects encountered
by the *linkcheck* builder.
@@ -3683,7 +3684,7 @@ and which failures and redirects it ignores.
Since this requires downloading the whole document,
it is considerably slower when enabled.
- .. versionadded:: 1.2
+ .. version-added:: 1.2
.. confval:: linkcheck_anchors_ignore
:type: :code-py:`Sequence[str]`
@@ -3710,7 +3711,7 @@ and which failures and redirects it ignores.
'https://www.sphinx-doc.org/en/1.7/intro.html#',
]
- .. versionadded:: 1.5
+ .. version-added:: 1.5
.. confval:: linkcheck_anchors_ignore_for_url
:type: :code-py:`Sequence[str]`
@@ -3721,7 +3722,7 @@ and which failures and redirects it ignores.
This allows skipping anchor checks on a per-page basis
while still checking the validity of the page itself.
- .. versionadded:: 7.1
+ .. version-added:: 7.1
.. confval:: linkcheck_exclude_documents
:type: :code-py:`Sequence[str]`
@@ -3739,7 +3740,7 @@ and which failures and redirects it ignores.
# ignore all links in documents located in a subdirectory named 'legacy'
linkcheck_exclude_documents = [r'.*/legacy/.*']
- .. versionadded:: 4.4
+ .. version-added:: 4.4
.. confval:: linkcheck_ignore
:type: :code-py:`Sequence[str]`
@@ -3757,7 +3758,7 @@ and which failures and redirects it ignores.
linkcheck_ignore = [r'https://localhost:\d+/']
- .. versionadded:: 1.1
+ .. version-added:: 1.1
HTTP Requests
~~~~~~~~~~~~~
@@ -3794,7 +3795,7 @@ and the number of workers to use.
('https://.+\.yourcompany\.com/.+', HTTPDigestAuth(...)),
]
- .. versionadded:: 2.3
+ .. version-added:: 2.3
.. confval:: linkcheck_allow_unauthorized
:type: :code-py:`bool`
@@ -3805,12 +3806,12 @@ and the number of workers to use.
to treat the link as "broken".
To change that behaviour, set this option to :code-py:`True`.
- .. versionchanged:: 8.0
+ .. version-changed:: 8.0
The default value for this option changed to :code-py:`False`,
meaning HTTP 401 responses to checked hyperlinks
are treated as "broken" by default.
- .. versionadded:: 7.3
+ .. version-added:: 7.3
.. confval:: linkcheck_rate_limit_timeout
:type: :code-py:`int`
@@ -3832,7 +3833,7 @@ and the number of workers to use.
.. _Retry-After: https://datatracker.ietf.org/doc/html/rfc7231#section-7.1.3
- .. versionadded:: 3.4
+ .. version-added:: 3.4
.. confval:: linkcheck_report_timeouts_as_broken
:type: :code-py:`bool`
@@ -3843,12 +3844,12 @@ and the number of workers to use.
by default. To report timeouts as ``broken`` instead, you can
set :confval:`linkcheck_report_timeouts_as_broken` to :code-py:`True`.
- .. versionchanged:: 8.0
+ .. version-changed:: 8.0
The default value for this option changed to :code-py:`False`,
meaning timeouts that occur while checking hyperlinks
will be reported using the new 'timeout' status code.
- .. versionadded:: 7.3
+ .. version-added:: 7.3
.. confval:: linkcheck_request_headers
:type: :code-py:`dict[str, dict[str, str]]`
@@ -3876,7 +3877,7 @@ and the number of workers to use.
}
}
- .. versionadded:: 3.1
+ .. version-added:: 3.1
.. confval:: linkcheck_retries
:type: :code-py:`int`
@@ -3885,7 +3886,7 @@ and the number of workers to use.
The number of times the *linkcheck* builder
will attempt to check a URL before declaring it broken.
- .. versionadded:: 1.4
+ .. version-added:: 1.4
.. confval:: linkcheck_timeout
:type: :code-py:`int`
@@ -3894,7 +3895,7 @@ and the number of workers to use.
The duration, in seconds, that the *linkcheck* builder
will wait for a response after each hyperlink request.
- .. versionadded:: 1.1
+ .. version-added:: 1.1
.. confval:: linkcheck_workers
:type: :code-py:`int`
@@ -3902,7 +3903,7 @@ and the number of workers to use.
The number of worker threads to use when checking links.
- .. versionadded:: 1.1
+ .. version-added:: 1.1
Domain options
@@ -3922,8 +3923,8 @@ Options for the C domain
A list of identifiers to be recognised as keywords by the C parser.
- .. versionadded:: 4.0.3
- .. versionchanged:: 7.4
+ .. version-added:: 4.0.3
+ .. version-changed:: 7.4
:confval:`!c_extra_keywords` can now be a set.
.. confval:: c_id_attributes
@@ -3943,8 +3944,8 @@ Options for the C domain
'my_id_attribute',
]
- .. versionadded:: 3.0
- .. versionchanged:: 7.4
+ .. version-added:: 3.0
+ .. version-changed:: 7.4
:confval:`!c_id_attributes` can now be a tuple.
.. confval:: c_maximum_signature_line_length
@@ -3961,7 +3962,7 @@ Options for the C domain
This is a domain-specific setting,
overriding :confval:`maximum_signature_line_length`.
- .. versionadded:: 7.1
+ .. version-added:: 7.1
.. confval:: c_paren_attributes
:type: :code-py:`Sequence[str]`
@@ -3984,8 +3985,8 @@ Options for the C domain
'my_align_as',
]
- .. versionadded:: 3.0
- .. versionchanged:: 7.4
+ .. version-added:: 3.0
+ .. version-changed:: 7.4
:confval:`!c_paren_attributes` can now be a tuple.
@@ -4011,8 +4012,8 @@ Options for the C++ domain
'my_id_attribute',
]
- .. versionadded:: 1.5
- .. versionchanged:: 7.4
+ .. version-added:: 1.5
+ .. version-changed:: 7.4
:confval:`!cpp_id_attributes` can now be a tuple.
.. confval:: cpp_index_common_prefix
@@ -4030,7 +4031,7 @@ Options for the C++ domain
'awesome_lib::',
]
- .. versionadded:: 1.5
+ .. version-added:: 1.5
.. confval:: cpp_maximum_signature_line_length
:type: :code-py:`int | None`
@@ -4046,7 +4047,7 @@ Options for the C++ domain
This is a domain-specific setting,
overriding :confval:`maximum_signature_line_length`.
- .. versionadded:: 7.1
+ .. version-added:: 7.1
.. confval:: cpp_paren_attributes
:type: :code-py:`Sequence[str]`
@@ -4069,8 +4070,8 @@ Options for the C++ domain
'my_align_as',
]
- .. versionadded:: 1.5
- .. versionchanged:: 7.4
+ .. version-added:: 1.5
+ .. version-changed:: 7.4
:confval:`!cpp_paren_attributes` can now be a tuple.
@@ -4091,7 +4092,7 @@ Options for the Javascript domain
This is a domain-specific setting,
overriding :confval:`maximum_signature_line_length`.
- .. versionadded:: 7.1
+ .. version-added:: 7.1
.. confval:: javascript_trailing_comma_in_multi_line_signatures
:type: :code-py:`bool`
@@ -4099,7 +4100,7 @@ Options for the Javascript domain
Use a trailing comma in parameter lists spanning multiple lines, if true.
- .. versionadded:: 8.2
+ .. version-added:: 8.2
Options for the Python domain
@@ -4127,7 +4128,7 @@ Options for the Python domain
.. caution::
Works only for the HTML builder currently.
- .. versionadded:: 0.6
+ .. version-added:: 0.6
.. confval:: python_display_short_literal_types
:type: :code-py:`bool`
@@ -4158,7 +4159,7 @@ Options for the Python domain
serve_food(item: "egg" | "spam" | "lobster thermidor") -> None
- .. versionadded:: 6.2
+ .. version-added:: 6.2
.. confval:: python_maximum_signature_line_length
:type: :code-py:`int | None`
@@ -4188,7 +4189,7 @@ Options for the Python domain
.. py:function:: add[T: VERY_LONG_SUPER_TYPE, U: VERY_LONG_SUPER_TYPE](a: T, b: U)
- .. versionadded:: 7.1
+ .. version-added:: 7.1
.. confval:: python_trailing_comma_in_multi_line_signatures
:type: :code-py:`bool`
@@ -4196,7 +4197,7 @@ Options for the Python domain
Use a trailing comma in parameter lists spanning multiple lines, if true.
- .. versionadded:: 8.2
+ .. version-added:: 8.2
.. confval:: python_use_unqualified_type_names
:type: :code-py:`bool`
@@ -4204,7 +4205,7 @@ Options for the Python domain
Suppress the module name of the python reference if it can be resolved.
- .. versionadded:: 4.0
+ .. version-added:: 4.0
.. caution::
This feature is experimental.
@@ -4219,8 +4220,8 @@ Options for the Python domain
See the extension :mod:`~sphinx.ext.doctest` for more
possibilities of including doctests.
- .. versionadded:: 1.0
- .. versionchanged:: 1.1
+ .. version-added:: 1.0
+ .. version-changed:: 1.1
Now also removes ````.
diff --git a/doc/usage/domains/c.rst b/doc/usage/domains/c.rst
index 49aa5caee1c..d6b24ad8c48 100644
--- a/doc/usage/domains/c.rst
+++ b/doc/usage/domains/c.rst
@@ -4,7 +4,7 @@
The C Domain
============
-.. versionadded:: 1.0
+.. version-added:: 1.0
The C domain (name **c**) is suited for documentation of C API.
@@ -39,7 +39,7 @@ The C domain (name **c**) is suited for documentation of C API.
* ``retval``, ``retvals``: An alternative to ``returns`` for describing
the result of the function.
- .. versionadded:: 4.3
+ .. version-added:: 4.3
The ``retval`` field type.
For example::
@@ -74,7 +74,7 @@ The C domain (name **c**) is suited for documentation of C API.
line, overriding :confval:`c_maximum_signature_line_length` and
:confval:`maximum_signature_line_length`.
- .. versionadded:: 7.1
+ .. version-added:: 7.1
.. rst:directive:: .. c:macro:: name
@@ -86,7 +86,7 @@ The C domain (name **c**) is suited for documentation of C API.
In the description of a macro you can use the same info fields as for the
:rst:dir:`c:function` directive.
- .. versionadded:: 3.0
+ .. version-added:: 3.0
The function style variant.
.. rst:directive:option:: single-line-parameter-list
@@ -96,31 +96,31 @@ The C domain (name **c**) is suited for documentation of C API.
line, overriding :confval:`c_maximum_signature_line_length` and
:confval:`maximum_signature_line_length`.
- .. versionadded:: 7.1
+ .. version-added:: 7.1
.. rst:directive:: .. c:struct:: name
Describes a C struct.
- .. versionadded:: 3.0
+ .. version-added:: 3.0
.. rst:directive:: .. c:union:: name
Describes a C union.
- .. versionadded:: 3.0
+ .. version-added:: 3.0
.. rst:directive:: .. c:enum:: name
Describes a C enum.
- .. versionadded:: 3.0
+ .. version-added:: 3.0
.. rst:directive:: .. c:enumerator:: name
Describes a C enumerator.
- .. versionadded:: 3.0
+ .. version-added:: 3.0
.. rst:directive:: .. c:type:: typedef-like declaration
.. c:type:: name
@@ -151,7 +151,7 @@ are defined in the documentation:
Note that :rst:role:`c:member`, :rst:role:`c:data`, and
:rst:role:`c:var` are equivalent.
- .. versionadded:: 3.0
+ .. version-added:: 3.0
The var, struct, union, enum, and enumerator roles.
@@ -198,7 +198,7 @@ This will be rendered as:
Explicit ref: :c:var:`Data.@data.a`. Short-hand ref: :c:var:`Data.a`.
-.. versionadded:: 3.0
+.. version-added:: 3.0
Aliasing Declarations
@@ -236,7 +236,7 @@ The following directive can be used for this purpose.
.. c:alias:: data
f
- .. versionadded:: 3.2
+ .. version-added:: 3.2
.. rubric:: Options
@@ -247,14 +247,14 @@ The following directive can be used for this purpose.
Use 0 for infinite depth and 1 for just the mentioned declaration.
Defaults to 1.
- .. versionadded:: 3.3
+ .. version-added:: 3.3
.. rst:directive:option:: noroot
Skip the mentioned declarations and only render nested declarations.
Requires ``maxdepth`` either 0 or at least 2.
- .. versionadded:: 3.5
+ .. version-added:: 3.5
.. c:namespace-pop::
@@ -293,13 +293,13 @@ Inline Expressions and Types
A type: :c:expr:`const Data*`
(or as text :c:texpr:`const Data*`).
- .. versionadded:: 3.0
+ .. version-added:: 3.0
Namespacing
-----------
-.. versionadded:: 3.1
+.. version-added:: 3.1
The C language it self does not support namespacing, but it can sometimes be
useful to emulate it in documentation, e.g., to show alternate declarations.
diff --git a/doc/usage/domains/cpp.rst b/doc/usage/domains/cpp.rst
index 57cb932e496..8bb1caddd05 100644
--- a/doc/usage/domains/cpp.rst
+++ b/doc/usage/domains/cpp.rst
@@ -4,7 +4,7 @@
The C++ Domain
==============
-.. versionadded:: 1.0
+.. version-added:: 1.0
The C++ domain (name **cpp**) supports documenting C++ projects.
@@ -46,7 +46,7 @@ visibility statement (``public``, ``private`` or ``protected``).
.. cpp:class:: template \
std::array
- .. versionadded:: 2.0
+ .. version-added:: 2.0
The :rst:dir:`cpp:struct` directive.
.. rst:directive:: .. cpp:function:: (member) function prototype
@@ -94,7 +94,7 @@ visibility statement (``public``, ``private`` or ``protected``).
line, overriding :confval:`cpp_maximum_signature_line_length` and
:confval:`maximum_signature_line_length`.
- .. versionadded:: 7.1
+ .. version-added:: 7.1
.. rst:directive:: .. cpp:member:: (member) variable declaration
.. cpp:var:: (member) variable declaration
@@ -199,7 +199,7 @@ visibility statement (``public``, ``private`` or ``protected``).
Describe a union.
- .. versionadded:: 1.8
+ .. version-added:: 1.8
.. rst:directive:: .. cpp:concept:: template-parameter-list name
@@ -248,7 +248,7 @@ visibility statement (``public``, ``private`` or ``protected``).
- :cpp:expr:`++r`, with return type :cpp:expr:`It&`, when :cpp:expr:`r`
is incrementable.
- .. versionadded:: 1.5
+ .. version-added:: 1.5
Options
@@ -260,7 +260,7 @@ Some directives support options:
- ``:tparam-line-spec:``, for templated declarations.
If specified, each template parameter will be rendered on a separate line.
- .. versionadded:: 1.6
+ .. version-added:: 1.6
Anonymous Entities
------------------
@@ -305,7 +305,7 @@ This will be rendered as:
Explicit ref: :cpp:var:`Data::@data::a`. Short-hand ref: :cpp:var:`Data::a`.
-.. versionadded:: 1.8
+.. version-added:: 1.8
Aliasing Declarations
@@ -342,7 +342,7 @@ The following directive can be used for this purpose.
.. cpp:alias:: void overload_example::C::f(double d) const
void overload_example::C::f(double d)
- .. versionadded:: 2.0
+ .. version-added:: 2.0
.. rubric:: Options
@@ -353,14 +353,14 @@ The following directive can be used for this purpose.
Use 0 for infinite depth and 1 for just the mentioned declaration.
Defaults to 1.
- .. versionadded:: 3.5
+ .. version-added:: 3.5
.. rst:directive:option:: noroot
Skip the mentioned declarations and only render nested declarations.
Requires ``maxdepth`` either 0 or at least 2.
- .. versionadded:: 3.5
+ .. version-added:: 3.5
Constrained Templates
@@ -456,10 +456,10 @@ Inline Expressions and Types
A type: :cpp:expr:`const MySortedContainer&`
(or as text :cpp:texpr:`const MySortedContainer&`).
- .. versionadded:: 1.7
+ .. version-added:: 1.7
The :rst:role:`cpp:expr` role.
- .. versionadded:: 1.8
+ .. version-added:: 1.8
The :rst:role:`cpp:texpr` role.
Namespacing
@@ -523,7 +523,7 @@ The ``cpp:namespace-pop`` directive undoes the most recent
the current scope will be ``A::B::C::D``.
- .. versionadded:: 1.4
+ .. version-added:: 1.4
.. rst:directive:: .. cpp:namespace-pop::
@@ -546,7 +546,7 @@ The ``cpp:namespace-pop`` directive undoes the most recent
.. cpp:namespace-push:: A::B
- .. versionadded:: 1.4
+ .. version-added:: 1.4
Info field lists
----------------
@@ -565,7 +565,7 @@ following fields:
the result of the function.
* ``throws``, ``throw``, ``exception``: Description of a possibly thrown exception.
-.. versionadded:: 4.3
+.. version-added:: 4.3
The ``retval`` field type.
.. _cpp-xref-roles:
@@ -589,7 +589,7 @@ These roles link to the given declaration types:
Reference a C++ declaration by name (see below for details). The name must
be properly qualified relative to the position of the link.
- .. versionadded:: 2.0
+ .. version-added:: 2.0
The :rst:role:`cpp:struct` role as alias for the :rst:role:`cpp:class`
role.
diff --git a/doc/usage/domains/index.rst b/doc/usage/domains/index.rst
index fac8e94e8e8..bf0d85f559f 100644
--- a/doc/usage/domains/index.rst
+++ b/doc/usage/domains/index.rst
@@ -6,7 +6,7 @@
Domains
=======
-.. versionadded:: 1.0
+.. version-added:: 1.0
Originally, Sphinx was conceived for a single project, the documentation of the
Python language. Shortly afterwards, it was made available for everyone as a
@@ -125,19 +125,19 @@ index entry for later reference.
Though, note that not every directive in every domain may support these
options.
-.. versionadded:: 3.2
+.. version-added:: 3.2
The directive option ``noindexentry`` in the Python, C, C++, and Javascript
domains.
-.. versionadded:: 5.2.3
+.. version-added:: 5.2.3
The directive option ``:nocontentsentry:`` in the Python, C, C++, Javascript,
and reStructuredText domains.
-.. versionadded:: 7.2
+.. version-added:: 7.2
The directive option ``no-typesetting`` in the Python, C, C++, Javascript,
and reStructuredText domains.
-.. versionchanged:: 7.2
+.. version-changed:: 7.2
* The directive option ``:noindex:`` was renamed
to ``:no-index:``.
diff --git a/doc/usage/domains/javascript.rst b/doc/usage/domains/javascript.rst
index ba0ff101a52..b26c1feaba5 100644
--- a/doc/usage/domains/javascript.rst
+++ b/doc/usage/domains/javascript.rst
@@ -4,7 +4,7 @@
The JavaScript Domain
=====================
-.. versionadded:: 1.0
+.. version-added:: 1.0
The JavaScript domain (name **js**) provides the following directives:
@@ -20,8 +20,8 @@ The JavaScript domain (name **js**) provides the following directives:
specified. If this option is specified, the directive will only update the
current module name.
- .. versionadded:: 1.6
- .. versionchanged:: 5.2
+ .. version-added:: 1.6
+ .. version-changed:: 5.2
Module directives support body content.
@@ -66,14 +66,14 @@ The JavaScript domain (name **js**) provides the following directives:
line, overriding :confval:`javascript_maximum_signature_line_length` and
:confval:`maximum_signature_line_length`.
- .. versionadded:: 7.1
+ .. version-added:: 7.1
.. rst:directive:: .. js:method:: name(signature)
This directive is an alias for :rst:dir:`js:function`, however it describes
a function that is implemented as a method on a class object.
- .. versionadded:: 1.6
+ .. version-added:: 1.6
.. rst:directive:option:: single-line-parameter-list
:type: no value
@@ -82,7 +82,7 @@ The JavaScript domain (name **js**) provides the following directives:
line, overriding :confval:`javascript_maximum_signature_line_length` and
:confval:`maximum_signature_line_length`.
- .. versionadded:: 7.1
+ .. version-added:: 7.1
.. rst:directive:: .. js:class:: name
@@ -110,7 +110,7 @@ The JavaScript domain (name **js**) provides the following directives:
line, overriding :confval:`javascript_maximum_signature_line_length` and
:confval:`maximum_signature_line_length`.
- .. versionadded:: 7.1
+ .. version-added:: 7.1
.. rst:directive:: .. js:data:: name
diff --git a/doc/usage/domains/mathematics.rst b/doc/usage/domains/mathematics.rst
index 9f02c6dc978..12afdbd8f21 100644
--- a/doc/usage/domains/mathematics.rst
+++ b/doc/usage/domains/mathematics.rst
@@ -4,7 +4,7 @@
The Mathematics Domain
======================
-.. versionadded:: 1.8
+.. version-added:: 1.8
The math domain (name **math**) provides the following roles:
@@ -19,4 +19,4 @@ The math domain (name **math**) provides the following roles:
Euler's identity, equation :math:numref:`euler`, was elected one of the
most beautiful mathematical formulas.
- .. versionadded:: 1.8
+ .. version-added:: 1.8
diff --git a/doc/usage/domains/python.rst b/doc/usage/domains/python.rst
index 8d47a6e0221..0117339269b 100644
--- a/doc/usage/domains/python.rst
+++ b/doc/usage/domains/python.rst
@@ -4,7 +4,7 @@
The Python Domain
=================
-.. versionadded:: 1.0
+.. version-added:: 1.0
The Python domain (name **py**) provides the following directives for module
declarations:
@@ -18,7 +18,7 @@ declarations:
This directive will also cause an entry in the global module index.
- .. versionchanged:: 5.2
+ .. version-changed:: 5.2
Module directives support body content.
@@ -86,7 +86,7 @@ The following directives are provided for module and class contents:
Indicate the function is an async function.
- .. versionadded:: 2.1
+ .. version-added:: 2.1
.. rst:directive:option:: canonical
:type: full qualified name including module name
@@ -94,7 +94,7 @@ The following directives are provided for module and class contents:
Describe the location where the object is defined if the object is
imported from other modules
- .. versionadded:: 4.0
+ .. version-added:: 4.0
.. rst::directive:option:: module
:type: text
@@ -109,7 +109,7 @@ The following directives are provided for module and class contents:
line, overriding :confval:`python_maximum_signature_line_length` and
:confval:`maximum_signature_line_length`.
- .. versionadded:: 7.1
+ .. version-added:: 7.1
.. rst:directive:option:: single-line-type-parameter-list
:type: no value
@@ -118,7 +118,7 @@ The following directives are provided for module and class contents:
logical line, overriding :confval:`python_maximum_signature_line_length`
and :confval:`maximum_signature_line_length`.
- .. versionadded:: 7.1
+ .. version-added:: 7.1
.. rst:directive:: .. py:data:: name
@@ -145,12 +145,12 @@ The following directives are provided for module and class contents:
meaning unions must use ``|`` and sequences must use square brackets,
and roles such as ``:ref:`...``` cannot be used.
- .. versionadded:: 2.4
+ .. version-added:: 2.4
.. rst:directive:option:: value: initial value of the variable
:type: text
- .. versionadded:: 2.4
+ .. version-added:: 2.4
.. rst:directive:option:: canonical
:type: full qualified name including module name
@@ -158,7 +158,7 @@ The following directives are provided for module and class contents:
Describe the location where the object is defined if the object is
imported from other modules
- .. versionadded:: 4.0
+ .. version-added:: 4.0
.. rst::directive:option:: module
:type: text
@@ -181,7 +181,7 @@ The following directives are provided for module and class contents:
Indicate the class is a final class.
- .. versionadded:: 3.1
+ .. version-added:: 3.1
.. rst::directive:option:: module
:type: text
@@ -194,14 +194,14 @@ The following directives are provided for module and class contents:
See :rst:dir:`py:class:single-line-parameter-list`.
- .. versionadded:: 7.1
+ .. version-added:: 7.1
.. rst:directive:option:: single-line-type-parameter-list
:type: no value
See :rst:dir:`py:class:single-line-type-parameter-list`.
- .. versionadded:: 7.1
+ .. version-added:: 7.1
.. rst:directive:: .. py:class:: name
.. py:class:: name(parameters)
@@ -242,7 +242,7 @@ The following directives are provided for module and class contents:
A cheesy representation.
- .. versionadded:: 8.2
+ .. version-added:: 8.2
.. rst:directive:option:: canonical
:type: full qualified name including module name
@@ -250,14 +250,14 @@ The following directives are provided for module and class contents:
Describe the location where the object is defined if the object is
imported from other modules
- .. versionadded:: 4.0
+ .. version-added:: 4.0
.. rst:directive:option:: final
:type: no value
Indicate the class is a final class.
- .. versionadded:: 3.1
+ .. version-added:: 3.1
.. rst::directive:option:: module
:type: text
@@ -272,7 +272,7 @@ The following directives are provided for module and class contents:
logical line, overriding :confval:`python_maximum_signature_line_length`
and :confval:`maximum_signature_line_length`.
- .. versionadded:: 7.1
+ .. version-added:: 7.1
.. rst:directive:option:: single-line-type-parameter-list
:type: no value
@@ -305,12 +305,12 @@ The following directives are provided for module and class contents:
meaning unions must use ``|`` and sequences must use square brackets,
and roles such as ``:ref:`...``` cannot be used.
- .. versionadded:: 2.4
+ .. version-added:: 2.4
.. rst:directive:option:: value: initial value of the attribute
:type: text
- .. versionadded:: 2.4
+ .. version-added:: 2.4
.. rst:directive:option:: canonical
:type: full qualified name including module name
@@ -318,7 +318,7 @@ The following directives are provided for module and class contents:
Describe the location where the object is defined if the object is
imported from other modules
- .. versionadded:: 4.0
+ .. version-added:: 4.0
.. rst::directive:option:: module
:type: text
@@ -330,7 +330,7 @@ The following directives are provided for module and class contents:
Describes an object property.
- .. versionadded:: 4.0
+ .. version-added:: 4.0
.. rubric:: options
@@ -347,7 +347,7 @@ The following directives are provided for module and class contents:
Cheese levels at the *National Cheese Emporium*.
- .. versionchanged:: 8.2
+ .. version-changed:: 8.2
The ``:abstract:`` alias is also supported.
@@ -356,7 +356,7 @@ The following directives are provided for module and class contents:
Indicate the property is a classmethod.
- .. versionadded:: 4.2
+ .. version-added:: 4.2
.. rst:directive:option:: type: type of the property
:type: text
@@ -426,7 +426,7 @@ The following directives are provided for module and class contents:
Represent a regular expression or a compiled pattern.
- .. versionadded:: 7.4
+ .. version-added:: 7.4
.. rst:directive:: .. py:method:: name(parameters)
.. py:method:: name[type parameters](parameters)
@@ -451,8 +451,8 @@ The following directives are provided for module and class contents:
Order more cheese (we're fresh out!).
- .. versionadded:: 2.1
- .. versionchanged:: 8.2
+ .. version-added:: 2.1
+ .. version-changed:: 8.2
The ``:abstract:`` alias is also supported.
@@ -461,7 +461,7 @@ The following directives are provided for module and class contents:
Indicate the method is an async method.
- .. versionadded:: 2.1
+ .. version-added:: 2.1
.. rst:directive:option:: canonical
:type: full qualified name including module name
@@ -469,21 +469,21 @@ The following directives are provided for module and class contents:
Describe the location where the object is defined if the object is
imported from other modules
- .. versionadded:: 4.0
+ .. version-added:: 4.0
.. rst:directive:option:: classmethod
:type: no value
Indicate the method is a class method.
- .. versionadded:: 2.1
+ .. version-added:: 2.1
.. rst:directive:option:: final
:type: no value
Indicate the method is a final method.
- .. versionadded:: 3.1
+ .. version-added:: 3.1
.. rst::directive:option:: module
:type: text
@@ -498,7 +498,7 @@ The following directives are provided for module and class contents:
line, overriding :confval:`python_maximum_signature_line_length` and
:confval:`maximum_signature_line_length`.
- .. versionadded:: 7.1
+ .. version-added:: 7.1
.. rst:directive:option:: single-line-type-parameter-list
:type: no value
@@ -507,14 +507,14 @@ The following directives are provided for module and class contents:
line, overriding :confval:`python_maximum_signature_line_length` and
:confval:`maximum_signature_line_length`.
- .. versionadded:: 7.2
+ .. version-added:: 7.2
.. rst:directive:option:: staticmethod
:type: no value
Indicate the method is a static method.
- .. versionadded:: 2.1
+ .. version-added:: 2.1
.. rst:directive:: .. py:staticmethod:: name(parameters)
@@ -522,14 +522,14 @@ The following directives are provided for module and class contents:
Like :rst:dir:`py:method`, but indicates that the method is a static method.
- .. versionadded:: 0.4
+ .. version-added:: 0.4
.. rst:directive:: .. py:classmethod:: name(parameters)
.. py:classmethod:: name[type parameters](parameters)
Like :rst:dir:`py:method`, but indicates that the method is a class method.
- .. versionadded:: 0.6
+ .. version-added:: 0.6
.. rst:directive:: .. py:decorator:: name
.. py:decorator:: name(parameters)
@@ -571,7 +571,7 @@ The following directives are provided for module and class contents:
line, overriding :confval:`python_maximum_signature_line_length` and
:confval:`maximum_signature_line_length`.
- .. versionadded:: 7.1
+ .. version-added:: 7.1
.. rst:directive:option:: single-line-type-parameter-list
:type: no value
@@ -580,7 +580,7 @@ The following directives are provided for module and class contents:
logical line, overriding :confval:`python_maximum_signature_line_length`
and :confval:`maximum_signature_line_length`.
- .. versionadded:: 7.2
+ .. version-added:: 7.2
.. rst:directive:: .. py:decoratormethod:: name
.. py:decoratormethod:: name(signature)
@@ -656,8 +656,8 @@ The corresponding reStructuredText markup would be:
Info field lists
----------------
-.. versionadded:: 0.4
-.. versionchanged:: 3.0
+.. version-added:: 0.4
+.. version-changed:: 3.0
meta fields are added.
@@ -725,7 +725,7 @@ single word, like this::
:param int priority: The priority of the message, can be a number 1-5
-.. versionadded:: 1.5
+.. version-added:: 1.5
Container types such as lists and dictionaries can be linked automatically
using the following syntax::
@@ -817,7 +817,7 @@ a matching identifier is found:
Reference an object of unspecified type. Useful e.g. as the
:confval:`default_role`.
- .. versionadded:: 0.4
+ .. version-added:: 0.4
Target specification
diff --git a/doc/usage/domains/restructuredtext.rst b/doc/usage/domains/restructuredtext.rst
index a675ed55720..64ceb7f0909 100644
--- a/doc/usage/domains/restructuredtext.rst
+++ b/doc/usage/domains/restructuredtext.rst
@@ -4,7 +4,7 @@
The reStructuredText Domain
===========================
-.. versionadded:: 1.0
+.. version-added:: 1.0
The reStructuredText domain (name **rst**) provides the following directives:
@@ -74,7 +74,7 @@ The reStructuredText domain (name **rst**) provides the following directives:
.. rst:directive:option:: maxdepth
:type: integer or no value
- .. versionadded:: 2.1
+ .. version-added:: 2.1
.. rst:directive:: .. rst:role:: name
diff --git a/doc/usage/domains/standard.rst b/doc/usage/domains/standard.rst
index dfc837fc2e1..73cc2bb104e 100644
--- a/doc/usage/domains/standard.rst
+++ b/doc/usage/domains/standard.rst
@@ -4,7 +4,7 @@
The Standard Domain
===================
-.. versionadded:: 1.0
+.. version-added:: 1.0
The so-called "standard" domain collects all markup that doesn't warrant a
domain of its own. Its directives and roles are not prefixed with a domain
@@ -32,7 +32,7 @@ There is a set of directives allowing documenting command-line programs:
referenceable by :rst:role:`option` (in the example case, you'd use something
like ``:option:`dest_dir```, ``:option:`-m```, or ``:option:`--module```).
- .. versionchanged:: 5.3
+ .. version-changed:: 5.3
One can cross-reference including an option value: ``:option:`--module=foobar```,
,``:option:`--module[=foobar]``` or ``:option:`--module foobar```.
@@ -44,7 +44,7 @@ There is a set of directives allowing documenting command-line programs:
.. rst:directive:: .. confval:: name
- .. versionadded:: 7.4
+ .. version-added:: 7.4
Describes a configuration value or setting that the documented
code or program uses or defines.
@@ -118,7 +118,7 @@ There is a set of directives allowing documenting command-line programs:
The program name may contain spaces (in case you want to document
subcommands like ``svn add`` and ``svn commit`` separately).
- .. versionadded:: 0.5
+ .. version-added:: 0.5
There is also a very generic object description directive, which is not tied to
any domain:
diff --git a/doc/usage/extensions/apidoc.rst b/doc/usage/extensions/apidoc.rst
index 4dc8ca941a2..776dfdd79e4 100644
--- a/doc/usage/extensions/apidoc.rst
+++ b/doc/usage/extensions/apidoc.rst
@@ -10,7 +10,7 @@
.. index:: pair: generation; documentation
.. index:: pair: generate; documentation
-.. versionadded:: 8.2
+.. version-added:: 8.2
.. role:: code-py(code)
:language: Python
diff --git a/doc/usage/extensions/autodoc.rst b/doc/usage/extensions/autodoc.rst
index 1b873f0d819..f64f8555bd8 100644
--- a/doc/usage/extensions/autodoc.rst
+++ b/doc/usage/extensions/autodoc.rst
@@ -143,7 +143,7 @@ Marking objects as public or private
:meta private:
"""
- .. versionadded:: 3.0
+ .. version-added:: 3.0
* autodoc considers a member public if its docstring contains
``:meta public:`` in its :ref:`info-field-lists`, even if it starts with
@@ -158,7 +158,7 @@ Marking objects as public or private
:meta public:
"""
- .. versionadded:: 3.1
+ .. version-added:: 3.1
* autodoc considers a variable member does not have any default value if its
docstring contains ``:meta hide-value:`` in its :ref:`info-field-lists`.
@@ -168,7 +168,7 @@ Marking objects as public or private
var1 = None #: :meta hide-value:
- .. versionadded:: 3.5
+ .. version-added:: 3.5
.. _doc-comment:
@@ -324,7 +324,7 @@ Automatically document modules
Do not generate an index entry for the documented module
or any auto-documented members.
- .. versionadded:: 0.4
+ .. version-added:: 0.4
.. rst:directive:option:: no-index-entry
:type:
@@ -333,7 +333,7 @@ Automatically document modules
or any auto-documented members.
Unlike ``:no-index:``, cross-references are still created.
- .. versionadded:: 8.2
+ .. version-added:: 8.2
.. rst:directive:option:: platform: platforms
:type: comma separated list
@@ -347,7 +347,7 @@ Automatically document modules
A sentence describing the module's purpose.
This is identical to :rst:dir:`py:module`'s ``:synopsis:`` option.
- .. versionadded:: 0.5
+ .. version-added:: 0.5
.. rst:directive:option:: deprecated
:type:
@@ -355,14 +355,14 @@ Automatically document modules
Mark a module as deprecated.
This is identical to :rst:dir:`py:module`'s ``:deprecated:`` option.
- .. versionadded:: 0.5
+ .. version-added:: 0.5
.. rst:directive:option:: ignore-module-all
:type: no value
Do not use ``__all__`` when analysing the module to document.
- .. versionadded:: 1.7
+ .. version-added:: 1.7
.. rubric:: Options for selecting members to document
@@ -402,7 +402,7 @@ Automatically document modules
:members:
:exclude-members: NoodleBase
- .. versionadded:: 0.6
+ .. version-added:: 0.6
.. rst:directive:option:: imported-members
:type: no value
@@ -419,7 +419,7 @@ Automatically document modules
because attribute documentation is discovered by
parsing the source file of the current module.
- .. versionadded:: 1.2
+ .. version-added:: 1.2
.. rst:directive:option:: undoc-members
:type:
@@ -456,8 +456,8 @@ Automatically document modules
:members:
:private-members: _spicy, _garlickly
- .. versionadded:: 1.1
- .. versionchanged:: 3.2
+ .. version-added:: 1.1
+ .. version-changed:: 3.2
The option can now take a comma-separated list of arguments.
.. rst:directive:option:: special-members
@@ -483,9 +483,9 @@ Automatically document modules
:members:
:special-members: __version__
- .. versionadded:: 1.1
+ .. version-added:: 1.1
- .. versionchanged:: 1.2
+ .. version-changed:: 1.2
The option can now take a comma-separated list of arguments.
.. rubric:: Options for documented members
@@ -509,8 +509,8 @@ Automatically document modules
Note that for source order, the module must be a Python module with the
source code available.
- .. versionadded:: 0.6
- .. versionchanged:: 1.0
+ .. version-added:: 0.6
+ .. version-changed:: 1.0
Support the ``'bysource'`` option.
.. rst:directive:option:: show-inheritance
@@ -520,7 +520,7 @@ Automatically document modules
option for all members of the module,
if ``:members:`` is enabled.
- .. versionadded:: 0.4
+ .. version-added:: 0.4
Automatically document classes or exceptions
@@ -575,7 +575,7 @@ Automatically document classes or exceptions
This is useful if the signature from the method is hidden by a decorator.
- .. versionadded:: 0.4
+ .. version-added:: 0.4
.. rubric:: Options
@@ -585,7 +585,7 @@ Automatically document classes or exceptions
Do not generate an index entry for the documented class
or any auto-documented members.
- .. versionadded:: 0.4
+ .. version-added:: 0.4
.. rst:directive:option:: no-index-entry
:type:
@@ -594,7 +594,7 @@ Automatically document classes or exceptions
or any auto-documented members.
Unlike ``:no-index:``, cross-references are still created.
- .. versionadded:: 8.2
+ .. version-added:: 8.2
.. rst:directive:option:: class-doc-from
:type: class, init, or both
@@ -617,7 +617,7 @@ Automatically document classes or exceptions
``autodoc`` will attempt to use the :meth:`!__new__` method's docstring,
if it exists and is not blank.
- .. versionadded:: 4.1
+ .. version-added:: 4.1
.. rubric:: Options for selecting members to document
@@ -655,7 +655,7 @@ Automatically document classes or exceptions
:members:
:exclude-members: prepare
- .. versionadded:: 0.6
+ .. version-added:: 0.6
.. rst:directive:option:: inherited-members
:type: comma separated list
@@ -688,13 +688,13 @@ Automatically document classes or exceptions
reStructuredText for their docstrings,
there may be markup warnings or errors.
- .. versionadded:: 0.3
+ .. version-added:: 0.3
- .. versionchanged:: 3.0
+ .. version-changed:: 3.0
``:inherited-members:`` now takes the name of a base class
to exclude as an argument.
- .. versionchanged:: 5.0
+ .. version-changed:: 5.0
A comma separated list of base class names can be used.
.. rst:directive:option:: undoc-members
@@ -732,8 +732,8 @@ Automatically document classes or exceptions
:members:
:private-members: _spicy, _garlickly
- .. versionadded:: 1.1
- .. versionchanged:: 3.2
+ .. version-added:: 1.1
+ .. version-changed:: 3.2
The option can now take arguments.
.. rst:directive:option:: special-members
@@ -759,9 +759,9 @@ Automatically document classes or exceptions
:members:
:special-members: __init__, __name__
- .. versionadded:: 1.1
+ .. version-added:: 1.1
- .. versionchanged:: 1.2
+ .. version-changed:: 1.2
The option can now take a comma-separated list of arguments.
.. rubric:: Options for documented members
@@ -785,8 +785,8 @@ Automatically document classes or exceptions
Note that for source order, the module must be a Python module with the
source code available.
- .. versionadded:: 0.6
- .. versionchanged:: 1.0
+ .. version-added:: 0.6
+ .. version-changed:: 1.0
Support the ``'bysource'`` option.
.. rst:directive:option:: show-inheritance
@@ -794,7 +794,7 @@ Automatically document classes or exceptions
Insert the class's base classes after the class signature.
- .. versionadded:: 0.4
+ .. version-added:: 0.4
Automatically document function-like objects
@@ -833,9 +833,9 @@ Automatically document function-like objects
.. note:: For more flexibility, use the :py:class:`!Noodle` class.
- .. versionadded:: 2.0
+ .. version-added:: 2.0
:rst:dir:`autodecorator`.
- .. versionadded:: 2.1
+ .. version-added:: 2.1
:rst:dir:`autoproperty`.
.. note::
@@ -861,7 +861,7 @@ Automatically document function-like objects
This is useful if the signature from the method is hidden by a decorator.
- .. versionadded:: 0.4
+ .. version-added:: 0.4
.. rubric:: Options
@@ -870,7 +870,7 @@ Automatically document function-like objects
Do not generate an index entry for the documented function.
- .. versionadded:: 0.4
+ .. version-added:: 0.4
.. rst:directive:option:: no-index-entry
:type:
@@ -878,7 +878,7 @@ Automatically document function-like objects
Do not generate an index entry for the documented function.
Unlike ``:no-index:``, cross-references are still created.
- .. versionadded:: 8.2
+ .. version-added:: 8.2
Automatically document attributes or data
@@ -915,10 +915,10 @@ Automatically document attributes or data
.. hint:: Cooking time can vary by which flour type is used.
- .. versionchanged:: 0.6
+ .. version-changed:: 0.6
:rst:dir:`autodata` and :rst:dir:`autoattribute`
can now extract docstrings.
- .. versionchanged:: 1.1
+ .. version-changed:: 1.1
Doc-comments are now allowed on the same line of an assignment.
.. rubric:: Options
@@ -928,7 +928,7 @@ Automatically document attributes or data
Do not generate an index entry for the documented variable or constant.
- .. versionadded:: 0.4
+ .. version-added:: 0.4
.. rst:directive:option:: no-index-entry
:type:
@@ -936,12 +936,12 @@ Automatically document attributes or data
Do not generate an index entry for the documented variable or constant.
Unlike ``:no-index:``, cross-references are still created.
- .. versionadded:: 8.2
+ .. version-added:: 8.2
.. rst:directive:option:: annotation: value
:type: string
- .. versionadded:: 1.2
+ .. version-added:: 1.2
By default, ``autodoc`` attempts to obtain the type annotation
and value of the variable by introspection,
@@ -958,7 +958,7 @@ Automatically document attributes or data
.. rst:directive:option:: no-value
- .. versionadded:: 3.4
+ .. version-added:: 3.4
To display the type hint of the variable without a value,
use the ``:no-value:`` option.
@@ -988,13 +988,13 @@ There are also config values that you can set:
``'init'``
Only the ``__init__`` method's docstring is inserted.
- .. versionadded:: 0.3
+ .. version-added:: 0.3
If the class has no ``__init__`` method or if the ``__init__`` method's
docstring is empty, but the class has a ``__new__`` method's docstring,
it is used instead.
- .. versionadded:: 1.4
+ .. version-added:: 1.4
.. confval:: autodoc_class_signature
:type: :code-py:`str`
@@ -1008,7 +1008,7 @@ There are also config values that you can set:
``'separated'``
Display the signature as a method.
- .. versionadded:: 4.1
+ .. version-added:: 4.1
.. confval:: autodoc_member_order
:type: :code-py:`str`
@@ -1033,8 +1033,8 @@ There are also config values that you can set:
This requires that the module must be a Python module with the
source code available.
- .. versionadded:: 0.6
- .. versionchanged:: 1.0
+ .. version-added:: 0.6
+ .. version-changed:: 1.0
Support for ``'bysource'``.
.. confval:: autodoc_default_options
@@ -1075,18 +1075,18 @@ There are also config values that you can set:
* ``'no-index'``: See :rst:dir:`automodule:no-index`.
* ``'no-index-entry'``: See :rst:dir:`automodule:no-index-entry`.
- .. versionadded:: 1.8
+ .. version-added:: 1.8
- .. versionchanged:: 2.0
+ .. version-changed:: 2.0
Accepts ``True`` as a value.
- .. versionchanged:: 2.1
+ .. version-changed:: 2.1
Added ``'imported-members'``.
- .. versionchanged:: 4.1
+ .. version-changed:: 4.1
Added ``'class-doc-from'``.
- .. versionchanged:: 4.5
+ .. version-changed:: 4.5
Added ``'no-value'``.
.. confval:: autodoc_docstring_signature
@@ -1107,12 +1107,12 @@ There are also config values that you can set:
stopping at the first line that does not look like a signature.
This is useful for declaring overloaded function signatures.
- .. versionadded:: 1.1
- .. versionchanged:: 3.1
+ .. version-added:: 1.1
+ .. version-changed:: 3.1
Support overloaded signatures
- .. versionchanged:: 4.0
+ .. version-changed:: 4.0
Overloaded signatures do not need to be separated by a backslash
@@ -1131,9 +1131,9 @@ There are also config values that you can set:
Will mock all imports under the ``django`` package.
- .. versionadded:: 1.3
+ .. version-added:: 1.3
- .. versionchanged:: 1.6
+ .. version-changed:: 1.6
This config value only requires to declare the top-level modules that
should be mocked.
@@ -1156,12 +1156,12 @@ There are also config values that you can set:
description because it is impossible to accurately represent all possible
overloads as a list of parameters.
- .. versionadded:: 2.1
- .. versionadded:: 3.0
+ .. version-added:: 2.1
+ .. version-added:: 3.0
New option ``'description'`` is added.
- .. versionadded:: 4.1
+ .. version-added:: 4.1
New option ``'both'`` is added.
@@ -1185,9 +1185,9 @@ There are also config values that you can set:
parameter is documented in the docstring. The return type is always
annotated (except if it is ``None``).
- .. versionadded:: 4.0
+ .. version-added:: 4.0
- .. versionadded:: 5.0
+ .. version-added:: 5.0
New option ``'documented_params'`` is added.
@@ -1234,7 +1234,7 @@ There are also config values that you can set:
...
.. __: https://mypy.readthedocs.io/en/latest/kinds_of_types.html#type-aliases
- .. versionadded:: 3.3
+ .. version-added:: 3.3
.. confval:: autodoc_typehints_format
:type: :code-py:`str`
@@ -1247,9 +1247,9 @@ There are also config values that you can set:
* ``'short'`` -- Suppress the leading module names of the typehints
(e.g. ``io.StringIO`` -> ``StringIO``)
- .. versionadded:: 4.4
+ .. version-added:: 4.4
- .. versionchanged:: 5.0
+ .. version-changed:: 5.0
The default setting was changed to ``'short'``
@@ -1260,7 +1260,7 @@ There are also config values that you can set:
If True, the default argument values of functions will be not evaluated on
generating document. It preserves them as is in the source code.
- .. versionadded:: 4.0
+ .. version-added:: 4.0
Added as an experimental feature. This will be integrated into autodoc core
in the future.
@@ -1276,7 +1276,7 @@ There are also config values that you can set:
for example if it exclusively uses type annotations or
does not use type hints of any kind.
- .. versionadded:: 8.2
+ .. version-added:: 8.2
Added the option to disable the use of type comments in
via the new :confval:`!autodoc_use_type_comments` option,
@@ -1294,7 +1294,7 @@ There are also config values that you can set:
If ``False`` is given, autodoc forcedly suppresses the error if the imported
module emits warnings.
- .. versionchanged:: 8.1
+ .. version-changed:: 8.1
This option now has no effect as :option:`!--fail-on-warning`
no longer exits early.
@@ -1306,7 +1306,7 @@ There are also config values that you can set:
If set to True the docstring for classes or methods, if not explicitly set,
is inherited from parents.
- .. versionadded:: 1.7
+ .. version-added:: 1.7
.. confval:: suppress_warnings
:no-index:
@@ -1328,7 +1328,7 @@ autodoc provides the following additional events:
.. event:: autodoc-process-docstring (app, what, name, obj, options, lines)
- .. versionadded:: 0.4
+ .. version-added:: 0.4
Emitted when autodoc has read and processed a docstring. *lines* is a list
of strings -- the lines of the processed docstring -- that the event handler
@@ -1348,7 +1348,7 @@ autodoc provides the following additional events:
.. event:: autodoc-before-process-signature (app, obj, bound_method)
- .. versionadded:: 2.4
+ .. version-added:: 2.4
Emitted before autodoc formats a signature for an object. The event handler
can modify an object to change its signature.
@@ -1359,7 +1359,7 @@ autodoc provides the following additional events:
.. event:: autodoc-process-signature (app, what, name, obj, options, signature, return_annotation)
- .. versionadded:: 0.5
+ .. version-added:: 0.5
Emitted when autodoc has formatted a signature for an object. The event
handler can return a new tuple ``(signature, return_annotation)`` to change
@@ -1400,8 +1400,8 @@ needed docstring processing in event :event:`autodoc-process-docstring`:
:param options: the options given to the class directive
:param bases: the list of base classes signature. see above.
- .. versionadded:: 4.1
- .. versionchanged:: 4.3
+ .. version-added:: 4.1
+ .. version-changed:: 4.3
``bases`` can contain a string as a base class name.
It will be processed as reStructuredText.
@@ -1415,7 +1415,7 @@ member should be included in the documentation by using the following event:
.. event:: autodoc-skip-member (app, what, name, obj, skip, options)
- .. versionadded:: 0.5
+ .. version-added:: 0.5
Emitted when autodoc has to decide whether a member should be included in the
documentation. The member is excluded if a handler returns ``True``. It is
diff --git a/doc/usage/extensions/autosectionlabel.rst b/doc/usage/extensions/autosectionlabel.rst
index 1e9e1dba722..af4e2378518 100644
--- a/doc/usage/extensions/autosectionlabel.rst
+++ b/doc/usage/extensions/autosectionlabel.rst
@@ -6,7 +6,7 @@
.. module:: sphinx.ext.autosectionlabel
:synopsis: Allow referencing sections by their title.
-.. versionadded:: 1.4
+.. version-added:: 1.4
By default, cross-references to sections use labels (see :rst:role:`ref`).
This extension allows you to instead refer to sections by their title.
diff --git a/doc/usage/extensions/autosummary.rst b/doc/usage/extensions/autosummary.rst
index c84dcb60eff..2675b85c797 100644
--- a/doc/usage/extensions/autosummary.rst
+++ b/doc/usage/extensions/autosummary.rst
@@ -6,7 +6,7 @@
.. module:: sphinx.ext.autosummary
:synopsis: Generate autodoc summaries
-.. versionadded:: 0.6
+.. version-added:: 0.6
.. role:: code-py(code)
:language: Python
@@ -74,7 +74,7 @@ The :mod:`sphinx.ext.autosummary` extension does this in two parts:
.. _class attributes: https://docutils.sourceforge.io/docs/ref/doctree.html#classes
- .. versionadded:: 8.2
+ .. version-added:: 8.2
.. rst:directive:option:: toctree: optional directory name
@@ -94,13 +94,13 @@ 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.
- .. versionadded:: 0.6
+ .. version-added:: 0.6
.. rst:directive:option:: caption: caption of ToC
Add a caption to the toctree.
- .. versionadded:: 3.1
+ .. version-added:: 3.1
.. rst:directive:option:: signatures: format
@@ -112,7 +112,7 @@ The :mod:`sphinx.ext.autosummary` extension does this in two parts:
arguments and as ``()`` if they don't have arguments.
- ``none``: do not show signatures.
- .. versionadded:: 8.2
+ .. version-added:: 8.2
.. rst:directive:option:: nosignatures
@@ -120,9 +120,9 @@ The :mod:`sphinx.ext.autosummary` extension does this in two parts:
This is equivalent to ``:signatures: none``.
- .. versionadded:: 0.6
+ .. version-added:: 0.6
- .. versionchanged:: 8.2
+ .. version-changed:: 8.2
The directive option is superseded by the more general ``:signatures: none``.
@@ -143,7 +143,7 @@ The :mod:`sphinx.ext.autosummary` extension does this in two parts:
:confval:`templates_path` to generate the pages for all entries
listed. See `Customizing templates`_ below.
- .. versionadded:: 1.0
+ .. version-added:: 1.0
.. rst:directive:option:: recursive
@@ -155,7 +155,7 @@ The :mod:`sphinx.ext.autosummary` extension does this in two parts:
sphinx.environment.BuildEnvironment
- .. versionadded:: 3.1
+ .. version-added:: 3.1
:program:`sphinx-autogen` -- generate autodoc stub pages
@@ -198,7 +198,7 @@ also use these config values:
A dictionary of values to pass into the template engine's context for
autosummary stubs files.
- .. versionadded:: 3.1
+ .. version-added:: 3.1
.. confval:: autosummary_generate
:type: :code-py:`bool`
@@ -212,12 +212,12 @@ also use these config values:
The new files will be placed in the directories specified in the
``:toctree:`` options of the directives.
- .. versionchanged:: 2.3
+ .. version-changed:: 2.3
Emits :event:`autodoc-skip-member` event as :mod:`~sphinx.ext.autodoc`
does.
- .. versionchanged:: 4.0
+ .. version-changed:: 4.0
Enabled by default.
@@ -227,7 +227,7 @@ also use these config values:
If true, autosummary overwrites existing files by generated stub pages.
- .. versionadded:: 3.0
+ .. version-added:: 3.0
.. confval:: autosummary_mock_imports
:type: :code-py:`list[str]`
@@ -237,7 +237,7 @@ also use these config values:
See :confval:`autodoc_mock_imports` for more details.
It defaults to :confval:`autodoc_mock_imports`.
- .. versionadded:: 2.0
+ .. version-added:: 2.0
.. confval:: autosummary_imported_members
:type: :code-py:`bool`
@@ -246,9 +246,9 @@ also use these config values:
A boolean flag indicating whether to document classes and functions imported
in modules.
- .. versionadded:: 2.1
+ .. version-added:: 2.1
- .. versionchanged:: 4.4
+ .. version-changed:: 4.4
If ``autosummary_ignore_module_all`` is ``False``, this configuration
value is ignored for members listed in ``__all__``.
@@ -266,7 +266,7 @@ also use these config values:
``autosummary_ignore_module_all`` to False and
``autosummary_imported_members`` to True.
- .. versionadded:: 4.4
+ .. version-added:: 4.4
.. confval:: autosummary_filename_map
:type: :code-py:`dict[str, str]`
@@ -277,14 +277,14 @@ also use these config values:
indistinguishable when case is ignored, on file systems where filenames
are case-insensitive.
- .. versionadded:: 3.2
+ .. version-added:: 3.2
.. _autosummary-customizing-templates:
Customizing templates
---------------------
-.. versionadded:: 1.0
+.. version-added:: 1.0
You can customize the stub page templates, in a similar way as the HTML Jinja
templates, see :ref:`templating`. (:class:`~sphinx.application.TemplateBridge`
@@ -351,7 +351,7 @@ The following variables are available in the templates:
List containing names of all inherited members of class. Only available for
classes.
- .. versionadded:: 1.8.0
+ .. version-added:: 1.8.0
.. data:: functions
@@ -379,7 +379,7 @@ The following variables are available in the templates:
List containing names of "public" attributes in the class/module. Only
available for classes and modules.
- .. versionchanged:: 3.1
+ .. version-changed:: 3.1
Attributes of modules are supported.
@@ -388,7 +388,7 @@ The following variables are available in the templates:
List containing names of "public" modules in the package. Only available for
modules that are packages and the ``recursive`` option is on.
- .. versionadded:: 3.1
+ .. version-added:: 3.1
Additionally, the following filters are available
diff --git a/doc/usage/extensions/coverage.rst b/doc/usage/extensions/coverage.rst
index d872181d6b5..55222c8a528 100644
--- a/doc/usage/extensions/coverage.rst
+++ b/doc/usage/extensions/coverage.rst
@@ -66,7 +66,7 @@ what the builder should check:
or the :rst:dir:`automodule` directive provided by the
:mod:`~sphinx.ext.autodoc` extension.
- .. versionadded:: 7.4
+ .. version-added:: 7.4
.. confval:: coverage_ignore_modules
coverage_ignore_functions
@@ -83,7 +83,7 @@ what the builder should check:
.. _Python regular expressions: https://docs.python.org/library/re
- .. versionadded:: 2.1
+ .. version-added:: 2.1
.. confval:: coverage_c_path
:type: :code-py:`Sequence[str]`
@@ -103,7 +103,7 @@ what the builder should check:
Set to ``False`` to not write headlines.
- .. versionadded:: 1.1
+ .. version-added:: 1.1
.. confval:: coverage_skip_undoc_in_source
:type: :code-py:`bool`
@@ -111,7 +111,7 @@ what the builder should check:
Skip objects that are not documented in the source with a docstring.
- .. versionadded:: 1.1
+ .. version-added:: 1.1
.. confval:: coverage_show_missing_items
:type: :code-py:`bool`
@@ -119,7 +119,7 @@ what the builder should check:
Print objects that are missing to standard output also.
- .. versionadded:: 3.1
+ .. version-added:: 3.1
.. confval:: coverage_statistics_to_report
:type: :code-py:`bool`
@@ -139,7 +139,7 @@ what the builder should check:
| package.bar_module | 83.33% | 1 |
+-----------------------+----------+--------------+
- .. versionadded:: 7.2
+ .. version-added:: 7.2
.. confval:: coverage_statistics_to_stdout
:type: :code-py:`bool`
@@ -159,4 +159,4 @@ what the builder should check:
| package.bar_module | 83.33% | 1 |
+-----------------------+----------+--------------+
- .. versionadded:: 7.2
+ .. version-added:: 7.2
diff --git a/doc/usage/extensions/doctest.rst b/doc/usage/extensions/doctest.rst
index 10e8f67dfe2..927310e59df 100644
--- a/doc/usage/extensions/doctest.rst
+++ b/doc/usage/extensions/doctest.rst
@@ -68,7 +68,7 @@ a comma-separated list of group names.
A cleanup code block. This code is not shown in the output for other
builders, but executed after the doctests of the group(s) it belongs to.
- .. versionadded:: 1.1
+ .. version-added:: 1.1
.. rubric:: Options
@@ -133,9 +133,9 @@ a comma-separated list of group names.
``pyversion`` option is followed :pep:`PEP-440: Version Specifiers
<440#version-specifiers>`.
- .. versionadded:: 1.6
+ .. version-added:: 1.6
- .. versionchanged:: 1.7
+ .. version-changed:: 1.7
Supported PEP-440 operands and notations
@@ -369,7 +369,7 @@ The doctest extension uses the following configuration values:
given -- the default behavior of accepting this substitution is a relic of
pre-Python 2.2 times.
- .. versionadded:: 1.5
+ .. version-added:: 1.5
.. confval:: doctest_show_successes
:type: :code-py:`bool`
@@ -380,7 +380,7 @@ The doctest extension uses the following configuration values:
For a project with many doctests,
it may be useful to set this to ``False`` to only highlight failures.
- .. versionadded:: 7.2
+ .. version-added:: 7.2
.. confval:: doctest_path
:type: :code-py:`Sequence[str]`
@@ -397,7 +397,7 @@ The doctest extension uses the following configuration values:
*every* file that is tested, and for every group. You can use this to
e.g. import modules you will always need in your doctests.
- .. versionadded:: 0.6
+ .. version-added:: 0.6
.. confval:: doctest_global_cleanup
:type: :code-py:`str`
@@ -407,7 +407,7 @@ The doctest extension uses the following configuration values:
for *every* file that is tested, and for every group. You can use this to
e.g. remove any temporary files that the tests leave behind.
- .. versionadded:: 1.1
+ .. version-added:: 1.1
.. confval:: doctest_test_doctest_blocks
:type: :code-py:`str`
@@ -459,4 +459,4 @@ The doctest extension uses the following configuration values:
Exit when the first failure is encountered.
- .. versionadded:: 8.3
+ .. version-added:: 8.3
diff --git a/doc/usage/extensions/duration.rst b/doc/usage/extensions/duration.rst
index 1213811daf0..c498e0f32fb 100644
--- a/doc/usage/extensions/duration.rst
+++ b/doc/usage/extensions/duration.rst
@@ -4,7 +4,7 @@
.. module:: sphinx.ext.duration
:synopsis: Measure durations of Sphinx processing
-.. versionadded:: 2.4
+.. version-added:: 2.4
This extension measures durations of Sphinx processing and show its
result at end of the build. It is useful for inspecting what document
diff --git a/doc/usage/extensions/extlinks.rst b/doc/usage/extensions/extlinks.rst
index 4b5fe153e62..fa1f5453127 100644
--- a/doc/usage/extensions/extlinks.rst
+++ b/doc/usage/extensions/extlinks.rst
@@ -5,7 +5,7 @@
:synopsis: Allow inserting external links with common base URLs easily.
.. moduleauthor:: Georg Brandl
-.. versionadded:: 1.0
+.. version-added:: 1.0
.. role:: code-py(code)
:language: Python
@@ -56,7 +56,7 @@ The extension adds a config value:
that generate links, i.e. ``:issue:`this issue <123>```. In this case, the
*caption* is not relevant.
- .. versionchanged:: 4.0
+ .. version-changed:: 4.0
Support to substitute by '%s' in the caption.
@@ -72,4 +72,4 @@ The extension adds a config value:
If enabled, extlinks emits a warning if a hardcoded link is replaceable
by an extlink, and suggests a replacement via warning.
- .. versionadded:: 4.5
+ .. version-added:: 4.5
diff --git a/doc/usage/extensions/githubpages.rst b/doc/usage/extensions/githubpages.rst
index 6d56a303699..3d64498c644 100644
--- a/doc/usage/extensions/githubpages.rst
+++ b/doc/usage/extensions/githubpages.rst
@@ -4,9 +4,9 @@
.. module:: sphinx.ext.githubpages
:synopsis: Publish HTML docs in GitHub Pages
-.. versionadded:: 1.4
+.. version-added:: 1.4
-.. versionchanged:: 2.0
+.. version-changed:: 2.0
Support ``CNAME`` file
This extension creates ``.nojekyll`` file on generated HTML directory to publish
diff --git a/doc/usage/extensions/graphviz.rst b/doc/usage/extensions/graphviz.rst
index 5ac2df06e10..13c302a3197 100644
--- a/doc/usage/extensions/graphviz.rst
+++ b/doc/usage/extensions/graphviz.rst
@@ -6,7 +6,7 @@
.. module:: sphinx.ext.graphviz
:synopsis: Support for Graphviz graphs.
-.. versionadded:: 0.6
+.. version-added:: 0.6
.. role:: code-py(code)
:language: Python
@@ -39,7 +39,7 @@ It adds these directives:
As for all file references in Sphinx, if the filename is absolute, it is
taken as relative to the source directory.
- .. versionchanged:: 1.1
+ .. version-changed:: 1.1
Added support for external files.
.. rubric:: options
@@ -50,21 +50,21 @@ It adds these directives:
The alternate text of the graph. By default, the graph code is used to
the alternate text.
- .. versionadded:: 1.0
+ .. version-added:: 1.0
.. rst:directive:option:: align: alignment of the graph
:type: left, center or right
The horizontal alignment of the graph.
- .. versionadded:: 1.5
+ .. version-added:: 1.5
.. rst:directive:option:: caption: caption of the graph
:type: text
The caption of the graph.
- .. versionadded:: 1.1
+ .. version-added:: 1.1
.. rst:directive:option:: layout: layout type of the graph
:type: text
@@ -73,8 +73,8 @@ It adds these directives:
graphviz commands are also allowed. By default, :confval:`graphviz_dot`
is used.
- .. versionadded:: 1.4
- .. versionchanged:: 2.2
+ .. version-added:: 1.4
+ .. version-changed:: 2.2
Renamed from ``graphviz_dot``
@@ -83,14 +83,14 @@ It adds these directives:
The label of the graph.
- .. versionadded:: 1.6
+ .. version-added:: 1.6
.. rst:directive:option:: class: class names
:type: a list of class names separated by spaces
The class name of the graph.
- .. versionadded:: 2.4
+ .. version-added:: 2.4
.. rst:directive:: graph
@@ -116,37 +116,37 @@ It adds these directives:
.. rst:directive:option:: alt: alternate text
:type: text
- .. versionadded:: 1.0
+ .. version-added:: 1.0
.. rst:directive:option:: align: alignment of the graph
:type: left, center or right
- .. versionadded:: 1.5
+ .. version-added:: 1.5
.. rst:directive:option:: caption: caption of the graph
:type: text
- .. versionadded:: 1.1
+ .. version-added:: 1.1
.. rst:directive:option:: layout: layout type of the graph
:type: text
- .. versionadded:: 1.4
- .. versionchanged:: 2.2
+ .. version-added:: 1.4
+ .. version-changed:: 2.2
Renamed from ``graphviz_dot``
.. rst:directive:option:: name: label
:type: text
- .. versionadded:: 1.6
+ .. version-added:: 1.6
.. rst:directive:option:: class: class names
:type: a list of class names separated by spaces
The class name of the graph.
- .. versionadded:: 2.4
+ .. version-added:: 2.4
.. rst:directive:: digraph
@@ -168,37 +168,37 @@ It adds these directives:
.. rst:directive:option:: alt: alternate text
:type: text
- .. versionadded:: 1.0
+ .. version-added:: 1.0
.. rst:directive:option:: align: alignment of the graph
:type: left, center or right
- .. versionadded:: 1.5
+ .. version-added:: 1.5
.. rst:directive:option:: caption: caption of the graph
:type: text
- .. versionadded:: 1.1
+ .. version-added:: 1.1
.. rst:directive:option:: layout: layout type of the graph
:type: text
- .. versionadded:: 1.4
- .. versionchanged:: 2.2
+ .. version-added:: 1.4
+ .. version-changed:: 2.2
Renamed from ``graphviz_dot``
.. rst:directive:option:: name: label
:type: text
- .. versionadded:: 1.6
+ .. version-added:: 1.6
.. rst:directive:option:: class: class names
:type: a list of class names separated by spaces
The class name of the graph.
- .. versionadded:: 2.4
+ .. version-added:: 2.4
There are also these config values:
@@ -244,5 +244,5 @@ There are also these config values:
a -> b;
}
- .. versionadded:: 1.0
+ .. version-added:: 1.0
Previously, output always was PNG.
diff --git a/doc/usage/extensions/imgconverter.rst b/doc/usage/extensions/imgconverter.rst
index 6bdd4e0ca69..5e2eda04566 100644
--- a/doc/usage/extensions/imgconverter.rst
+++ b/doc/usage/extensions/imgconverter.rst
@@ -6,7 +6,7 @@
.. module:: sphinx.ext.imgconverter
:synopsis: Convert images to appropriate format for builders
-.. versionadded:: 1.6
+.. version-added:: 1.6
.. role:: code-py(code)
:language: Python
@@ -40,7 +40,7 @@ Configuration
A path to a conversion command. By default, the imgconverter finds
the command from search paths.
- .. versionchanged:: 3.1
+ .. version-changed:: 3.1
Use :command:`magick` command by default on windows
@@ -50,6 +50,6 @@ Configuration
Additional command-line arguments to give to :command:`convert`, as a list.
- .. versionchanged:: 3.1
+ .. version-changed:: 3.1
Use ``['convert']`` by default on Windows
diff --git a/doc/usage/extensions/inheritance.rst b/doc/usage/extensions/inheritance.rst
index ed977f86564..f4568034ab1 100644
--- a/doc/usage/extensions/inheritance.rst
+++ b/doc/usage/extensions/inheritance.rst
@@ -6,7 +6,7 @@
.. module:: sphinx.ext.inheritance_diagram
:synopsis: Support for displaying inheritance diagrams via graphviz.
-.. versionadded:: 0.6
+.. version-added:: 0.6
.. role:: code-py(code)
:language: Python
@@ -33,7 +33,7 @@ It adds this directive:
only display class names, without the names of the modules that contain
them.
- .. versionchanged:: 2.0
+ .. version-changed:: 2.0
The value of for ``parts`` can also be negative, indicating how many
parts to drop from the left. For example, if all your class names start
with ``lib.``, you can give ``:parts: -1`` to remove that prefix from the
@@ -44,11 +44,11 @@ It adds this directive:
You can use ``caption`` option to give a caption to the diagram.
- .. versionchanged:: 1.1
+ .. version-changed:: 1.1
Added ``private-bases`` option; previously, all bases were always
included.
- .. versionchanged:: 1.5
+ .. version-changed:: 1.5
Added ``caption`` option
It also supports a ``top-classes`` option which requires one or more class
@@ -97,13 +97,13 @@ It adds this directive:
.. inheritance-diagram:: dummy.test.D dummy.test.E dummy.test.F
:top-classes: dummy.test.B, dummy.test.C
- .. versionchanged:: 1.7
+ .. version-changed:: 1.7
Added ``top-classes`` option to limit the scope of inheritance graphs.
.. rst:directive:option:: include-subclasses
:type: no value
- .. versionadded:: 8.2
+ .. version-added:: 8.2
If given, any subclass of the classes will be added to the diagram too.
diff --git a/doc/usage/extensions/intersphinx.rst b/doc/usage/extensions/intersphinx.rst
index 91de6274f36..efad06dfebe 100644
--- a/doc/usage/extensions/intersphinx.rst
+++ b/doc/usage/extensions/intersphinx.rst
@@ -8,7 +8,7 @@
.. index:: pair: automatic; linking
-.. versionadded:: 0.5
+.. version-added:: 0.5
.. role:: code-py(code)
:language: Python
@@ -72,7 +72,7 @@ linking:
**Format**
- .. versionadded:: 1.0
+ .. version-added:: 1.0
A dictionary mapping unique identifiers to a tuple ``(target, inventory)``.
Each ``target`` is the base URI of a foreign Sphinx documentation set and can
@@ -111,7 +111,7 @@ linking:
**Multiple targets for the inventory**
- .. versionadded:: 1.3
+ .. version-added:: 1.3
Alternative files can be specified for each inventory. One can give a
tuple for the second inventory tuple item as shown in the following
@@ -183,9 +183,9 @@ linking:
:type: :code-py:`Sequence[str]`
:default: :code-py:`['std:doc']`
- .. versionadded:: 4.3
+ .. version-added:: 4.3
- .. versionchanged:: 5.0
+ .. version-changed:: 5.0
Changed default value from an empty list to ``['std:doc']``.
@@ -219,7 +219,7 @@ The Intersphinx extension provides the following role.
.. rst:role:: external
- .. versionadded:: 4.4
+ .. version-added:: 4.4
Use Intersphinx to perform lookup only in external projects, and not the
current project. Intersphinx still needs to know the type of object you
diff --git a/doc/usage/extensions/linkcode.rst b/doc/usage/extensions/linkcode.rst
index fb05464a5e9..2c4401d3a30 100644
--- a/doc/usage/extensions/linkcode.rst
+++ b/doc/usage/extensions/linkcode.rst
@@ -5,7 +5,7 @@
:synopsis: Add external links to source code.
.. moduleauthor:: Pauli Virtanen
-.. versionadded:: 1.2
+.. version-added:: 1.2
.. role:: code-py(code)
:language: Python
diff --git a/doc/usage/extensions/math.rst b/doc/usage/extensions/math.rst
index 6fa8ab851f8..e4b8d78144f 100644
--- a/doc/usage/extensions/math.rst
+++ b/doc/usage/extensions/math.rst
@@ -8,8 +8,8 @@ Math support for HTML outputs in Sphinx
.. module:: sphinx.ext.mathbase
:synopsis: Common math support for imgmath and mathjax / jsmath.
-.. versionadded:: 0.5
-.. versionchanged:: 1.8
+.. version-added:: 0.5
+.. version-changed:: 1.8
Math support for non-HTML builders is integrated to sphinx-core.
So mathbase extension is no longer needed.
@@ -27,7 +27,7 @@ reStructuredText math :rst:dir:`directive
\n"""
+ """
THIS IS THE SECOND PARAGRAPH OF VERSION-DEPRECATED.
Changed in version 1.0: """
- """THIS IS THE FIRST PARAGRAPH OF VERSIONCHANGED.
\n"""
+ """THIS IS THE FIRST PARAGRAPH OF VERSION-CHANGED.\n"""
)
matched_content = get_content(result, 'versionchanged')
assert matched_content == expect3
expect4 = (
"""
Removed in version 1.0: """
- """THIS IS THE FIRST PARAGRAPH OF VERSIONREMOVED.
\n"""
+ """THIS IS THE FIRST PARAGRAPH OF VERSION-REMOVED.\n"""
)
matched_content = get_content(result, 'versionremoved')
assert matched_content == expect4