Skip to content

Commit

Permalink
Merge pull request #94 from LabSid-USP/93-update-sphinx-documentation…
Browse files Browse the repository at this point in the history
…-settings-and-packages

Update Sphinx documentation settings and packages
  • Loading branch information
soaressgabriel committed Oct 3, 2022
2 parents ebdb870 + 0ac63b1 commit 018dffd
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 6 deletions.
10 changes: 5 additions & 5 deletions doc/requirements.txt
@@ -1,5 +1,5 @@
Sphinx==4.2.0
sphinx-rtd-theme==1.0.0
sphinxcontrib-email==0.3.5
sphinxcontrib-youtube==1.0.1
sphinx-autodoc-typehints==1.12.0
Sphinx
sphinx-rtd-theme
sphinxcontrib-email
sphinxcontrib-youtube
sphinx-autodoc-typehints
23 changes: 22 additions & 1 deletion doc/source/conf.py
Expand Up @@ -105,7 +105,28 @@
# Remove namespaces from class/method signatures
add_module_names = False

mathjax_path = "https://cdn.jsdelivr.net/npm/mathjax@2/MathJax.js?config=TeX-AMS-MML_HTMLorMML"
# mathjax_path = "https://cdn.jsdelivr.net/npm/mathjax@2/MathJax.js?config=TeX-AMS-MML_HTMLorMML"

mathjax3_config = "<script>\
window.MathJax = {\
options: {\
ignoreHtmlClass: 'tex2jax_ignore',\
processHtmlClass: 'tex2jax_process'\
},\
tex: {\
autoload: {\
color: [],\
colorv2: ['color']\
},\
packages: {'[+]': ['noerrors']},\
tags: 'ams'\
},\
loader: {\
load: ['[tex]/noerrors']\
}\
};\
</script>\
<script src=\"https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js\" id=\"MathJax-script\"></script>"

# Add any paths that contain templates here, relative to this directory.
templates_path = ["_templates"]
Expand Down

0 comments on commit 018dffd

Please sign in to comment.