Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cac2e8a commit ce7fc52Copy full SHA for ce7fc52
Doc/conf.py
@@ -249,3 +249,18 @@
249
# bpo-40204: Disable warnings on Sphinx 2 syntax of the C domain since the
250
# documentation is built with -W (warnings treated as errors).
251
c_warn_on_allowed_pre_v3 = False
252
+
253
+# Fix '!' not working with C domain when pre_v3 is enabled
254
+import sphinx
255
256
+if sphinx.version_info[:2] < (5, 3):
257
+ from sphinx.domains.c import CXRefRole
258
259
+ original_run = CXRefRole.run
260
261
+ def new_run(self):
262
+ if self.disabled:
263
+ return super(CXRefRole, self).run()
264
+ return original_run(self)
265
266
+ CXRefRole.run = new_run
0 commit comments