From f3dbad0b6e8290863bb7ffbf5573bc58379e9d97 Mon Sep 17 00:00:00 2001 From: "Kevin J. Sung" Date: Tue, 2 Jan 2024 16:19:48 -0500 Subject: [PATCH] switch docs from mathjax to katex (#1301) Updates the sphinx documentation build to use KaTeX instead of MathJax because the final docs build uses KaTeX. The same change was made in Qiskit in https://github.com/Qiskit/qiskit/pull/11435. --- docs/conf.py | 2 +- requirements-dev.txt | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/conf.py b/docs/conf.py index 963ae80be..72f2f7815 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -33,11 +33,11 @@ 'sphinx.ext.napoleon', 'sphinx.ext.autodoc', 'sphinx.ext.autosummary', - 'sphinx.ext.mathjax', 'jupyter_sphinx', 'sphinx_autodoc_typehints', 'reno.sphinxext', 'nbsphinx', + 'sphinxcontrib.katex', ] templates_path = ['_templates'] diff --git a/requirements-dev.txt b/requirements-dev.txt index e7779c798..61ee53c7e 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -23,3 +23,4 @@ sphinx-automodapi sphinx-autodoc-typehints<=1.19.2 jupyter-sphinx reno>=2.11.0 +sphinxcontrib-katex==0.9.9 \ No newline at end of file