From a2d441633d5aafed4e94bbc544183cf866213f3a Mon Sep 17 00:00:00 2001 From: mmcky <mmcky@users.noreply.github.com> Date: Wed, 1 Jun 2022 10:36:21 +1000 Subject: [PATCH] MAINT: Remove support for sphinx3 (#1693) * MAINT: Remove support for sphinx3 * remove sphinx3 from test runs, update main tasks to python==3.9 * upgrade python==3.9 * change timeout to 120s for cells * [sphinx<=3] removed code support sphinx version < 3 Co-authored-by: Chris Holdgraf <choldgraf@berkeley.edu> --- .github/workflows/pdf.yml | 4 +- .github/workflows/tests.yml | 14 +-- docs/_config.yml | 2 +- docs/contribute/intro.md | 2 +- jupyter_book/pdf.py | 30 ++---- pyproject.toml | 6 +- .../test_mathjax_config_warning.sphinx3.yml | 89 ----------------- ...ax_config_warning_mathjax2path.sphinx3.yml | 91 ------------------ ...epth_multitoc_numbering_false.sphinx3.html | 46 --------- ...bset_multitoc_numbering_false.sphinx3.html | 65 ------------- ...ered_multitoc_numbering_false.sphinx3.html | 46 --------- ...arts_multitoc_numbering_false.sphinx3.html | 58 ----------- ...bset_multitoc_numbering_false.sphinx3.html | 65 ------------- .../test_toc_parts_directive.sphinx3.html | 21 ---- .../test_toc_parts_sidebar.sphinx3.html | 96 ------------------- tox.ini | 3 +- 16 files changed, 22 insertions(+), 616 deletions(-) delete mode 100644 tests/test_config/test_mathjax_config_warning.sphinx3.yml delete mode 100644 tests/test_config/test_mathjax_config_warning_mathjax2path.sphinx3.yml delete mode 100644 tests/test_sphinx_multitoc_numbering/_toc_numbered_depth_multitoc_numbering_false.sphinx3.html delete mode 100644 tests/test_sphinx_multitoc_numbering/_toc_numbered_depth_parts_subset_multitoc_numbering_false.sphinx3.html delete mode 100644 tests/test_sphinx_multitoc_numbering/_toc_numbered_multitoc_numbering_false.sphinx3.html delete mode 100644 tests/test_sphinx_multitoc_numbering/_toc_numbered_parts_multitoc_numbering_false.sphinx3.html delete mode 100644 tests/test_sphinx_multitoc_numbering/_toc_numbered_parts_subset_multitoc_numbering_false.sphinx3.html delete mode 100644 tests/test_tocdirective/test_toc_parts_directive.sphinx3.html delete mode 100644 tests/test_tocdirective/test_toc_parts_sidebar.sphinx3.html diff --git a/.github/workflows/pdf.yml b/.github/workflows/pdf.yml index 1e559ef3..dff04703 100644 --- a/.github/workflows/pdf.yml +++ b/.github/workflows/pdf.yml @@ -14,7 +14,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: [3.8] + python-version: [3.9] steps: - uses: actions/checkout@v3 @@ -48,7 +48,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: [3.8] + python-version: [3.9] steps: - uses: actions/checkout@v3 diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 8714ec19..dd18720f 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -18,10 +18,10 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - - name: Set up Python 3.8 + - name: Set up Python 3.9 uses: actions/setup-python@v3 with: - python-version: 3.8 + python-version: 3.9 - uses: pre-commit/action@v2.0.3 # for speed, we run a test matrix against only the tests that do not require TeX, @@ -32,7 +32,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: [3.8] + python-version: [3.9] steps: - uses: actions/checkout@v3 @@ -75,7 +75,7 @@ jobs: if: github.repository == 'executablebooks/jupyter-book' uses: codecov/codecov-action@v3.1.0 with: - name: ebp-jupyter-book-pytests-py3.8 + name: ebp-jupyter-book-pytests-py3.9 flags: pytests file: ./coverage.xml fail_ci_if_error: true @@ -86,7 +86,7 @@ jobs: strategy: matrix: python-version: ["3.7", "3.8", "3.9"] - sphinx: [">=3,<4", ">=4,<5"] + sphinx: [">=4,<5"] steps: - uses: actions/checkout@v3 @@ -119,10 +119,10 @@ jobs: steps: - name: Checkout source uses: actions/checkout@v3 - - name: Set up Python 3.8 + - name: Set up Python 3.9 uses: actions/setup-python@v3 with: - python-version: 3.8 + python-version: 3.9 - name: Install flit run: | pip install flit~=3.6 diff --git a/docs/_config.yml b/docs/_config.yml index 9c5c62cd..4a8667a7 100644 --- a/docs/_config.yml +++ b/docs/_config.yml @@ -65,7 +65,7 @@ sphinx: - fmt: Rmd bibtex_reference_style: author_year # or label, super, \supercite execution_show_tb: True - execution_timeout: 60 + execution_timeout: 120 # TODO: #917 this path will be the default in sphinx v4 # mathjax_path: https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js # However, it is incompatible with the mathjax config below for macros diff --git a/docs/contribute/intro.md b/docs/contribute/intro.md index 60a4c791..9fd1991a 100644 --- a/docs/contribute/intro.md +++ b/docs/contribute/intro.md @@ -81,7 +81,7 @@ You may run all the tests, or only ones that do not require additional installat You can alternatively use [tox](https://tox.readthedocs.io) to run the tests in multiple isolated environments, and also without the need for the initial dependencies install (see the `tox.ini` file for available test environments and further explanation): ```shell ->> tox -e py38-sphinx3 -- -m 'not requires_chrome and not requires_tex' +>> tox -e py39-sphinx4 -- -m 'not requires_chrome and not requires_tex' ``` Either will run the Jupyter Book test suite, *except for the PDF tests*. diff --git a/jupyter_book/pdf.py b/jupyter_book/pdf.py index 0e9116af..e57cdebc 100644 --- a/jupyter_book/pdf.py +++ b/jupyter_book/pdf.py @@ -4,31 +4,17 @@ import os from copy import copy from pathlib import Path -import sphinx - from .utils import _error, _message_box # LaTeX Documents Tuple Spec -if sphinx.__version__ >= "3.0.0": - # https://www.sphinx-doc.org/en/3.x/usage/configuration.html#confval-latex_documents - LATEX_DOCUMENTS = ( - "startdocname", - "targetname", - "title", - "author", - "theme", - "toctree_only", - ) -else: - # https://www.sphinx-doc.org/en/2.0/usage/configuration.html#confval-latex_documents - LATEX_DOCUMENTS = ( - "startdocname", - "targetname", - "title", - "author", - "documentclass", - "toctree_only", - ) +LATEX_DOCUMENTS = ( + "startdocname", + "targetname", + "title", + "author", + "theme", + "toctree_only", +) def html_to_pdf(html_file, pdf_file): diff --git a/pyproject.toml b/pyproject.toml index 21ed8de1..f0fc024e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -30,14 +30,12 @@ requires-python = ">=3.7" dependencies = [ "click>=7.1,<9", "docutils>=0.15,<0.18", - # TODO: Remove when we drop Sphinx 3 support. Jinja 3.1 breaks Sphinx 3 builds. - # ref: https://github.com/executablebooks/jupyter-book/issues/1676 - "Jinja2<3.1", + "Jinja2", "jsonschema<4", "linkify-it-py~=1.0.1", "myst-nb~=0.13.1", "pyyaml", - "sphinx>=3,<5", + "sphinx>=4,<5", "sphinx-comments", "sphinx-copybutton", "sphinx-external-toc~=0.2.3", diff --git a/tests/test_config/test_mathjax_config_warning.sphinx3.yml b/tests/test_config/test_mathjax_config_warning.sphinx3.yml deleted file mode 100644 index a593313b..00000000 --- a/tests/test_config/test_mathjax_config_warning.sphinx3.yml +++ /dev/null @@ -1,89 +0,0 @@ -_user_config: - sphinx: - config: - mathjax_config: - TeX: - Macros: - argmax: arg\,max -final: - author: The Jupyter Book community - comments_config: - hypothesis: false - utterances: false - copyright: '2022' - exclude_patterns: - - '**.ipynb_checkpoints' - - .DS_Store - - Thumbs.db - - _build - execution_allow_errors: false - execution_excludepatterns: [] - execution_in_temp: false - execution_timeout: 30 - extensions: - - sphinx_togglebutton - - sphinx_copybutton - - myst_nb - - jupyter_book - - sphinx_thebe - - sphinx_comments - - sphinx_external_toc - - sphinx.ext.intersphinx - - sphinx_design - - sphinx_book_theme - - sphinx_jupyterbook_latex - external_toc_exclude_missing: false - html_baseurl: '' - html_favicon: '' - html_logo: '' - html_sourcelink_suffix: '' - html_theme: sphinx_book_theme - html_theme_options: - announcement: '' - extra_footer: '' - extra_navbar: Powered by <a href="https://jupyterbook.org">Jupyter Book</a> - google_analytics_id: '' - home_page_in_toc: true - launch_buttons: - binderhub_url: https://mybinder.org - colab_url: '' - jupyterhub_url: '' - notebook_interface: classic - thebe: false - path_to_docs: '' - repository_branch: master - repository_url: https://github.com/executablebooks/jupyter-book - search_bar_text: Search this book... - use_edit_page_button: false - use_issues_button: false - use_repository_button: false - html_title: My Jupyter Book - jupyter_cache: '' - jupyter_execute_notebooks: auto - language: null - latex_engine: pdflatex - mathjax_config: - TeX: - Macros: - argmax: arg\,max - myst_enable_extensions: - - colon_fence - - dollarmath - - linkify - - substitution - - tasklist - myst_url_schemes: - - mailto - - http - - https - nb_output_stderr: show - numfig: true - pygments_style: sphinx - suppress_warnings: - - myst.domains - use_jupyterbook_latex: true - use_multitoc_numbering: true -metadata: - latex_doc_overrides: - title: My Jupyter Book - latex_individualpages: false diff --git a/tests/test_config/test_mathjax_config_warning_mathjax2path.sphinx3.yml b/tests/test_config/test_mathjax_config_warning_mathjax2path.sphinx3.yml deleted file mode 100644 index d2ceaf0e..00000000 --- a/tests/test_config/test_mathjax_config_warning_mathjax2path.sphinx3.yml +++ /dev/null @@ -1,91 +0,0 @@ -_user_config: - sphinx: - config: - mathjax_config: - TeX: - Macros: - argmax: arg\,max - mathjax_path: https://cdn.jsdelivr.net/npm/mathjax@2/MathJax.js?config=TeX-AMS-MML_CHTML -final: - author: The Jupyter Book community - comments_config: - hypothesis: false - utterances: false - copyright: '2022' - exclude_patterns: - - '**.ipynb_checkpoints' - - .DS_Store - - Thumbs.db - - _build - execution_allow_errors: false - execution_excludepatterns: [] - execution_in_temp: false - execution_timeout: 30 - extensions: - - sphinx_togglebutton - - sphinx_copybutton - - myst_nb - - jupyter_book - - sphinx_thebe - - sphinx_comments - - sphinx_external_toc - - sphinx.ext.intersphinx - - sphinx_design - - sphinx_book_theme - - sphinx_jupyterbook_latex - external_toc_exclude_missing: false - html_baseurl: '' - html_favicon: '' - html_logo: '' - html_sourcelink_suffix: '' - html_theme: sphinx_book_theme - html_theme_options: - announcement: '' - extra_footer: '' - extra_navbar: Powered by <a href="https://jupyterbook.org">Jupyter Book</a> - google_analytics_id: '' - home_page_in_toc: true - launch_buttons: - binderhub_url: https://mybinder.org - colab_url: '' - jupyterhub_url: '' - notebook_interface: classic - thebe: false - path_to_docs: '' - repository_branch: master - repository_url: https://github.com/executablebooks/jupyter-book - search_bar_text: Search this book... - use_edit_page_button: false - use_issues_button: false - use_repository_button: false - html_title: My Jupyter Book - jupyter_cache: '' - jupyter_execute_notebooks: auto - language: null - latex_engine: pdflatex - mathjax_config: - TeX: - Macros: - argmax: arg\,max - mathjax_path: https://cdn.jsdelivr.net/npm/mathjax@2/MathJax.js?config=TeX-AMS-MML_CHTML - myst_enable_extensions: - - colon_fence - - dollarmath - - linkify - - substitution - - tasklist - myst_url_schemes: - - mailto - - http - - https - nb_output_stderr: show - numfig: true - pygments_style: sphinx - suppress_warnings: - - myst.domains - use_jupyterbook_latex: true - use_multitoc_numbering: true -metadata: - latex_doc_overrides: - title: My Jupyter Book - latex_individualpages: false diff --git a/tests/test_sphinx_multitoc_numbering/_toc_numbered_depth_multitoc_numbering_false.sphinx3.html b/tests/test_sphinx_multitoc_numbering/_toc_numbered_depth_multitoc_numbering_false.sphinx3.html deleted file mode 100644 index 7c7f8f56..00000000 --- a/tests/test_sphinx_multitoc_numbering/_toc_numbered_depth_multitoc_numbering_false.sphinx3.html +++ /dev/null @@ -1,46 +0,0 @@ -<nav aria-label="Main" class="bd-links" id="bd-docs-nav"> - <div class="bd-toc-item active"> - <ul class="nav bd-sidenav bd-sidenav__home-link"> - <li class="toctree-l1 current active"> - <a class="reference internal" href="#"> - Main index - </a> - </li> - </ul> - <ul class="nav bd-sidenav"> - <li class="toctree-l1"> - <a class="reference internal" href="content1.html"> - 1. Content1 - </a> - </li> - <li class="toctree-l1 has-children"> - <a class="reference internal" href="subfolder/index.html"> - 2. Subfolder - </a> - <input class="toctree-checkbox" id="toctree-checkbox-1" name="toctree-checkbox-1" type="checkbox"> - <label for="toctree-checkbox-1"> - <i class="fas fa-chevron-down"> - </i> - </label> - <ul> - <li class="toctree-l2"> - <a class="reference internal" href="subfolder/asubpage.html"> - Asubpage - </a> - </li> - </ul> - </input> - </li> - <li class="toctree-l1"> - <a class="reference internal" href="content2.html"> - 3. Content2 - </a> - </li> - <li class="toctree-l1"> - <a class="reference internal" href="content3.html"> - 4. Content3 - </a> - </li> - </ul> - </div> -</nav> diff --git a/tests/test_sphinx_multitoc_numbering/_toc_numbered_depth_parts_subset_multitoc_numbering_false.sphinx3.html b/tests/test_sphinx_multitoc_numbering/_toc_numbered_depth_parts_subset_multitoc_numbering_false.sphinx3.html deleted file mode 100644 index 28000991..00000000 --- a/tests/test_sphinx_multitoc_numbering/_toc_numbered_depth_parts_subset_multitoc_numbering_false.sphinx3.html +++ /dev/null @@ -1,65 +0,0 @@ -<nav aria-label="Main" class="bd-links" id="bd-docs-nav"> - <div class="bd-toc-item active"> - <ul class="nav bd-sidenav bd-sidenav__home-link"> - <li class="toctree-l1 current active"> - <a class="reference internal" href="#"> - Main index - </a> - </li> - </ul> - <p class="caption"> - <span class="caption-text"> - Chapter 1 - </span> - </p> - <ul class="nav bd-sidenav"> - <li class="toctree-l1"> - <a class="reference internal" href="content1.html"> - 1. Content1 - </a> - </li> - </ul> - <p class="caption"> - <span class="caption-text"> - Chapter 2 - </span> - </p> - <ul class="nav bd-sidenav"> - <li class="toctree-l1"> - <a class="reference internal" href="content2.html"> - Content2 - </a> - </li> - <li class="toctree-l1"> - <a class="reference internal" href="content3.html"> - Content3 - </a> - </li> - </ul> - <p class="caption"> - <span class="caption-text"> - Chapter 3 - </span> - </p> - <ul class="nav bd-sidenav"> - <li class="toctree-l1 has-children"> - <a class="reference internal" href="subfolder/index.html"> - 1. Subfolder - </a> - <input class="toctree-checkbox" id="toctree-checkbox-1" name="toctree-checkbox-1" type="checkbox"> - <label for="toctree-checkbox-1"> - <i class="fas fa-chevron-down"> - </i> - </label> - <ul> - <li class="toctree-l2"> - <a class="reference internal" href="subfolder/asubpage.html"> - Asubpage - </a> - </li> - </ul> - </input> - </li> - </ul> - </div> -</nav> diff --git a/tests/test_sphinx_multitoc_numbering/_toc_numbered_multitoc_numbering_false.sphinx3.html b/tests/test_sphinx_multitoc_numbering/_toc_numbered_multitoc_numbering_false.sphinx3.html deleted file mode 100644 index 3f2a4c25..00000000 --- a/tests/test_sphinx_multitoc_numbering/_toc_numbered_multitoc_numbering_false.sphinx3.html +++ /dev/null @@ -1,46 +0,0 @@ -<nav aria-label="Main" class="bd-links" id="bd-docs-nav"> - <div class="bd-toc-item active"> - <ul class="nav bd-sidenav bd-sidenav__home-link"> - <li class="toctree-l1 current active"> - <a class="reference internal" href="#"> - Main index - </a> - </li> - </ul> - <ul class="nav bd-sidenav"> - <li class="toctree-l1"> - <a class="reference internal" href="content1.html"> - 1. Content1 - </a> - </li> - <li class="toctree-l1 has-children"> - <a class="reference internal" href="subfolder/index.html"> - 2. Subfolder - </a> - <input class="toctree-checkbox" id="toctree-checkbox-1" name="toctree-checkbox-1" type="checkbox"> - <label for="toctree-checkbox-1"> - <i class="fas fa-chevron-down"> - </i> - </label> - <ul> - <li class="toctree-l2"> - <a class="reference internal" href="subfolder/asubpage.html"> - 2.1. Asubpage - </a> - </li> - </ul> - </input> - </li> - <li class="toctree-l1"> - <a class="reference internal" href="content2.html"> - 3. Content2 - </a> - </li> - <li class="toctree-l1"> - <a class="reference internal" href="content3.html"> - 4. Content3 - </a> - </li> - </ul> - </div> -</nav> diff --git a/tests/test_sphinx_multitoc_numbering/_toc_numbered_parts_multitoc_numbering_false.sphinx3.html b/tests/test_sphinx_multitoc_numbering/_toc_numbered_parts_multitoc_numbering_false.sphinx3.html deleted file mode 100644 index 07f00309..00000000 --- a/tests/test_sphinx_multitoc_numbering/_toc_numbered_parts_multitoc_numbering_false.sphinx3.html +++ /dev/null @@ -1,58 +0,0 @@ -<nav aria-label="Main" class="bd-links" id="bd-docs-nav"> - <div class="bd-toc-item active"> - <ul class="nav bd-sidenav bd-sidenav__home-link"> - <li class="toctree-l1 current active"> - <a class="reference internal" href="#"> - Main index - </a> - </li> - </ul> - <p class="caption"> - <span class="caption-text"> - Chapter 1 - </span> - </p> - <ul class="nav bd-sidenav"> - <li class="toctree-l1"> - <a class="reference internal" href="content1.html"> - 1. Content1 - </a> - </li> - <li class="toctree-l1 has-children"> - <a class="reference internal" href="subfolder/index.html"> - 2. Subfolder - </a> - <input class="toctree-checkbox" id="toctree-checkbox-1" name="toctree-checkbox-1" type="checkbox"> - <label for="toctree-checkbox-1"> - <i class="fas fa-chevron-down"> - </i> - </label> - <ul> - <li class="toctree-l2"> - <a class="reference internal" href="subfolder/asubpage.html"> - 2.1. Asubpage - </a> - </li> - </ul> - </input> - </li> - </ul> - <p class="caption"> - <span class="caption-text"> - Chapter 2 - </span> - </p> - <ul class="nav bd-sidenav"> - <li class="toctree-l1"> - <a class="reference internal" href="content2.html"> - 1. Content2 - </a> - </li> - <li class="toctree-l1"> - <a class="reference internal" href="content3.html"> - 2. Content3 - </a> - </li> - </ul> - </div> -</nav> diff --git a/tests/test_sphinx_multitoc_numbering/_toc_numbered_parts_subset_multitoc_numbering_false.sphinx3.html b/tests/test_sphinx_multitoc_numbering/_toc_numbered_parts_subset_multitoc_numbering_false.sphinx3.html deleted file mode 100644 index d3564c28..00000000 --- a/tests/test_sphinx_multitoc_numbering/_toc_numbered_parts_subset_multitoc_numbering_false.sphinx3.html +++ /dev/null @@ -1,65 +0,0 @@ -<nav aria-label="Main" class="bd-links" id="bd-docs-nav"> - <div class="bd-toc-item active"> - <ul class="nav bd-sidenav bd-sidenav__home-link"> - <li class="toctree-l1 current active"> - <a class="reference internal" href="#"> - Main index - </a> - </li> - </ul> - <p class="caption"> - <span class="caption-text"> - Chapter 1 - </span> - </p> - <ul class="nav bd-sidenav"> - <li class="toctree-l1"> - <a class="reference internal" href="content1.html"> - 1. Content1 - </a> - </li> - </ul> - <p class="caption"> - <span class="caption-text"> - Chapter 2 - </span> - </p> - <ul class="nav bd-sidenav"> - <li class="toctree-l1"> - <a class="reference internal" href="content2.html"> - Content2 - </a> - </li> - <li class="toctree-l1"> - <a class="reference internal" href="content3.html"> - Content3 - </a> - </li> - </ul> - <p class="caption"> - <span class="caption-text"> - Chapter 3 - </span> - </p> - <ul class="nav bd-sidenav"> - <li class="toctree-l1 has-children"> - <a class="reference internal" href="subfolder/index.html"> - 1. Subfolder - </a> - <input class="toctree-checkbox" id="toctree-checkbox-1" name="toctree-checkbox-1" type="checkbox"> - <label for="toctree-checkbox-1"> - <i class="fas fa-chevron-down"> - </i> - </label> - <ul> - <li class="toctree-l2"> - <a class="reference internal" href="subfolder/asubpage.html"> - 1.1. Asubpage - </a> - </li> - </ul> - </input> - </li> - </ul> - </div> -</nav> diff --git a/tests/test_tocdirective/test_toc_parts_directive.sphinx3.html b/tests/test_tocdirective/test_toc_parts_directive.sphinx3.html deleted file mode 100644 index 02b0f32d..00000000 --- a/tests/test_tocdirective/test_toc_parts_directive.sphinx3.html +++ /dev/null @@ -1,21 +0,0 @@ -<div class="toctree-wrapper compound"> - <p class="caption"> - <span class="caption-text"> - A section - </span> - </p> - <ul> - <li class="toctree-l1"> - <a class="reference internal" href="subfolder/index.html"> - Subfolder - </a> - <ul> - <li class="toctree-l2"> - <a class="reference internal" href="subfolder/asubpage1.html"> - Asubpage 1 - </a> - </li> - </ul> - </li> - </ul> -</div> diff --git a/tests/test_tocdirective/test_toc_parts_sidebar.sphinx3.html b/tests/test_tocdirective/test_toc_parts_sidebar.sphinx3.html deleted file mode 100644 index 6877fe6c..00000000 --- a/tests/test_tocdirective/test_toc_parts_sidebar.sphinx3.html +++ /dev/null @@ -1,96 +0,0 @@ -<nav aria-label="Main" class="bd-links" id="bd-docs-nav"> - <div class="bd-toc-item active"> - <ul class="nav bd-sidenav bd-sidenav__home-link"> - <li class="toctree-l1 current active"> - <a class="reference internal" href="#"> - Main index - </a> - </li> - </ul> - <p class="caption"> - <span class="caption-text"> - A section - </span> - </p> - <ul class="nav bd-sidenav"> - <li class="toctree-l1 has-children"> - <a class="reference internal" href="subfolder/index.html"> - Subfolder - </a> - <input class="toctree-checkbox" id="toctree-checkbox-1" name="toctree-checkbox-1" type="checkbox"> - <label for="toctree-checkbox-1"> - <i class="fas fa-chevron-down"> - </i> - </label> - <ul> - <li class="toctree-l2"> - <a class="reference internal" href="subfolder/asubpage1.html"> - Asubpage 1 - </a> - </li> - </ul> - </input> - </li> - </ul> - <p class="caption"> - <span class="caption-text"> - Another section - </span> - </p> - <ul class="nav bd-sidenav"> - <li class="toctree-l1 has-children"> - <a class="reference internal" href="content1.html"> - Content1 - </a> - <input class="toctree-checkbox" id="toctree-checkbox-2" name="toctree-checkbox-2" type="checkbox"> - <label for="toctree-checkbox-2"> - <i class="fas fa-chevron-down"> - </i> - </label> - <ul> - <li class="toctree-l2"> - <a class="reference internal" href="subfolder/asubpage2.html"> - Asubpage 2 - </a> - </li> - </ul> - </input> - </li> - <li class="toctree-l1 has-children"> - <a class="reference internal" href="content2.html"> - Content2 - </a> - <input class="toctree-checkbox" id="toctree-checkbox-3" name="toctree-checkbox-3" type="checkbox"> - <label for="toctree-checkbox-3"> - <i class="fas fa-chevron-down"> - </i> - </label> - <ul> - <li class="toctree-l2"> - <a class="reference internal" href="subfolder/asubpage3.html"> - Asubpage 3 - </a> - </li> - </ul> - </input> - </li> - <li class="toctree-l1 has-children"> - <a class="reference internal" href="content3.html"> - Content3 - </a> - <input class="toctree-checkbox" id="toctree-checkbox-4" name="toctree-checkbox-4" type="checkbox"/> - <label for="toctree-checkbox-4"> - <i class="fas fa-chevron-down"> - </i> - </label> - <ul> - <li class="toctree-l2"> - <a class="reference internal" href="subfolder/asubpage4.html"> - Asubpage 4 - </a> - </li> - </ul> - </li> - </ul> - </div> -</nav> \ No newline at end of file diff --git a/tox.ini b/tox.ini index 6ff9cac5..7a6447eb 100644 --- a/tox.ini +++ b/tox.ini @@ -17,10 +17,9 @@ envlist = py39-sphinx4 usedevelop = true passenv=TERM -[testenv:py{37,38,39}-sphinx{3,4}] +[testenv:py{37,38,39}-sphinx{4}] extras = testing deps = - sphinx3: sphinx>=3,<4 sphinx4: sphinx>=4,<5 commands = pytest {posargs} -- GitLab