-
-
Notifications
You must be signed in to change notification settings - Fork 31.2k
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
inconsistencies in docs builds (Sphinx 2) #81034
Comments
In working on some docs contributions, I've run into issues where docs builds are failing in CI differently than they're failing locally. Locally, running cpython/.azure-pipelines/docs-steps.yml Line 15 in 1d4b160
When running with Sphinx 2, this error emerges when running Exception occurred: First, we probably want to make these processes consistent (define the dependencies in exactly one place). Second, we should probably determine why the doc builds are failing on Sphinx 2 and update the |
Hi Jaraco, We're using sphinx 1.8 in production (docs.python.org) but we're ready for sphinx 2 so we should upgrade, and when we'll upgrade, we'll upgrade it everywhere. You're right, I've just locally ran sphinx 2.0.0 on 071cbd4 (the current tip of your PR) and I'm not getting any error, which one are you getting? |
They're failing because in sphinx 2 old and deprecated (since 1.6) custom logging API was removed. So all Builder.warn calls will have to be changed to use logging module (this applies to other similar methods, luckily they had the same names as logging methods). |
See also #13579 that replaces self.warn with self.logger.warn in Doc/tools/extensions/suspicious.py |
The issue occurs on 2347d3a with
|
I believe the issue is only triggered if you actually have some suspicious markup in your documentation (which is why your plain build on Sphinx 2 appears to work). Remove some lines from Doc/tools/susp-ignored.csv to trigger it. |
Closing this old issue, See #86404. |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: