mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2025-12-22 00:00:56 +03:00
We recently lifted upper bound for docutils in sphinx in commit
749fcacb0fa6 ("dev-python/sphinx: allow newer docutils"). However, this
change broke documentation build in dev-db/mydumper (bug 963628),
because sphinx-inline-tabs fails over the removed backrefs key (see
docutils commit [1]).
The issue is fixed with the patch taken from sphinx-inline-tabs
upstream, which makes backrefs key optional. The change is backward
compatible with docutils-0.21.2.
Link: https://sourceforge.net/p/docutils/code/9684 [1]
Upstream-PR: https://github.com/pradyunsg/sphinx-inline-tabs/pull/51
Closes: https://bugs.gentoo.org/963628
Signed-off-by: Petr Vaněk <arkamar@gentoo.org>
23 lines
815 B
Diff
23 lines
815 B
Diff
From 4c7ee22af241e0511350948217dfd29ee1b12b7b Mon Sep 17 00:00:00 2001
|
|
From: Chris Mayo <aklhfex@gmail.com>
|
|
Date: Tue, 30 Sep 2025 19:31:25 +0100
|
|
Subject: [PATCH] Docutils 0.22 compatibility
|
|
|
|
backrefs attribute no longer used.
|
|
|
|
Upstream-PR: https://github.com/pradyunsg/sphinx-inline-tabs/pull/51
|
|
|
|
diff --git a/src/sphinx_inline_tabs/_impl.py b/src/sphinx_inline_tabs/_impl.py
|
|
index 48e9537..f23ca28 100644
|
|
--- a/src/sphinx_inline_tabs/_impl.py
|
|
+++ b/src/sphinx_inline_tabs/_impl.py
|
|
@@ -23,7 +23,7 @@ def visit(translator, node):
|
|
attributes.pop("classes")
|
|
attributes.pop("names")
|
|
attributes.pop("dupnames")
|
|
- attributes.pop("backrefs")
|
|
+ attributes.pop("backrefs", None)
|
|
|
|
if node._endtag:
|
|
text = translator.starttag(node, node._tagname, **attributes)
|