diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index cc1a9c3339..4a5527ca29 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -52,7 +52,7 @@ jobs: - run: pip install bikeshed && bikeshed update - run: pip install six - run: sudo apt-get update -y && sudo apt-get install -y latexmk texlive-latex-recommended texlive-latex-extra texlive-fonts-recommended - - run: pip install sphinx==3.5.4 + - run: pip install sphinx==4.0.0 - run: cd document/core && make all - uses: actions/upload-artifact@v2 with: diff --git a/document/README.md b/document/README.md index 6ee838af0c..caf75430de 100644 --- a/document/README.md +++ b/document/README.md @@ -42,7 +42,7 @@ pipenv shell Install Python dependencies: ``` -pipenv install Sphinx==3.5.4 +pipenv install Sphinx==4.0.0 ``` ### Checking out the repository diff --git a/document/core/conf.py b/document/core/conf.py index 2bae571959..a012f33bcb 100644 --- a/document/core/conf.py +++ b/document/core/conf.py @@ -492,8 +492,9 @@ .. include:: /""" + pwd + """/util/macros.def """ -# https://www.sphinx-doc.org/en/master/usage/extensions/math.html#confval-mathjax_config -# http://docs.mathjax.org/en/v2.7-latest/options/input-processors/TeX.html -mathjax_config = { - 'TeX': { 'MAXBUFFER': 30*1024 }, +# https://www.sphinx-doc.org/en/master/usage/extensions/math.html#confval-mathjax3_config +# https://docs.mathjax.org/en/latest/web/configuration.html#configuration +# https://docs.mathjax.org/en/latest/options/input/tex.html#tex-maxbuffer +mathjax3_config = { + 'tex': { 'maxBuffer': 30*1024 }, } diff --git a/document/core/util/bikeshed/conf.py b/document/core/util/bikeshed/conf.py index 31273d2a30..af725bd7e6 100644 --- a/document/core/util/bikeshed/conf.py +++ b/document/core/util/bikeshed/conf.py @@ -38,4 +38,4 @@ assert(main_macros_def in rst_prolog) rst_prolog = rst_prolog.replace(main_macros_def, "/" + pwd + "/util/macros.def") -del mathjax_config +del mathjax3_config