diff --git a/docs/conf.py b/docs/conf.py index f932c8f..0d4713e 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -45,7 +45,7 @@ # General information about the project. project = u'Behat Code Coverage' -copyright = u'2019-2023, Doug Wright' +copyright = u'2019-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. #