From fe1f14c09d7d0cc789348f86aa380dff60f527e4 Mon Sep 17 00:00:00 2001 From: Remco de Boer <29308176+redeboer@users.noreply.github.com> Date: Fri, 10 Nov 2023 13:25:32 +0100 Subject: [PATCH 1/3] MAINT: remove `sphinx-external-toc` --- docs/conf.py | 3 --- docs/index.md | 7 +++++-- pyproject.toml | 1 - 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index 442852c..92adcad 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -32,11 +32,8 @@ def get_execution_mode() -> str: "sphinx_copybutton", "sphinx_design", "sphinx_exercise", - "sphinx_external_toc", "sphinx_togglebutton", ] -external_toc_exclude_missing = True -external_toc_path = "_toc.yml" html_favicon = "_static/favicon.ico" html_js_files = [ "https://cdnjs.cloudflare.com/ajax/libs/require.js/2.3.4/require.min.js" diff --git a/docs/index.md b/docs/index.md index 0a9f8c5..11a3094 100644 --- a/docs/index.md +++ b/docs/index.md @@ -3,5 +3,8 @@ ## Table of contents -:::{tableofcontents} -::: +```{toctree} +:glob: +:maxdepth: 2 +lecture* +``` diff --git a/pyproject.toml b/pyproject.toml index 54e962b..745efcb 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -48,7 +48,6 @@ doc = [ "sphinx-copybutton", "sphinx-design", "sphinx-exercise", - "sphinx-external-toc", "sphinx-togglebutton", ] format = [ From 851d919eacb5f906dbfbcfef16754357b3f76873 Mon Sep 17 00:00:00 2001 From: Remco de Boer <29308176+redeboer@users.noreply.github.com> Date: Fri, 10 Nov 2023 13:33:34 +0100 Subject: [PATCH 2/3] FIX: limit to Sphinx v5 --- pyproject.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/pyproject.toml b/pyproject.toml index 745efcb..41527d8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -49,6 +49,7 @@ doc = [ "sphinx-design", "sphinx-exercise", "sphinx-togglebutton", + "sphinx<6", # https://github.com/ComPWA/strong2020-salamanca/issues/29 ] format = [ "black", From f19a5fe57468df57cec35833e348ecd452c7328b Mon Sep 17 00:00:00 2001 From: Remco de Boer <29308176+redeboer@users.noreply.github.com> Date: Fri, 10 Nov 2023 13:42:30 +0100 Subject: [PATCH 3/3] MAINT: remove `_toc.yml` file --- docs/_toc.yml | 3 --- 1 file changed, 3 deletions(-) delete mode 100644 docs/_toc.yml diff --git a/docs/_toc.yml b/docs/_toc.yml deleted file mode 100644 index bb8f5a9..0000000 --- a/docs/_toc.yml +++ /dev/null @@ -1,3 +0,0 @@ -root: index -entries: - - glob: lecture*