From f3c867a034f1eccb437cdca40c73e0190440bfa4 Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Mon, 5 Apr 2021 11:59:43 +0200 Subject: [PATCH] docs: fix MathJax inclusion in build Else it does not gets picked up on release builds... Also the mathjax path option affects HTML not EPUB so move it to the correct section in conf.py Signed-off-by: Thomas Lamprecht --- docs/conf.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index cfa4158d..2570822a 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -49,7 +49,7 @@ PygmentsBridge.latex_formatter = CustomLatexFormatter # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom # ones. -extensions = ["sphinx.ext.graphviz", "sphinx.ext.todo", "proxmox-scanrefs"] +extensions = ["sphinx.ext.graphviz", 'sphinx.ext.mathjax', "sphinx.ext.todo", "proxmox-scanrefs"] todo_link_only = True @@ -307,6 +307,9 @@ html_show_sourcelink = False # Output file base name for HTML help builder. htmlhelp_basename = 'ProxmoxBackupdoc' +# use local mathjax package, symlink comes from debian/proxmox-backup-docs.links +mathjax_path = "mathjax/MathJax.js?config=TeX-AMS-MML_HTMLorMML" + # -- Options for LaTeX output --------------------------------------------- latex_engine = 'xelatex' @@ -464,6 +467,3 @@ epub_exclude_files = ['search.html'] # If false, no index is generated. # # epub_use_index = True - -# use local mathjax package, symlink comes from debian/proxmox-backup-docs.links -mathjax_path = "mathjax/MathJax.js?config=TeX-AMS-MML_HTMLorMML"