Skip to content
Snippets Groups Projects
Unverified Commit e4c001b7 authored by Om Sahoo's avatar Om Sahoo Committed by GitHub
Browse files

FIX: Enable maths in singlehtml mode (#1774)

* Enable maths in singlehtml mode

Setting the html_assets_policy flag  to always installs mathjax in singlehtml builder. This also helps in maths rendering for pdfhtml builder.

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci



Co-authored-by: default avatarpre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
parent 4f0944f6
No related branches found
No related tags found
No related merge requests found
...@@ -140,6 +140,10 @@ def build_sphinx( ...@@ -140,6 +140,10 @@ def build_sphinx(
) )
app.config.latex_documents = new_latex_documents app.config.latex_documents = new_latex_documents
# set the below flag to always to enable maths in singlehtml builder
if app.builder.name == "singlehtml":
app.set_html_assets_policy("always")
# setting up sphinx-multitoc-numbering # setting up sphinx-multitoc-numbering
if app.config["use_multitoc_numbering"]: if app.config["use_multitoc_numbering"]:
# if sphinx-external-toc is used # if sphinx-external-toc is used
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment