diff --git a/docs/conf.py b/docs/conf.py index 577e29b7e..fef41d9c8 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -45,7 +45,7 @@ # General information about the project. project = u'PHPCoord' -copyright = u'2020-2023, Doug Wright' +copyright = u'2020-2024, Doug Wright' author = u'Doug Wright' # The version info for the project you're documenting, acts as replacement for @@ -78,6 +78,13 @@ # -- Options for HTML output ---------------------------------------------- +# Define the canonical URL if you are using a custom domain on Read the Docs +html_baseurl = os.environ.get("READTHEDOCS_CANONICAL_URL", "") + +# Tell Jinja2 templates the build is running on Read the Docs +if os.environ.get("READTHEDOCS", "") == "True": + html_context = {"READTHEDOCS": True} + # The theme to use for HTML and HTML Help pages. See the documentation for # a list of builtin themes. #