-
-
Notifications
You must be signed in to change notification settings - Fork 32.2k
bpo-34081: Fix wrong example link that was linking to distutils #8248
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
Conversation
This can be turned on with (venv) ➜ Doc git:(master) ✗ make html
mkdir -p build
Building NEWS from Misc/NEWS.d with blurb
PATH=./venv/bin:$PATH sphinx-build -b html -d build/doctrees -W -D latex_elements.papersize= . build/html
Running Sphinx v1.7.5
loading pickled environment... done
building [mo]: targets for 0 po files that are out of date
building [html]: targets for 1 source files that are out of date
updating environment: 0 added, 2 changed, 0 removed
reading sources... [100%] whatsnew/changelog
Warning, treated as error:
/home/cpython/Doc/c-api/typeobj.rst:2327:duplicate label examples, other instance in /home/cpython/Doc/distutils/examples.rst
Makefile:43: recipe for target 'build' failed
make: *** [build] Error 2 |
I have added Thanks |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps addind a NEWs entry would be a good thing, at least to let others know warnings are now activated.
Sorry that I missed this PR comment somehow. Added a NEWS entry. Thanks |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the patch :)
I think this is outdated now since the link was fixed in bpo-34962 along with doctest in CI but I think it's good to enable this in the makefile for docs so that errors are caught in the future while building docs locally though CI catches them too. @matrixise Thoughts? |
@tirkarthi Hi, this is a good idea, we're already using Would you just remove the now-fixed-fix about examples and keep only the -W? I'll gladly merge this. |
@JulienPalard Thanks for the feedback. I have reverted my change. Azure build fails though others pass. I have merged the latest master on my local machine and there doesn't seem to be any error on building locally. Attaching the log for reference. |
I think my Azure build uses |
2c611af
to
6315d3f
Compare
Ah, |
@JulienPalard Builds are green now :) You can review the changes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This PR fixes example link in Type Objects where examples was pointing to distutils examples . Distutils also had the same label as
example
. This was pointed out in the docs CI with the warning but it doesn't cause any error and hence was ignored. I think it will be better to turn on warning as errors in sphinx docs configuration so that these errors are caught in the CI run.This is present only in master introduced as part of 9e7c921 and doesn't have to be backported.
Thanks
https://bugs.python.org/issue34081