From 25851e76d204603c219b631e0d72cac16af3e027 Mon Sep 17 00:00:00 2001 From: Ray Speth Date: Tue, 8 Aug 2023 17:31:37 -0400 Subject: [PATCH] [Doc] Use MathJax instead of KaTeX --- .github/workflows/main.yml | 2 +- doc/sphinx/_static/custom.css | 7 ------- doc/sphinx/conf.py | 1 - 3 files changed, 1 insertion(+), 9 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 78e32ff2fd..ba7559278c 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -326,7 +326,7 @@ jobs: - name: Install Python dependencies run: | python3 -m pip install ruamel.yaml scons numpy cython sphinx==5.1.1 \ - sphinxcontrib-katex sphinxcontrib-matlabdomain sphinxcontrib-doxylink pint \ + sphinxcontrib-matlabdomain sphinxcontrib-doxylink pint \ pydata-sphinx-theme==0.13.3 - name: Build Cantera with documentation run: python3 `which scons` build -j2 doxygen_docs=y sphinx_docs=y debug=n optimize=n use_pch=n diff --git a/doc/sphinx/_static/custom.css b/doc/sphinx/_static/custom.css index 4178fd5084..18d81f5b40 100644 --- a/doc/sphinx/_static/custom.css +++ b/doc/sphinx/_static/custom.css @@ -1,10 +1,3 @@ -div.math { - /* Fix equations to be centered instead of right aligned */ - padding-right: unset; - flex-direction: unset; - justify-content: center; -} - p + div.math { /* Remove post-paragraph space ahead of equation to center vertically */ margin-top: -1.15em; diff --git a/doc/sphinx/conf.py b/doc/sphinx/conf.py index 8257f2181c..cbfc606da1 100644 --- a/doc/sphinx/conf.py +++ b/doc/sphinx/conf.py @@ -40,7 +40,6 @@ 'sphinx.ext.todo', 'sphinx.ext.autosummary', 'sphinxcontrib.doxylink', - 'sphinxcontrib.katex', # Use KaTeX because it's faster and the main site uses it 'sphinx.ext.intersphinx', ]