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 bf84d2b commit 3fc8de1Copy full SHA for 3fc8de1
hoverxref/extension.py
@@ -128,10 +128,8 @@ def setup_translators(app):
128
app.set_translator(app.builder.name, translator, override=True)
129
else:
130
for name, klass in app.registry.translators.items():
131
- # Read the Docs use ``readthedocs`` as the name of the build, so we
132
- # need to replace this as well
133
- if name not in ['html', 'readthedocs', 'readthedocsdirhtml']:
134
- # Skip translator that are not HTML
+ if app.builder.format != 'html':
+ # Skip translators that are not HTML
135
continue
136
137
translator = types.new_class(
0 commit comments