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.
2 parents 322369b + af56be3 commit b686e54Copy full SHA for b686e54
flang/docs/conf.py
@@ -50,6 +50,17 @@
50
51
# Setup AutoStructify for inline .rst toctrees in index.md
52
from recommonmark.transform import AutoStructify
53
+
54
+ # Stolen from https://github.com/readthedocs/recommonmark/issues/93
55
+ # Monkey patch to fix recommonmark 0.4 doc reference issues.
56
+ from recommonmark.states import DummyStateMachine
57
+ orig_run_role = DummyStateMachine.run_role
58
+ def run_role(self, name, options=None, content=None):
59
+ if name == 'doc':
60
+ name = 'any'
61
+ return orig_run_role(self, name, options, content)
62
+ DummyStateMachine.run_role = run_role
63
64
def setup(app):
65
# Disable inline math to avoid
66
# https://github.com/readthedocs/recommonmark/issues/120 in Extensions.md
0 commit comments