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

Remove include:: replacements hack #2875

Merged
merged 2 commits into from
Nov 18, 2024
Merged

Conversation

rtobar
Copy link
Collaborator

@rtobar rtobar commented Nov 18, 2024

We currently need to replace the include:: directives in the cpython documentation source files to fix an issue that sphinx/docutils have with relative source files after changing the app.srcdir in our conf.py.

Instead of doing this, let's define the app.srcdir property as an absolute path. This removes the issue altogether, yielding a correct build without the need to modify the documentation source files.

This change seems to have the nice side effect that successive builds are not incremental rather than starting from scratch.

Edit: additionally, we now define sphinx's app.srcdir as a Path, which seems to be a requirement at least in 8.1.3, which is what we''l use for building the 3.13 docs. See sphinx-doc/sphinx#13018.

Closes #1844

We currently need to replace the include:: directives in the cpython
documentation source files to fix an issue that sphinx/docutils have
with relative source files after changing the app.srcdir in our conf.py.

Instead of doing this, let's define the app.srcdir property as an
absolute path. This removes the issue altogether, yielding a correct
build without the need to modify the documentation source files.

This change seems to have the nice side effect that successive builds
are not incremental rather than starting from scratch.

Signed-off-by: Rodrigo Tobar <[email protected]>
This doesn't break anything, and seems to be required at least in Sphinx
8.1.3, most probably some earlier versions too (we're in 7.2.6).

Signed-off-by: Rodrigo Tobar <[email protected]>
Copy link
Collaborator

@cmaureir cmaureir left a comment

Choose a reason for hiding this comment

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

Muchas, muchas gracias 🎉

@rtobar rtobar merged commit 875e5df into python:3.12 Nov 18, 2024
4 checks passed
@rtobar rtobar deleted the remove-include-seds branch November 22, 2024 11:25
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.

sed en Makefile y GitHub Action
2 participants