Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitedda9dd

Browse files
gh-97740: Fix bang in Sphinx C domain ref target syntax
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
1 parentcac2e8a commitedda9dd

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

‎Doc/conf.py‎

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,3 +249,18 @@
249249
# bpo-40204: Disable warnings on Sphinx 2 syntax of the C domain since the
250250
# documentation is built with -W (warnings treated as errors).
251251
c_warn_on_allowed_pre_v3=False
252+
253+
# Fix '!' not working with C domain when pre_v3 is enabled
254+
importsphinx
255+
256+
ifsphinx.version_info[:2]< (5,3):
257+
fromsphinx.domains.cimportCXRefRole
258+
259+
original_run=CXRefRole.run
260+
261+
defnew_run(self):
262+
ifself.disabled:
263+
returnsuper(CXRefRole,self).run()
264+
returnoriginal_run(self)
265+
266+
CXRefRole.run=new_run

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp