diff options
author | Adam Turner <9087854+AA-Turner@users.noreply.github.com> | 2022-06-04 20:08:10 +0300 |
---|---|---|
committer | Adam Turner <9087854+AA-Turner@users.noreply.github.com> | 2022-06-04 20:08:33 +0300 |
commit | bbf1576277f2544327a9252f448a873fd60bc171 (patch) | |
tree | 76928076d41b82d5cd50a5b7012dc06aae65f850 | |
parent | 7286291f9326bc023441d64eba9b26b09c2e37f1 (diff) |
Fix double brackets on Docutils 0.18+
-rw-r--r-- | CHANGES | 1 | ||||
-rw-r--r-- | sphinx/themes/basic/static/basic.css_t | 2 |
2 files changed, 3 insertions, 0 deletions
@@ -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, |