Changeset View
Changeset View
Standalone View
Standalone View
swh/docs/sphinx/conf.py
Show All 17 Lines | |||||
# -- General configuration ------------------------------------------------ | # -- General configuration ------------------------------------------------ | ||||
# Add any Sphinx extension module names here, as strings. They can be | # Add any Sphinx extension module names here, as strings. They can be | ||||
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom | # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom | ||||
# ones. | # ones. | ||||
extensions = [ | extensions = [ | ||||
"sphinx.ext.autodoc", | "sphinx.ext.autodoc", | ||||
"sphinx.ext.napoleon", | "sphinx.ext.napoleon", | ||||
"sphinx.ext.intersphinx", | |||||
"sphinxcontrib.httpdomain", | "sphinxcontrib.httpdomain", | ||||
"sphinx.ext.extlinks", | "sphinx.ext.extlinks", | ||||
"sphinxcontrib.images", | "sphinxcontrib.images", | ||||
"sphinxcontrib.programoutput", | "sphinxcontrib.programoutput", | ||||
"sphinx.ext.viewcode", | "sphinx.ext.viewcode", | ||||
"sphinx_tabs.tabs", | "sphinx_tabs.tabs", | ||||
"sphinx_rtd_theme", | "sphinx_rtd_theme", | ||||
"sphinx.ext.graphviz", | "sphinx.ext.graphviz", | ||||
▲ Show 20 Lines • Show All 91 Lines • ▼ Show 20 Lines | |||||
} | } | ||||
# If not None, a 'Last updated on:' timestamp is inserted at every page | # If not None, a 'Last updated on:' timestamp is inserted at every page | ||||
# bottom, using the given strftime format. | # bottom, using the given strftime format. | ||||
# The empty string is equivalent to '%b %d, %Y'. | # The empty string is equivalent to '%b %d, %Y'. | ||||
html_last_updated_fmt = "%Y-%m-%d %H:%M:%S %Z" | html_last_updated_fmt = "%Y-%m-%d %H:%M:%S %Z" | ||||
# refer to the Python standard library. | # refer to the Python standard library. | ||||
intersphinx_mapping = {"python": ("https://docs.python.org/3", None)} | intersphinx_mapping = { | ||||
"python": ("https://docs.python.org/3", None), | |||||
"swh-devel": ("https://docs.softwareheritage.org/devel", None), | |||||
} | |||||
# Redirects for pages that were moved, so we don't break external links. | # Redirects for pages that were moved, so we don't break external links. | ||||
# Uses sphinx-reredirects | # Uses sphinx-reredirects | ||||
redirects = { | redirects = { | ||||
"swh-deposit/spec-api": "api/api-documentation.html", | "swh-deposit/spec-api": "api/api-documentation.html", | ||||
"swh-deposit/metadata": "api/metadata.html", | "swh-deposit/metadata": "api/metadata.html", | ||||
"swh-deposit/specs/blueprint": "../api/use-cases.html", | "swh-deposit/specs/blueprint": "../api/use-cases.html", | ||||
"swh-deposit/user-manual": "api/user-manual.html", | "swh-deposit/user-manual": "api/user-manual.html", | ||||
▲ Show 20 Lines • Show All 146 Lines • Show Last 20 Lines |