mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Merge pull request #10523 from AA-Turner/fix-double-brackets
Fix double brackets
This commit is contained in:
commit
60775ec4c4
24
CHANGES
24
CHANGES
@ -13,11 +13,16 @@ Deprecated
|
|||||||
Features added
|
Features added
|
||||||
--------------
|
--------------
|
||||||
|
|
||||||
|
* #10523: HTML Theme: Expose the Docutils's version info tuple as a template
|
||||||
|
variable, ``docutils_version_info``. Patch by Adam Turner.
|
||||||
|
|
||||||
Bugs fixed
|
Bugs fixed
|
||||||
----------
|
----------
|
||||||
|
|
||||||
* #10509: autosummary: autosummary fails with a shared library
|
* #10509: autosummary: autosummary fails with a shared library
|
||||||
* #10497: py domain: Failed to resolve strings in Literal
|
* #10497: py domain: Failed to resolve strings in Literal. Patch by Adam Turner.
|
||||||
|
* #10523: HTML Theme: Fix double brackets on citation references in Docutils 0.18+.
|
||||||
|
Patch by Adam Turner.
|
||||||
|
|
||||||
Testing
|
Testing
|
||||||
--------
|
--------
|
||||||
@ -29,10 +34,11 @@ Bugs fixed
|
|||||||
----------
|
----------
|
||||||
|
|
||||||
* #10498: gettext: TypeError is raised when sorting warning messages if a node
|
* #10498: gettext: TypeError is raised when sorting warning messages if a node
|
||||||
has no line number
|
has no line number. Patch by Adam Turner.
|
||||||
* #10493: html theme: :rst:dir:`topic` directive is rendered incorrectly with
|
* #10493: HTML Theme: :rst:dir:`topic` directive is rendered incorrectly with
|
||||||
docutils-0.18
|
Docutils 0.18. Patch by Adam Turner.
|
||||||
* #10495: IndexError is raised for a :rst:role:`kbd` role having a separator
|
* #10495: IndexError is raised for a :rst:role:`kbd` role having a separator.
|
||||||
|
Patch by Adam Turner.
|
||||||
|
|
||||||
Release 5.0.0 (released May 30, 2022)
|
Release 5.0.0 (released May 30, 2022)
|
||||||
=====================================
|
=====================================
|
||||||
@ -73,6 +79,7 @@ Incompatible changes
|
|||||||
|
|
||||||
* #10474: :confval:`language` does not accept ``None`` as it value. The default
|
* #10474: :confval:`language` does not accept ``None`` as it value. The default
|
||||||
value of ``language`` becomes to ``'en'`` now.
|
value of ``language`` becomes to ``'en'`` now.
|
||||||
|
Patch by Adam Turner and Takeshi KOMIYA.
|
||||||
|
|
||||||
Deprecated
|
Deprecated
|
||||||
----------
|
----------
|
||||||
@ -128,11 +135,12 @@ Features added
|
|||||||
non-imported
|
non-imported
|
||||||
* #10028: Removed internal usages of JavaScript frameworks (jQuery and
|
* #10028: Removed internal usages of JavaScript frameworks (jQuery and
|
||||||
underscore.js) and modernised ``doctools.js`` and ``searchtools.js`` to
|
underscore.js) and modernised ``doctools.js`` and ``searchtools.js`` to
|
||||||
EMCAScript 2018.
|
EMCAScript 2018. Patch by Adam Turner.
|
||||||
* #10302: C++, add support for conditional expressions (``?:``).
|
* #10302: C++, add support for conditional expressions (``?:``).
|
||||||
* #5157, #10251: Inline code is able to be highlighted via :rst:dir:`role`
|
* #5157, #10251: Inline code is able to be highlighted via :rst:dir:`role`
|
||||||
directive
|
directive
|
||||||
* #10337: Make sphinx-build faster by caching Publisher object during build
|
* #10337: Make sphinx-build faster by caching Publisher object during build.
|
||||||
|
Patch by Adam Turner.
|
||||||
|
|
||||||
Bugs fixed
|
Bugs fixed
|
||||||
----------
|
----------
|
||||||
@ -140,7 +148,7 @@ Bugs fixed
|
|||||||
5.0.0 b1
|
5.0.0 b1
|
||||||
|
|
||||||
* #10200: apidoc: Duplicated submodules are shown for modules having both .pyx
|
* #10200: apidoc: Duplicated submodules are shown for modules having both .pyx
|
||||||
and .so files
|
and .so files. Patch by Adam Turner and Takeshi KOMIYA.
|
||||||
* #10279: autodoc: Default values for keyword only arguments in overloaded
|
* #10279: autodoc: Default values for keyword only arguments in overloaded
|
||||||
functions are rendered as a string literal
|
functions are rendered as a string literal
|
||||||
* #10280: autodoc: :confval:`autodoc_docstring_signature` unexpectedly generates
|
* #10280: autodoc: :confval:`autodoc_docstring_signature` unexpectedly generates
|
||||||
|
@ -383,6 +383,15 @@ in the future.
|
|||||||
|
|
||||||
.. versionadded:: 4.2
|
.. versionadded:: 4.2
|
||||||
|
|
||||||
|
.. data:: docutils_version_info
|
||||||
|
|
||||||
|
The version of Docutils used to build represented as a tuple of five elements.
|
||||||
|
For Docutils version 0.16.1 beta 2 this would be `(0, 16, 1, 'beta', 2)``.
|
||||||
|
The fourth element can be one of: ``alpha``, ``beta``, ``candidate``, ``final``.
|
||||||
|
``final`` always has 0 as the last element.
|
||||||
|
|
||||||
|
.. versionadded:: 5.0.2
|
||||||
|
|
||||||
.. data:: style
|
.. data:: style
|
||||||
|
|
||||||
The name of the main stylesheet, as given by the theme or
|
The name of the main stylesheet, as given by the theme or
|
||||||
|
@ -536,6 +536,7 @@ class StandaloneHTMLBuilder(Builder):
|
|||||||
'css_files': self.css_files,
|
'css_files': self.css_files,
|
||||||
'sphinx_version': __display_version__,
|
'sphinx_version': __display_version__,
|
||||||
'sphinx_version_tuple': sphinx_version,
|
'sphinx_version_tuple': sphinx_version,
|
||||||
|
'docutils_version_info': docutils.__version_info__[:5],
|
||||||
'style': self._get_style_filename(),
|
'style': self._get_style_filename(),
|
||||||
'rellinks': rellinks,
|
'rellinks': rellinks,
|
||||||
'builder': self.name,
|
'builder': self.name,
|
||||||
|
@ -237,6 +237,7 @@ a.headerlink {
|
|||||||
visibility: hidden;
|
visibility: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
{%- if docutils_version_info[:2] < (0, 18) %}
|
||||||
a.brackets:before,
|
a.brackets:before,
|
||||||
span.brackets > a:before{
|
span.brackets > a:before{
|
||||||
content: "[";
|
content: "[";
|
||||||
@ -246,6 +247,7 @@ a.brackets:after,
|
|||||||
span.brackets > a:after {
|
span.brackets > a:after {
|
||||||
content: "]";
|
content: "]";
|
||||||
}
|
}
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
h1:hover > a.headerlink,
|
h1:hover > a.headerlink,
|
||||||
h2:hover > a.headerlink,
|
h2:hover > a.headerlink,
|
||||||
|
Loading…
Reference in New Issue
Block a user