Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Needed updates because of changed build system #327

Open
yakob-aleksandrovich opened this issue Jan 22, 2025 · 0 comments
Open

Needed updates because of changed build system #327

yakob-aleksandrovich opened this issue Jan 22, 2025 · 0 comments

Comments

@yakob-aleksandrovich
Copy link
Collaborator

In source/conf.py, add the following stanza

import os

# 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":
    if "html_context" not in globals():
        html_context = {}
    html_context["READTHEDOCS"] = True

For more information, see here: https://about.readthedocs.com/blog/2024/07/addons-by-default/

The proposed change fixes the Custom Domain, which is no longer picked up by the hosted Builder.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant