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

RTD maintenance #269

Merged
merged 2 commits into from
Jul 31, 2024
Merged

RTD maintenance #269

merged 2 commits into from
Jul 31, 2024

Conversation

awelzel
Copy link
Contributor

@awelzel awelzel commented Jul 31, 2024

No description provided.

awelzel added 2 commits July 31, 2024 11:42
Changes based on email from RTD:

    [Action required] Deprecation: Removal of Sphinx context injection at build time

And the following one blog post:

    https://about.readthedocs.com/blog/2024/07/addons-by-default/
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":
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: the default value for the default parameter is None, no need to tweak it here.

Suggested change
if os.environ.get("READTHEDOCS", "") == "True":
if os.environ.get("READTHEDOCS") == "True":

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's from their docs, so didn't tweak it. Will leave as is.

(Wonder if there's some type-checking background to passing "" as default. (without it's typed as Optional[str], with it's str).

@@ -143,6 +143,15 @@

html_theme = 'sphinx_rtd_theme'

# Set canonical URL from the Read the Docs Domain
html_baseurl = os.environ.get("READTHEDOCS_CANONICAL_URL", "")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we actually need to set this? Asking since we do not currently set it for the Spicy docs.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm.. the email said:

Are my projects affected?
You have at least one project with a canonical custom domain defined. After the deprecation date, Read the ? Docs will stop defining html_baseurl Sphinx configuration, which means that you will need to define it by yourself to keep the canonical custom domain properly configured.

We found the following projects where you are a maintainer are impacted by this change:

zeek-docs

The docs you linked might be dated?

Spicy is a subproject of Zeek, so maybe there pre-notification hasn't detected that, or it's not needed for subprojects (though that would be confusing, too).

Screenshot from 2024-07-31 12-04-20

@awelzel
Copy link
Contributor Author

awelzel commented Jul 31, 2024

Custom build here: https://docs.zeek.org/en/topic-awelzel-readthedocs-maintenance/index.html

Skimming looks okay.

@awelzel awelzel merged commit 20e7d06 into master Jul 31, 2024
10 checks passed
@awelzel awelzel deleted the topic/awelzel/readthedocs-maintenance branch July 31, 2024 10:21
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

Successfully merging this pull request may close these issues.

2 participants