sphinx-book-theme 1.1.4__tar.gz → 1.3.0.dev0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/ARCHITECTURE.md +1 -1
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/CHANGELOG.md +16 -0
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/PKG-INFO +11 -37
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/README.md +4 -1
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/docs/components/logo.md +1 -1
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/docs/components/source-files.md +1 -1
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/docs/conf.py +4 -1
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/docs/content/content-blocks.md +39 -8
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/docs/content/launch.md +28 -4
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/docs/contributing/setup.md +10 -10
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/docs/contributing/tests.md +7 -7
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/docs/reference/extensions.md +21 -0
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/package-lock.json +4206 -3963
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/package.json +2 -2
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/pyproject.toml +8 -5
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/src/sphinx_book_theme/__init__.py +1 -1
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/src/sphinx_book_theme/assets/scripts/index.js +62 -0
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/src/sphinx_book_theme/assets/styles/abstracts/_mixins.scss +1 -1
- sphinx_book_theme-1.3.0.dev0/src/sphinx_book_theme/assets/styles/content/_admonitions.scss +29 -0
- sphinx_book_theme-1.3.0.dev0/src/sphinx_book_theme/assets/styles/extensions/_myst-nb.scss +18 -0
- sphinx_book_theme-1.3.0.dev0/src/sphinx_book_theme/assets/styles/extensions/_sphinx-design.scss +18 -0
- sphinx_book_theme-1.3.0.dev0/src/sphinx_book_theme/assets/styles/extensions/_sphinx-tabs.scss +34 -0
- sphinx_book_theme-1.3.0.dev0/src/sphinx_book_theme/assets/styles/extensions/_sphinx-togglebutton.scss +19 -0
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/src/sphinx_book_theme/assets/styles/index.scss +5 -0
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/src/sphinx_book_theme/assets/styles/sections/_sidebar-primary.scss +16 -0
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/src/sphinx_book_theme/assets/styles/sections/_sidebar-secondary.scss +3 -3
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/src/sphinx_book_theme/assets/translations/jsons/By the.json +1 -0
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/src/sphinx_book_theme/assets/translations/jsons/By.json +1 -0
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/src/sphinx_book_theme/assets/translations/jsons/Contents.json +1 -0
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/src/sphinx_book_theme/assets/translations/jsons/Copyright.json +1 -0
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/src/sphinx_book_theme/assets/translations/jsons/Download notebook file.json +5 -0
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/src/sphinx_book_theme/assets/translations/jsons/Download source file.json +1 -0
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/src/sphinx_book_theme/assets/translations/jsons/Download this page.json +1 -0
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/src/sphinx_book_theme/assets/translations/jsons/Edit this page.json +1 -0
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/src/sphinx_book_theme/assets/translations/jsons/Fullscreen mode.json +1 -0
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/src/sphinx_book_theme/assets/translations/jsons/Last updated on.json +1 -0
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/src/sphinx_book_theme/assets/translations/jsons/Launch.json +1 -0
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/src/sphinx_book_theme/assets/translations/jsons/Open an issue.json +1 -0
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/src/sphinx_book_theme/assets/translations/jsons/Print to PDF.json +1 -0
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/src/sphinx_book_theme/assets/translations/jsons/Source repository.json +1 -0
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/src/sphinx_book_theme/assets/translations/jsons/Sphinx Book Theme.json +1 -0
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/src/sphinx_book_theme/assets/translations/jsons/Theme by the.json +1 -0
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/src/sphinx_book_theme/assets/translations/jsons/Toggle navigation.json +5 -0
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/src/sphinx_book_theme/assets/translations/jsons/next page.json +1 -0
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/src/sphinx_book_theme/assets/translations/jsons/open issue.json +1 -0
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/src/sphinx_book_theme/assets/translations/jsons/previous page.json +1 -0
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/src/sphinx_book_theme/assets/translations/jsons/repository.json +1 -0
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/src/sphinx_book_theme/assets/translations/jsons/suggest edit.json +1 -0
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/src/sphinx_book_theme/header_buttons/__init__.py +3 -2
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/src/sphinx_book_theme/header_buttons/launch.py +24 -1
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/src/sphinx_book_theme/header_buttons/source.py +1 -1
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/src/sphinx_book_theme/theme/sphinx_book_theme/components/page-toc.html +5 -2
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/src/sphinx_book_theme/theme/sphinx_book_theme/components/toggle-secondary-sidebar.html +1 -1
- sphinx_book_theme-1.3.0.dev0/src/sphinx_book_theme/theme/sphinx_book_theme/static/images/logo_jupyterlite.svg +17 -0
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/tests/test_build/build__header-article.html +13 -17
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/tests/test_build/build__pagetoc--page-multipletitles.html +6 -6
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/tests/test_build/build__pagetoc--page-onetitle.html +4 -4
- sphinx_book_theme-1.3.0.dev0/tests/test_build/build__sidebar-primary__nav.html +96 -0
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/tests/test_build/header__repo-buttons--all-off.html +13 -17
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/tests/test_build/header__repo-buttons--all-on.html +13 -17
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/tests/test_build/header__repo-buttons--custom-branch.html +13 -17
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/tests/test_build/header__repo-buttons--one-on.html +13 -17
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/tests/test_build/header__source-buttons--gitlab.html +1 -1
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/tests/test_build/header__source-buttons--gitlab_manual.html +1 -1
- sphinx_book_theme-1.3.0.dev0/tests/test_build/test_right_sidebar_title.html +5 -0
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/tests/test_build.py +7 -13
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/tox.ini +22 -6
- sphinx_book_theme-1.1.4/tests/test_build/test_right_sidebar_title.html +0 -5
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/CONTRIBUTING.md +0 -0
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/LICENSE +0 -0
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/codecov.yml +0 -0
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/docs/_static/custom.css +0 -0
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/docs/_static/ebp-logo.png +0 -0
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/docs/_static/logo-square.png +0 -0
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/docs/_static/logo-square.svg +0 -0
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/docs/_static/logo-wide-dark.svg +0 -0
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/docs/_static/logo-wide.svg +0 -0
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/docs/_static/rtd-data.js +0 -0
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/docs/_templates/test.html +0 -0
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/docs/changelog.md +0 -0
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/docs/components/custom-css.md +0 -0
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/docs/components/download.md +0 -0
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/docs/components/icon-links.md +0 -0
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/docs/components/index.md +0 -0
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/docs/content/index.md +0 -0
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/docs/content/notebooks.md +0 -0
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/docs/contributing/architecture.md +0 -0
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/docs/contributing/index.md +0 -0
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/docs/contributing/style.md +0 -0
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/docs/contributing/subthemes.md +0 -0
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/docs/contributing/translate.md +0 -0
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/docs/contributing/versions.md +0 -0
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/docs/images/cool.jpg +0 -0
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/docs/index.md +0 -0
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/docs/reference/api-numpy.md +0 -0
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/docs/reference/blog/post1.md +0 -0
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/docs/reference/blog/post2.md +0 -0
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/docs/reference/blog.md +0 -0
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/docs/reference/comments.md +0 -0
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/docs/reference/kitchen-sink/admonitions.rst +0 -0
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/docs/reference/kitchen-sink/api.rst +0 -0
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/docs/reference/kitchen-sink/blocks.rst +0 -0
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/docs/reference/kitchen-sink/generic.rst +0 -0
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/docs/reference/kitchen-sink/images.rst +0 -0
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/docs/reference/kitchen-sink/index.rst +0 -0
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/docs/reference/kitchen-sink/lists.rst +0 -0
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/docs/reference/kitchen-sink/really-long.rst +0 -0
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/docs/reference/kitchen-sink/structure.rst +0 -0
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/docs/reference/kitchen-sink/tables.rst +0 -0
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/docs/reference/kitchen-sink/typography.rst +0 -0
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/docs/reference/notebooks.md +0 -0
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/docs/reference/special-theme-elements.md +0 -0
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/docs/reference/thebe.md +0 -0
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/docs/reference.md +0 -0
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/docs/references.bib +0 -0
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/docs/scripts/update_kitchen_sink.py +0 -0
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/docs/sections/announcements.md +0 -0
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/docs/sections/footer-content.md +0 -0
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/docs/sections/footer.md +0 -0
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/docs/sections/header.md +0 -0
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/docs/sections/index.md +0 -0
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/docs/sections/sidebar-primary.md +0 -0
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/docs/sections/sidebar-secondary.md +0 -0
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/docs/tutorials/get-started.md +0 -0
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/src/sphinx_book_theme/_compat.py +0 -0
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/src/sphinx_book_theme/_compile_translations.py +0 -0
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/src/sphinx_book_theme/_transforms.py +0 -0
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/src/sphinx_book_theme/assets/styles/abstracts/_variables.scss +0 -0
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/src/sphinx_book_theme/assets/styles/base/_base.scss +0 -0
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/src/sphinx_book_theme/assets/styles/base/_print.scss +0 -0
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/src/sphinx_book_theme/assets/styles/base/_typography.scss +0 -0
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/src/sphinx_book_theme/assets/styles/components/_back-to-top.scss +0 -0
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/src/sphinx_book_theme/assets/styles/components/_icon-links.scss +0 -0
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/src/sphinx_book_theme/assets/styles/components/_logo.scss +0 -0
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/src/sphinx_book_theme/assets/styles/components/_search.scss +0 -0
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/src/sphinx_book_theme/assets/styles/content/_code.scss +0 -0
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/src/sphinx_book_theme/assets/styles/content/_images.scss +0 -0
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/src/sphinx_book_theme/assets/styles/content/_margin.scss +0 -0
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/src/sphinx_book_theme/assets/styles/content/_notebooks.scss +0 -0
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/src/sphinx_book_theme/assets/styles/content/_quotes.scss +0 -0
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/src/sphinx_book_theme/assets/styles/extensions/_comments.scss +0 -0
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/src/sphinx_book_theme/assets/styles/extensions/_thebe.scss +0 -0
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/src/sphinx_book_theme/assets/styles/sections/_announcement.scss +0 -0
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/src/sphinx_book_theme/assets/styles/sections/_article-container.scss +0 -0
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/src/sphinx_book_theme/assets/styles/sections/_article.scss +0 -0
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/src/sphinx_book_theme/assets/styles/sections/_footer-article.scss +0 -0
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/src/sphinx_book_theme/assets/styles/sections/_footer-content.scss +0 -0
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/src/sphinx_book_theme/assets/styles/sections/_header-article.scss +0 -0
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/src/sphinx_book_theme/assets/styles/sections/_header-primary.scss +0 -0
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/src/sphinx_book_theme/assets/translations/README.md +0 -0
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/src/sphinx_book_theme/directives.py +0 -0
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/src/sphinx_book_theme/nodes.py +0 -0
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/src/sphinx_book_theme/theme/sphinx_book_theme/components/article-header-buttons.html +0 -0
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/src/sphinx_book_theme/theme/sphinx_book_theme/components/author.html +0 -0
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/src/sphinx_book_theme/theme/sphinx_book_theme/components/extra-footer.html +0 -0
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/src/sphinx_book_theme/theme/sphinx_book_theme/components/sbt-sidebar-nav.html +0 -0
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/src/sphinx_book_theme/theme/sphinx_book_theme/components/toggle-primary-sidebar.html +0 -0
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/src/sphinx_book_theme/theme/sphinx_book_theme/layout.html +0 -0
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/src/sphinx_book_theme/theme/sphinx_book_theme/macros/buttons.html +0 -0
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/src/sphinx_book_theme/theme/sphinx_book_theme/sections/footer-content.html +0 -0
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/src/sphinx_book_theme/theme/sphinx_book_theme/static/.gitignore +0 -0
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/src/sphinx_book_theme/theme/sphinx_book_theme/static/images/logo_binder.svg +0 -0
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/src/sphinx_book_theme/theme/sphinx_book_theme/static/images/logo_colab.png +0 -0
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/src/sphinx_book_theme/theme/sphinx_book_theme/static/images/logo_deepnote.svg +0 -0
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/src/sphinx_book_theme/theme/sphinx_book_theme/static/images/logo_jupyterhub.svg +0 -0
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/src/sphinx_book_theme/theme/sphinx_book_theme/static/sbt-webpack-macros.html +0 -0
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/src/sphinx_book_theme/theme/sphinx_book_theme/theme.conf +0 -0
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/tests/conftest.py +0 -0
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/tests/sites/base/Makefile +0 -0
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/tests/sites/base/conf.py +0 -0
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/tests/sites/base/index.rst +0 -0
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/tests/sites/base/page1.rst +0 -0
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/tests/sites/base/page2.rst +0 -0
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/tests/sites/base/section1/index.rst +0 -0
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/tests/sites/base/section1/ntbk.ipynb +0 -0
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/tests/sites/base/section1/ntbk_julia.ipynb +0 -0
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/tests/sites/base/section1/ntbk_octave.ipynb +0 -0
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/tests/sites/base/section1/ntbkmd.md +0 -0
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/tests/sites/base/section1/page1.rst +0 -0
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/tests/sites/base/titles/index.rst +0 -0
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/tests/sites/base/titles/page-multipletitles.rst +0 -0
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/tests/sites/base/titles/page-onetitle.rst +0 -0
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/tests/sites/base/titles/page-onetitlenoheadings.rst +0 -0
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/tests/sites/notitle/conf.py +0 -0
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/tests/sites/notitle/index.rst +0 -0
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/tests/sites/parallel-build/Makefile +0 -0
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/tests/sites/parallel-build/conf.py +0 -0
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/tests/sites/parallel-build/five.rst +0 -0
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/tests/sites/parallel-build/four.rst +0 -0
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/tests/sites/parallel-build/index.rst +0 -0
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/tests/sites/parallel-build/one.rst +0 -0
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/tests/sites/parallel-build/three.rst +0 -0
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/tests/sites/parallel-build/two.rst +0 -0
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/tests/test_build/header__launch-buttons--bitbucket.html +0 -0
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/tests/test_build/header__launch-buttons--github.html +0 -0
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/tests/test_build/header__launch-buttons--gitlab.html +0 -0
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/tests/test_build/header__launch-buttons--gitlab_manual.html +0 -0
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/tests/test_build/header__source-buttons--bitbucket.html +0 -0
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/tests/test_build/header__source-buttons--github.html +0 -0
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/tests/test_build/header__source-buttons--github_manual.html +0 -0
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/tests/test_build/test_header_launchbtns.html +0 -0
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/tests/test_build/test_marginnote.html +0 -0
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/tests/test_build/test_marginnote_6.html +0 -0
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/tests/test_build/test_sidenote.html +0 -0
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/tests/test_build/test_sidenote_6.html +0 -0
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/tests/test_locale_convert.py +0 -0
- {sphinx_book_theme-1.1.4 → sphinx_book_theme-1.3.0.dev0}/webpack.config.js +0 -0
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
This is a short overview of the general architecture and structure of the repository, to help you orient yourself.
|
|
4
4
|
|
|
5
|
-
This theme uses [sphinx-theme-builder](https://sphinx-theme-builder.readthedocs.io/en/latest/) as its build backend, and follows the [filesystem layout](https://sphinx-theme-builder.readthedocs.io/en/latest/filesystem-layout
|
|
5
|
+
This theme uses [sphinx-theme-builder](https://sphinx-theme-builder.readthedocs.io/en/latest/) as its build backend, and follows the [filesystem layout](https://sphinx-theme-builder.readthedocs.io/en/latest/filesystem-layout.html) recommended by it.
|
|
6
6
|
See below for some more specific sections
|
|
7
7
|
|
|
8
8
|
```{contents}
|
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## v1.2.0 -- 2026-03-09
|
|
4
|
+
|
|
5
|
+
* Jupyterlite button - patched, merged version of #655 by @matthew-brett in https://github.com/executablebooks/sphinx-book-theme/pull/914
|
|
6
|
+
* [ENH] Show source text on GitLab projects by @tymcauley in https://github.com/executablebooks/sphinx-book-theme/pull/916
|
|
7
|
+
* Fix typo in docs by @user27182 in https://github.com/executablebooks/sphinx-book-theme/pull/913
|
|
8
|
+
* prepare for latest pydata and python releases by @choldgraf in https://github.com/executablebooks/sphinx-book-theme/pull/920
|
|
9
|
+
* Ignore PendingDeprecationWarning about parser_name deprecation with Docutils 0.22 by @mitya57 in https://github.com/executablebooks/sphinx-book-theme/pull/919
|
|
10
|
+
* CI: adding cronjob by @bsipocz in https://github.com/executablebooks/sphinx-book-theme/pull/926
|
|
11
|
+
* DOC: Fix margin directive documentation by @melissawm in https://github.com/executablebooks/sphinx-book-theme/pull/930
|
|
12
|
+
* MAINT: adding sphinx9 and python3.14 support and bumping minimum sphinx to 7 and python to 3.11 by @bsipocz in https://github.com/executablebooks/sphinx-book-theme/pull/927
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
**Full Changelog**:
|
|
16
|
+
https://github.com/executablebooks/sphinx-book-theme/compare/v1.1.4...v1.2
|
|
17
|
+
|
|
18
|
+
|
|
3
19
|
## v1.1.2 -- 2024-02-13
|
|
4
20
|
|
|
5
21
|
([full changelog](https://github.com/executablebooks/sphinx-book-theme/compare/v1.1.1...3da24da74f6042599fe6c9e2d612f5cbdef42280))
|
|
@@ -1,38 +1,9 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: sphinx-book-theme
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.3.0.dev0
|
|
4
4
|
Summary: A clean book theme for scientific explanations and documentation with Sphinx
|
|
5
5
|
Maintainer-Email: Executable Books Team <executablebooks@gmail.com>
|
|
6
|
-
License:
|
|
7
|
-
|
|
8
|
-
Copyright (c) 2020, Chris Holdgraf
|
|
9
|
-
All rights reserved.
|
|
10
|
-
|
|
11
|
-
Redistribution and use in source and binary forms, with or without
|
|
12
|
-
modification, are permitted provided that the following conditions are met:
|
|
13
|
-
|
|
14
|
-
1. Redistributions of source code must retain the above copyright notice, this
|
|
15
|
-
list of conditions and the following disclaimer.
|
|
16
|
-
|
|
17
|
-
2. Redistributions in binary form must reproduce the above copyright notice,
|
|
18
|
-
this list of conditions and the following disclaimer in the documentation
|
|
19
|
-
and/or other materials provided with the distribution.
|
|
20
|
-
|
|
21
|
-
3. Neither the name of the copyright holder nor the names of its
|
|
22
|
-
contributors may be used to endorse or promote products derived from
|
|
23
|
-
this software without specific prior written permission.
|
|
24
|
-
|
|
25
|
-
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
26
|
-
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
27
|
-
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
28
|
-
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
29
|
-
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
30
|
-
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
31
|
-
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
32
|
-
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
33
|
-
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
34
|
-
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
35
|
-
|
|
6
|
+
License-File: LICENSE
|
|
36
7
|
Classifier: Development Status :: 4 - Beta
|
|
37
8
|
Classifier: Programming Language :: Python :: 3
|
|
38
9
|
Classifier: Framework :: Sphinx
|
|
@@ -41,13 +12,13 @@ Classifier: License :: OSI Approved :: BSD License
|
|
|
41
12
|
Classifier: Operating System :: OS Independent
|
|
42
13
|
Project-URL: Repository, https://github.com/executablebooks/sphinx-book-theme
|
|
43
14
|
Project-URL: Documentation, https://sphinx-book-theme.readthedocs.io/
|
|
44
|
-
Requires-Python: >=3.
|
|
45
|
-
Requires-Dist: sphinx>=
|
|
46
|
-
Requires-Dist: pydata-sphinx-theme==0.
|
|
15
|
+
Requires-Python: >=3.11
|
|
16
|
+
Requires-Dist: sphinx>=7.0
|
|
17
|
+
Requires-Dist: pydata-sphinx-theme==0.17.1
|
|
47
18
|
Provides-Extra: code-style
|
|
48
19
|
Requires-Dist: pre-commit; extra == "code-style"
|
|
49
20
|
Provides-Extra: doc
|
|
50
|
-
Requires-Dist: ablog; extra == "doc"
|
|
21
|
+
Requires-Dist: ablog>=0.11.13; extra == "doc"
|
|
51
22
|
Requires-Dist: ipywidgets; extra == "doc"
|
|
52
23
|
Requires-Dist: folium; extra == "doc"
|
|
53
24
|
Requires-Dist: numpy; extra == "doc"
|
|
@@ -81,6 +52,9 @@ Description-Content-Type: text/markdown
|
|
|
81
52
|
|
|
82
53
|
[![codecov][codecov-badge]][codecov-link] [![Documentation Status][rtd-badge]][rtd-link] [![PyPI][pypi-badge]][pypi-link]
|
|
83
54
|
|
|
55
|
+
> [!NOTE]
|
|
56
|
+
> **Maintenance Mode**: This project is currently in maintenance mode. We are accepting bug fixes as best we can, but there are not dedicated resources to review and merge. New feature development is not likely. If you're interested in becoming a maintainer and helping keep this project actively developed, please reach out by opening an issue!
|
|
57
|
+
|
|
84
58
|
**An interactive book theme for Sphinx**.
|
|
85
59
|
|
|
86
60
|
This is a lightweight Sphinx theme designed to mimic the look-and-feel of an
|
|
@@ -121,7 +95,7 @@ theme. See the pages to the left for information about what you can configure wi
|
|
|
121
95
|
See [the Sphinx Book Theme documentation](https://sphinx-book-theme.readthedocs.io/en/latest/)
|
|
122
96
|
for more information.
|
|
123
97
|
|
|
124
|
-
[codecov-badge]: https://codecov.io/gh/executablebooks/sphinx-book-theme/branch/
|
|
98
|
+
[codecov-badge]: https://codecov.io/gh/executablebooks/sphinx-book-theme/branch/main/graph/badge.svg
|
|
125
99
|
[codecov-link]: https://codecov.io/gh/executablebooks/sphinx-book-theme
|
|
126
100
|
|
|
127
101
|
[rtd-badge]: https://readthedocs.org/projects/sphinx-book-theme/badge/?version=latest
|
|
@@ -2,6 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
[![codecov][codecov-badge]][codecov-link] [![Documentation Status][rtd-badge]][rtd-link] [![PyPI][pypi-badge]][pypi-link]
|
|
4
4
|
|
|
5
|
+
> [!NOTE]
|
|
6
|
+
> **Maintenance Mode**: This project is currently in maintenance mode. We are accepting bug fixes as best we can, but there are not dedicated resources to review and merge. New feature development is not likely. If you're interested in becoming a maintainer and helping keep this project actively developed, please reach out by opening an issue!
|
|
7
|
+
|
|
5
8
|
**An interactive book theme for Sphinx**.
|
|
6
9
|
|
|
7
10
|
This is a lightweight Sphinx theme designed to mimic the look-and-feel of an
|
|
@@ -42,7 +45,7 @@ theme. See the pages to the left for information about what you can configure wi
|
|
|
42
45
|
See [the Sphinx Book Theme documentation](https://sphinx-book-theme.readthedocs.io/en/latest/)
|
|
43
46
|
for more information.
|
|
44
47
|
|
|
45
|
-
[codecov-badge]: https://codecov.io/gh/executablebooks/sphinx-book-theme/branch/
|
|
48
|
+
[codecov-badge]: https://codecov.io/gh/executablebooks/sphinx-book-theme/branch/main/graph/badge.svg
|
|
46
49
|
[codecov-link]: https://codecov.io/gh/executablebooks/sphinx-book-theme
|
|
47
50
|
|
|
48
51
|
[rtd-badge]: https://readthedocs.org/projects/sphinx-book-theme/badge/?version=latest
|
|
@@ -5,4 +5,4 @@
|
|
|
5
5
|
You can customize the logo, title, and favicon of your site.
|
|
6
6
|
|
|
7
7
|
Refer to {external:doc}`the PyData Sphinx Theme branding documentation <user_guide/branding>` for how to customize the logo and title.
|
|
8
|
-
This theme
|
|
8
|
+
This theme reuses the same configuration.
|
|
@@ -48,7 +48,7 @@ Once this is provided, you may add source buttons by following the following sec
|
|
|
48
48
|
(source-buttons:source)=
|
|
49
49
|
## Add a button to the page source
|
|
50
50
|
|
|
51
|
-
Show the raw source of the page on the provider you've
|
|
51
|
+
Show the raw source of the page on the provider you've provided.
|
|
52
52
|
To add a button to the page source, first [configure your source repository](source-buttons:repository) and then add:
|
|
53
53
|
|
|
54
54
|
```python
|
|
@@ -109,7 +109,8 @@ thebe_config = {
|
|
|
109
109
|
html_theme_options = {
|
|
110
110
|
"path_to_docs": "docs",
|
|
111
111
|
"repository_url": "https://github.com/executablebooks/sphinx-book-theme",
|
|
112
|
-
"repository_branch": "
|
|
112
|
+
"repository_branch": "main",
|
|
113
|
+
"search_as_you_type": True,
|
|
113
114
|
"launch_buttons": {
|
|
114
115
|
"binderhub_url": "https://mybinder.org",
|
|
115
116
|
"colab_url": "https://colab.research.google.com/",
|
|
@@ -190,6 +191,8 @@ numpydoc_show_class_members = False # for automodule:: urllib.parse stub file i
|
|
|
190
191
|
linkcheck_ignore = [
|
|
191
192
|
"http://someurl/release", # This is a fake link
|
|
192
193
|
"https://doi.org", # These don't resolve properly and cause SSL issues
|
|
194
|
+
"https://docutils.sourceforge.io/docs/ref/rst/restructuredtext.html", # anchors throw a 403 forbidden error
|
|
195
|
+
"https://docutils.sourceforge.io/docs/ref/rst/directives.html", # anchors throw a 403 forbidden error
|
|
193
196
|
]
|
|
194
197
|
linkcheck_exclude_documents = ["changelog"]
|
|
195
198
|
|
|
@@ -141,10 +141,17 @@ If you'd like in-line margin content with numbered references, see [](margin:sid
|
|
|
141
141
|
|
|
142
142
|
Here's how you can use the `{margin}` directive:
|
|
143
143
|
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
144
|
+
```{margin} **Here is my margin content**
|
|
145
|
+
It is pretty cool!
|
|
146
|
+
```
|
|
147
|
+
|
|
148
|
+
:::{important}
|
|
149
|
+
The `{margin}` directive should not be nested under other elements such as topics or admonitions.
|
|
150
|
+
:::
|
|
151
|
+
|
|
152
|
+
**Source**
|
|
147
153
|
|
|
154
|
+
````
|
|
148
155
|
```{margin} **Here is my margin content**
|
|
149
156
|
It is pretty cool!
|
|
150
157
|
```
|
|
@@ -217,12 +224,17 @@ We can reference the figure with {ref}`myfig4`. Or a numbered reference like
|
|
|
217
224
|
|
|
218
225
|
Margin content can include all kinds of things, such as code blocks:
|
|
219
226
|
|
|
227
|
+
**Code blocks in the margin**
|
|
228
|
+
|
|
220
229
|
````{margin} Code blocks in margins
|
|
221
230
|
```python
|
|
222
231
|
print("here is some python")
|
|
223
232
|
```
|
|
224
233
|
````
|
|
225
234
|
|
|
235
|
+
**Source**
|
|
236
|
+
|
|
237
|
+
`````
|
|
226
238
|
````{margin} Code blocks in margins
|
|
227
239
|
```python
|
|
228
240
|
print("here is some python")
|
|
@@ -230,10 +242,18 @@ print("here is some python")
|
|
|
230
242
|
````
|
|
231
243
|
`````
|
|
232
244
|
|
|
233
|
-
|
|
234
|
-
:no-container:
|
|
235
|
-
:reverse:
|
|
245
|
+
**Admonitions and images in the margin**
|
|
236
246
|
|
|
247
|
+
````{margin} **Notes in margins**
|
|
248
|
+
```{note}
|
|
249
|
+
Wow, a note with an image in a margin!
|
|
250
|
+

|
|
251
|
+
```
|
|
252
|
+
````
|
|
253
|
+
|
|
254
|
+
**Source**
|
|
255
|
+
|
|
256
|
+
`````
|
|
237
257
|
````{margin} **Notes in margins**
|
|
238
258
|
```{note}
|
|
239
259
|
Wow, a note with an image in a margin!
|
|
@@ -249,9 +269,16 @@ page to flow around them, rather than moving to the right margin.
|
|
|
249
269
|
|
|
250
270
|
To add content sidebars, use this syntax:
|
|
251
271
|
|
|
252
|
-
|
|
253
|
-
|
|
272
|
+
````{sidebar} **My sidebar title**
|
|
273
|
+
```{note}
|
|
274
|
+
Here is my sidebar content, it is pretty cool!
|
|
275
|
+
```
|
|
276
|
+

|
|
277
|
+
````
|
|
254
278
|
|
|
279
|
+
**Source**
|
|
280
|
+
|
|
281
|
+
`````
|
|
255
282
|
````{sidebar} **My sidebar title**
|
|
256
283
|
```{note}
|
|
257
284
|
Here is my sidebar content, it is pretty cool!
|
|
@@ -265,6 +292,10 @@ However, the sidebar text will still be in line with your content. There are
|
|
|
265
292
|
certain kinds of elements, such as "note" blocks and code cells, that may
|
|
266
293
|
clash with your sidebar. If this happens, try using a `{margin}` instead.
|
|
267
294
|
|
|
295
|
+
:::{important}
|
|
296
|
+
The `{sidebar}` directive should not be nested under other elements such as topics or admonitions.
|
|
297
|
+
:::
|
|
298
|
+
|
|
268
299
|
## Full-width content
|
|
269
300
|
|
|
270
301
|
Full-width content extends into the right margin, making it stand out against
|
|
@@ -2,11 +2,13 @@
|
|
|
2
2
|
# Launch buttons for interactivity
|
|
3
3
|
|
|
4
4
|
You can automatically add buttons that allow users to interact with your
|
|
5
|
-
book's content. This is
|
|
6
|
-
that runs in
|
|
5
|
+
book's content. This is can be by directing them to
|
|
6
|
+
a [JupyterLite](https://jupyterlite.readthedocs.io) installation (that runs in
|
|
7
|
+
the user's browser) or one of BinderHub or JupyterHub (that runs in the
|
|
8
|
+
cloud), or by making your page interactive using Thebe.
|
|
7
9
|
|
|
8
|
-
To use
|
|
9
|
-
documentation's repository url:
|
|
10
|
+
To use any of JupyterLite or Binder or JupyterHub links, you'll first need to
|
|
11
|
+
configure your documentation's repository url:
|
|
10
12
|
|
|
11
13
|
```python
|
|
12
14
|
html_theme_options = {
|
|
@@ -26,6 +28,28 @@ folder as your content, then Binder/JupyterHub links will point to the ipynb
|
|
|
26
28
|
file instead of the text file.
|
|
27
29
|
```
|
|
28
30
|
|
|
31
|
+
## JupyterLite
|
|
32
|
+
|
|
33
|
+
If you are adding [JupyterLite](https://github.com/jupyterlite/jupyterlite) links to your page, first work out where your
|
|
34
|
+
JupyterLite instance will be serving from, then add the URL to your
|
|
35
|
+
configuration. In the example below, we've set up JupyterLite pages at the
|
|
36
|
+
base URL of the main pages site, and at subdirectory `interact/lab`:
|
|
37
|
+
|
|
38
|
+
```python
|
|
39
|
+
html_theme_options = {
|
|
40
|
+
...
|
|
41
|
+
"launch_buttons": {
|
|
42
|
+
"jupyterlite_url": "interact/lab/index.html"
|
|
43
|
+
},
|
|
44
|
+
...
|
|
45
|
+
}
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
See <https://odsti.github.io/cfd-textbook> for an example
|
|
49
|
+
[JupyterBook](https://jupyterbook.org) project serving JupyterLite using this
|
|
50
|
+
configuration, and <https://github.com/odsti/cfd-textbook> for the driving
|
|
51
|
+
repository.
|
|
52
|
+
|
|
29
53
|
## Binder / BinderHub
|
|
30
54
|
|
|
31
55
|
To add Binder links to your page, add the following configuration:
|
|
@@ -39,17 +39,17 @@ Follow these steps:
|
|
|
39
39
|
$ pre-commit install
|
|
40
40
|
```
|
|
41
41
|
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
42
|
+
:::{margin}
|
|
43
|
+
You can also run pre-commit via `tox`:
|
|
44
|
+
```console
|
|
45
|
+
$ tox -e py38-pre-commit -- --all
|
|
46
|
+
```
|
|
47
|
+
or manually run all `pre-commit` jobs for this repository:
|
|
48
48
|
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
49
|
+
```console
|
|
50
|
+
$ pre-commit run --all-files
|
|
51
|
+
```
|
|
52
|
+
:::
|
|
53
53
|
|
|
54
54
|
The rest of these instructions use `tox` to automate the installation and commands necessary to do many common things.
|
|
55
55
|
|
|
@@ -14,8 +14,8 @@ $ tox
|
|
|
14
14
|
You can specify a specific environment like so:
|
|
15
15
|
|
|
16
16
|
```console
|
|
17
|
-
# Run the tests with Python 3.
|
|
18
|
-
$ tox -e
|
|
17
|
+
# Run the tests with Python 3.12, Sphinx 8
|
|
18
|
+
$ tox -e py312-sphinx8
|
|
19
19
|
```
|
|
20
20
|
|
|
21
21
|
## List all test environments
|
|
@@ -46,7 +46,7 @@ By default, `tox` will only install the necessary environment **once**.
|
|
|
46
46
|
If you'd like to force a re-build, use the `-r` parameter. For example:
|
|
47
47
|
|
|
48
48
|
```console
|
|
49
|
-
$ tox -r -e
|
|
49
|
+
$ tox -r -e py312-sphinx8
|
|
50
50
|
```
|
|
51
51
|
|
|
52
52
|
## Test audits with lighthouse
|
|
@@ -63,8 +63,8 @@ To preview the output of these tests:
|
|
|
63
63
|
|
|
64
64
|
## Test multiple Sphinx versions
|
|
65
65
|
|
|
66
|
-
This theme is tested against
|
|
67
|
-
We try to set up our regression tests such that there are no differences between these
|
|
66
|
+
This theme is tested against Sphinx 7-9.
|
|
67
|
+
We try to set up our regression tests such that there are no differences between these Sphinx versions.
|
|
68
68
|
|
|
69
69
|
### Unit tests
|
|
70
70
|
|
|
@@ -73,9 +73,9 @@ Use the variable `sphinx_build.software_versions` to conditionally run tests bas
|
|
|
73
73
|
For example:
|
|
74
74
|
|
|
75
75
|
```python
|
|
76
|
-
if sphinx_build.software_versions == ".
|
|
76
|
+
if sphinx_build.software_versions == ".sphinx8":
|
|
77
77
|
foo
|
|
78
|
-
elif sphinx_build.software_versions == ".
|
|
78
|
+
elif sphinx_build.software_versions == ".sphinx9":
|
|
79
79
|
bar
|
|
80
80
|
```
|
|
81
81
|
|
|
@@ -108,4 +108,25 @@ This toggle is in the margin!
|
|
|
108
108
|
|
|
109
109
|
## `sphinx-design` for UI components
|
|
110
110
|
|
|
111
|
+
[`sphinx-design`](https://sphinx-design.readthedocs.io/) provides various UI components like badges, cards, and dropdowns.
|
|
112
|
+
|
|
113
|
+
**Badge:**
|
|
114
|
+
|
|
111
115
|
{bdg-primary}`Test badge`.
|
|
116
|
+
|
|
117
|
+
**Card:**
|
|
118
|
+
|
|
119
|
+
::::{card} Card Title
|
|
120
|
+
:class-card: sd-border-0
|
|
121
|
+
Card header.
|
|
122
|
+
^^^
|
|
123
|
+
Card content goes here. This demonstrates how cards look in both light and dark modes.
|
|
124
|
+
+++
|
|
125
|
+
Card footer.
|
|
126
|
+
::::
|
|
127
|
+
|
|
128
|
+
**Dropdown:**
|
|
129
|
+
|
|
130
|
+
:::{dropdown} Click to expand
|
|
131
|
+
This is the dropdown content. It should be readable in both light and dark modes.
|
|
132
|
+
:::
|