From a9eb9c51c99417c49f4f76cbfa9bdd3ff7320165 Mon Sep 17 00:00:00 2001 From: Tom van Woudenberg Date: Wed, 27 Aug 2025 14:47:26 +0200 Subject: [PATCH 1/2] Add sphinx-accessibility to requirements.txt --- requirements.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/requirements.txt b/requirements.txt index 845ce49..91b3dc4 100644 --- a/requirements.txt +++ b/requirements.txt @@ -11,6 +11,7 @@ sphinx_dropdown_toggle git+https://github.com/TeachBooks/sphinx-togglebutton #waiting for merge of https://github.com/executablebooks/sphinx-togglebutton/pull/66, after, replace this line with `sphinx-dropdown-toggle` git+https://github.com/TeachBooks/sphinx-proof #waiting for merge of https://github.com/executablebooks/sphinx-proof/pull/146, after, replace this line with `sphinx-proof` sphinx-code-examples +sphinx-accessibility # Now list the packages you want to download directly from GitHub git+https://github.com/TeachBooks/Sphinx-Thebe From 0026ee5d3ab92bb9211e692bd0cac42367ffb0bb Mon Sep 17 00:00:00 2001 From: Tom van Woudenberg Date: Wed, 27 Aug 2025 14:49:12 +0200 Subject: [PATCH 2/2] Add sphinx_accessibility extension for better accessibility --- book/_config.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/book/_config.yml b/book/_config.yml index 4fb8630..770788e 100644 --- a/book/_config.yml +++ b/book/_config.yml @@ -51,6 +51,8 @@ sphinx: # Options passed on to the - sphinx_dropdown_toggle # Adds a button to toggle all dropdowns with one click - sphinx_proof # Allows you to add various mathy admonitions to your book: https://sphinx-proof.readthedocs.io/en/latest/ - sphinx_code_examples # Allows you to include code blocks in examples: https://teachbooks.io/manual/_git/github.com_TeachBooks_sphinx-code-examples/main/MANUAL.html + - sphinx_accessibility # Allows dyslexic-friendly fonts and high contrast mode: https://teachbooks.io/manual/accessibility/_git/github.com_TeachBooks_Sphinx-Accessibility/manual/README.html + bibtex_bibfiles: - references.bib # Required for references