diff --git a/src/sphinx_tudelft_theme/__init__.py b/src/sphinx_tudelft_theme/__init__.py index a54ad0e..863d8bb 100644 --- a/src/sphinx_tudelft_theme/__init__.py +++ b/src/sphinx_tudelft_theme/__init__.py @@ -64,35 +64,35 @@ def set_favicon(app,conf): else: print('Using user-defined favicon') -def set_mtext(app,conf): - if conf.tud_change_mtext: - print('Changing mtext font to inherited from html') - old = app.config - if 'mathjax3_config' in old: - old_mj = old.mathjax3_config - if 'chtml' in old_mj: - old.mathjax3_config['chtml'] = old.mathjax3_config['chtml'] | {'mtextInheritFont': True} - else: - old.mathjax3_config['chtml'] = {'mtextInheritFont': True} - else: - old['mathjax3_config'] = {'chtml': {'mtextInheritFont': True}} +# def set_mtext(app,conf): +# if conf.tud_change_mtext: +# print('Changing mtext font to inherited from html') +# old = app.config +# if 'mathjax3_config' in old: +# old_mj = old.mathjax3_config +# if 'chtml' in old_mj: +# old.mathjax3_config['chtml'] = old.mathjax3_config['chtml'] | {'mtextInheritFont': True} +# else: +# old.mathjax3_config['chtml'] = {'mtextInheritFont': True} +# else: +# old['mathjax3_config'] = {'chtml': {'mtextInheritFont': True}} - app.config = old - else: - print('Using default/user defined mtext font') +# app.config = old +# else: +# print('Using default/user defined mtext font') def setup(app: Sphinx): app.setup_extension('sphinx_favicon') app.add_config_value('tud_change_logo', True, 'env') app.add_config_value('tud_change_favicon', True, 'env') - app.add_config_value('tud_change_mtext', True, 'env') + # app.add_config_value('tud_change_mtext', True, 'env') app.add_css_file('tudelft_style.css') app.connect('build-finished', copy_stylesheet) app.connect('build-finished', copy_logos) app.connect('build-finished', copy_favicon) app.connect('config-inited',set_logo) app.connect('config-inited',set_favicon) - app.connect('config-inited',set_mtext) + # app.connect('config-inited',set_mtext) return { "version": __version__, "parallel_read_safe": True,