From ba36f9b92a4e5ca638f35a9ed5d6c75228de53ec Mon Sep 17 00:00:00 2001 From: Andrew Godwin Date: Sun, 27 Nov 2022 16:16:01 -0700 Subject: Fix Sphinx canonical links --- docs/conf.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'docs/conf.py') diff --git a/docs/conf.py b/docs/conf.py index f269972..0052026 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -3,6 +3,11 @@ # For the full list of built-in configuration values, see the documentation: # https://www.sphinx-doc.org/en/master/usage/configuration.html +import pathlib +import sys + +sys.path.insert(0, str(pathlib.Path(__file__).parent / "extensions")) + # -- Project information ----------------------------------------------------- # https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information @@ -13,7 +18,7 @@ author = "Andrew Godwin" # -- General configuration --------------------------------------------------- # https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration -extensions: list = [] +extensions: list = ["canonical_fix"] templates_path = ["_templates"] exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"] @@ -26,3 +31,4 @@ html_theme = "furo" html_static_path = ["_static"] html_logo = "../static/img/logo-128.png" html_favicon = "../static/img/icon-32.png" +html_baseurl = "https://docs.jointakahe.org/" -- cgit v1.2.3