Skip to content

Commit 3b6894b

Browse files
committed
Add soft-deprecated to site-packages
Fixes #155095 make -C Doc changes File "/home/cbot/.local/lib/python3.14/site-packages/sphinx/builders/changes.py", line 61, in write_documents ttext = self.typemap[changeset.type] ~~~~~~~~~~~~^^^^^^^^^^^^^^^^ KeyError: 'soft-deprecated'
1 parent 3a09a22 commit 3b6894b

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

Doc/conf.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -606,3 +606,14 @@
606606
'<meta property="og:image:width" content="200">',
607607
'<meta property="og:image:height" content="200">',
608608
)
609+
610+
def setup(app):
611+
try:
612+
import sphinx.builders.changes
613+
# We are reaching into the installed library and forcing the
614+
# missing key into the class-level typemap.
615+
if hasattr(sphinx.builders.changes, 'ChangesBuilder'):
616+
if hasattr(sphinx.builders.changes.ChangesBuilder, 'typemap'):
617+
sphinx.builders.changes.ChangesBuilder.typemap['soft-deprecated'] = 'soft-deprecated'
618+
except ImportError:
619+
pass

0 commit comments

Comments
 (0)