Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/sphinx-doc/sphinx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Turner <9087854+AA-Turner@users.noreply.github.com>2022-06-04 20:08:10 +0300
committerAdam Turner <9087854+AA-Turner@users.noreply.github.com>2022-06-04 20:08:33 +0300
commitbbf1576277f2544327a9252f448a873fd60bc171 (patch)
tree76928076d41b82d5cd50a5b7012dc06aae65f850
parent7286291f9326bc023441d64eba9b26b09c2e37f1 (diff)
Fix double brackets on Docutils 0.18+
-rw-r--r--CHANGES1
-rw-r--r--sphinx/themes/basic/static/basic.css_t2
2 files changed, 3 insertions, 0 deletions
diff --git a/CHANGES b/CHANGES
index 59fe2480f..09ae5f901 100644
--- a/CHANGES
+++ b/CHANGES
@@ -20,6 +20,7 @@ Bugs fixed
----------
* #10509: autosummary: autosummary fails with a shared library
+* #10523: html theme: Fix double brackets on citation references in Docutils 0.18+.
Testing
--------
diff --git a/sphinx/themes/basic/static/basic.css_t b/sphinx/themes/basic/static/basic.css_t
index 9e5047afe..67bfec755 100644
--- a/sphinx/themes/basic/static/basic.css_t
+++ b/sphinx/themes/basic/static/basic.css_t
@@ -237,6 +237,7 @@ a.headerlink {
visibility: hidden;
}
+{%- if docutils_version_info[:2] < (0, 18) %}
a.brackets:before,
span.brackets > a:before{
content: "[";
@@ -246,6 +247,7 @@ a.brackets:after,
span.brackets > a:after {
content: "]";
}
+{% endif %}
h1:hover > a.headerlink,
h2:hover > a.headerlink,