Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 0 additions & 34 deletions doc/en/_templates/globaltoc.html

This file was deleted.

52 changes: 0 additions & 52 deletions doc/en/_templates/layout.html

This file was deleted.

7 changes: 0 additions & 7 deletions doc/en/_templates/links.html

This file was deleted.

19 changes: 0 additions & 19 deletions doc/en/_templates/relations.html

This file was deleted.

5 changes: 0 additions & 5 deletions doc/en/_templates/sidebarintro.html

This file was deleted.

15 changes: 0 additions & 15 deletions doc/en/_templates/slim_searchbox.html

This file was deleted.

33 changes: 5 additions & 28 deletions doc/en/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -65,7 +63,6 @@
# 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",
Expand Down Expand Up @@ -141,7 +138,7 @@
# 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.
Expand Down Expand Up @@ -172,17 +169,14 @@

# -- 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 = []
Expand Down Expand Up @@ -218,24 +212,6 @@

# 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.
Expand Down Expand Up @@ -395,9 +371,10 @@

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.
Expand Down
4 changes: 2 additions & 2 deletions doc/en/requirements.txt
Original file line number Diff line number Diff line change
@@ -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