Skip to content

Commit 8e574c4

Browse files
committed
#179: properly set rebuild parameter for pngmath config values.
1 parent a50329b commit 8e574c4

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

sphinx/ext/pngmath.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -234,10 +234,10 @@ def html_visit_displaymath(self, node):
234234

235235
def setup(app):
236236
mathbase_setup(app, (html_visit_math, None), (html_visit_displaymath, None))
237-
app.add_config_value('pngmath_dvipng', 'dvipng', False)
238-
app.add_config_value('pngmath_latex', 'latex', False)
239-
app.add_config_value('pngmath_use_preview', False, False)
240-
app.add_config_value('pngmath_dvipng_args', ['-gamma 1.5', '-D 110'], False)
241-
app.add_config_value('pngmath_latex_args', [], False)
242-
app.add_config_value('pngmath_latex_preamble', '', False)
237+
app.add_config_value('pngmath_dvipng', 'dvipng', False, 'html')
238+
app.add_config_value('pngmath_latex', 'latex', False, 'html')
239+
app.add_config_value('pngmath_use_preview', False, 'html')
240+
app.add_config_value('pngmath_dvipng_args', ['-gamma 1.5', '-D 110'], 'html')
241+
app.add_config_value('pngmath_latex_args', [], 'html')
242+
app.add_config_value('pngmath_latex_preamble', '', 'html')
243243
app.connect('build-finished', cleanup_tempdir)

0 commit comments

Comments
 (0)