diff --git a/doc/en/_templates/globaltoc.html b/doc/en/_templates/globaltoc.html deleted file mode 100644 index 7c595e7eb..000000000 --- a/doc/en/_templates/globaltoc.html +++ /dev/null @@ -1,34 +0,0 @@ -
- pytest is a mature full-featured Python testing tool that helps - you write better programs. -
diff --git a/doc/en/_templates/slim_searchbox.html b/doc/en/_templates/slim_searchbox.html deleted file mode 100644 index e98ad4ed9..000000000 --- a/doc/en/_templates/slim_searchbox.html +++ /dev/null @@ -1,15 +0,0 @@ -{# - basic/searchbox.html with heading removed. -#} -{%- if pagename != "search" and builder != "singlehtml" %} - - -{%- endif %} diff --git a/doc/en/conf.py b/doc/en/conf.py index 1adc3493a..c1d198c1c 100644 --- a/doc/en/conf.py +++ b/doc/en/conf.py @@ -16,9 +16,7 @@ # The full version, including alpha/beta/rc tags. # The short X.Y version. import ast -import os import shutil -import sys from textwrap import dedent from typing import List from typing import TYPE_CHECKING @@ -65,7 +63,6 @@ latex_elements = { # Add any Sphinx extension module names here, as strings. They can be extensions # coming with Sphinx (named 'sphinx.ext.*') or your custom ones. extensions = [ - "pallets_sphinx_themes", "pygments_pytest", "sphinx.ext.autodoc", "sphinx.ext.autosummary", @@ -141,7 +138,7 @@ add_module_names = False # show_authors = False # The name of the Pygments (syntax highlighting) style to use. -pygments_style = "sphinx" +# pygments_style = "sphinx" # A list of ignored prefixes for module index sorting. @@ -172,17 +169,14 @@ extlinks = { # -- Options for HTML output --------------------------------------------------- -sys.path.append(os.path.abspath("_themes")) -html_theme_path = ["_themes"] - # The theme to use for HTML and HTML Help pages. See the documentation for # a list of builtin themes. -html_theme = "flask" +html_theme = "furo" # Theme options are theme-specific and customize the look and feel of a theme # further. For a list of options available for each theme, see the # documentation. -# html_theme_options = {"index_logo": None} +html_theme_options = {"sidebar_hide_name": True} # Add any paths that contain custom themes here, relative to this directory. # html_theme_path = [] @@ -218,24 +212,6 @@ html_favicon = "img/favicon.png" # Custom sidebar templates, maps document names to template names. # html_sidebars = {} -# html_sidebars = {'index': 'indexsidebar.html'} - -html_sidebars = { - "index": [ - "slim_searchbox.html", - "sidebarintro.html", - "globaltoc.html", - "links.html", - "sourcelink.html", - ], - "**": [ - "slim_searchbox.html", - "globaltoc.html", - "relations.html", - "links.html", - "sourcelink.html", - ], -} # Additional templates that should be rendered to pages, maps page names to # template names. @@ -395,9 +371,10 @@ intersphinx_mapping = { def configure_logging(app: "sphinx.application.Sphinx") -> None: """Configure Sphinx's WarningHandler to handle (expected) missing include.""" - import sphinx.util.logging import logging + import sphinx.util.logging + class WarnLogFilter(logging.Filter): def filter(self, record: logging.LogRecord) -> bool: """Ignore warnings about missing include with "only" directive. diff --git a/doc/en/requirements.txt b/doc/en/requirements.txt index 5b49cb7fc..534b77a95 100644 --- a/doc/en/requirements.txt +++ b/doc/en/requirements.txt @@ -1,7 +1,7 @@ -pallets-sphinx-themes +furo pluggy>=1.0 pygments-pytest>=2.2.0 sphinx-removed-in>=0.2.0 -sphinx>=3.1,<4 +sphinx>4,<4.4 sphinxcontrib-trio sphinxcontrib-svg2pdfconverter