From 3a0232807a769e43b3a85ce23b939d15cda477d9 Mon Sep 17 00:00:00 2001 From: Adam Turner <9087854+AA-Turner@users.noreply.github.com> Date: Thu, 2 Jun 2022 19:10:11 +0100 Subject: [PATCH 1/3] Fix ~Literal references --- sphinx/domains/python.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sphinx/domains/python.py b/sphinx/domains/python.py index a634a51d2b2..fd43b15b262 100644 --- a/sphinx/domains/python.py +++ b/sphinx/domains/python.py @@ -396,7 +396,7 @@ def make_xrefs(self, rolename: str, domain: str, target: str, results.append(self.make_xref(rolename, domain, sub_target, innernode, contnode, env, inliner, location)) - if sub_target in ('Literal', 'typing.Literal'): + if sub_target in ('Literal', 'typing.Literal', '~typing.Literal'): in_literal = True return results From fbd374859ab79de65e7db78377e9824c4352bff1 Mon Sep 17 00:00:00 2001 From: Adam Turner <9087854+AA-Turner@users.noreply.github.com> Date: Sat, 4 Jun 2022 17:09:44 +0100 Subject: [PATCH 2/3] Add `aside.topic` for Docutils 0.18+ (sphinx13) --- doc/_themes/sphinx13/static/sphinx13.css | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/_themes/sphinx13/static/sphinx13.css b/doc/_themes/sphinx13/static/sphinx13.css index c8fb2e5c99b..789a5d4f312 100644 --- a/doc/_themes/sphinx13/static/sphinx13.css +++ b/doc/_themes/sphinx13/static/sphinx13.css @@ -372,7 +372,8 @@ div.quotebar { margin-left: 1em; } -div.topic { +div.topic, +aside.topic { background-color: #f8f8f8; } From 0926edeb40f1bfb977582619a6a70daa61e589c6 Mon Sep 17 00:00:00 2001 From: Takeshi KOMIYA Date: Mon, 6 Jun 2022 23:14:27 +0900 Subject: [PATCH 3/3] Update CHANGES for PR #10511 --- CHANGES | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGES b/CHANGES index ca68c54703c..1b3dec4c32b 100644 --- a/CHANGES +++ b/CHANGES @@ -17,6 +17,7 @@ Bugs fixed ---------- * #10509: autosummary: autosummary fails with a shared library +* #10497: py domain: Failed to resolve strings in Literal Testing --------