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

gh-101100: Fix Sphinx warning in library/gettext.rst #112668

Merged
merged 3 commits into from
Dec 3, 2023

Conversation

hugovk
Copy link
Member

@hugovk hugovk commented Dec 3, 2023

Most of these underscore-prefixed are described as "protected", I don't think they need documenting individually, so added !.

Also fix RedHat -> Red Hat typo.

SPHINXERRORHANDLING=-n PATH=./venv/bin:$PATH sphinx-build -b html -d build/doctrees -j auto -n . build/html library/gettext.rst  2>&1 | grep WARNING | tee >(wc -l)
Doc/library/gettext.rst:260: WARNING: py:attr reference target not found: _info
Doc/library/gettext.rst:299: WARNING: py:meth reference target not found: _parse
Doc/library/gettext.rst:304: WARNING: py:attr reference target not found: _charset
Doc/library/gettext.rst:317: WARNING: py:attr reference target not found: _info
       4

📚 Documentation preview 📚: https://cpython-previews--112668.org.readthedocs.build/

Doc/library/gettext.rst Outdated Show resolved Hide resolved
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Copy link
Member

@AlexWaygood AlexWaygood left a comment

Choose a reason for hiding this comment

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

Possibly we could also reduce other references to "protected" private attributes, but the others seem less clear-cut, and I'm not an expert in gettext (maybe it's important that users know about them!), so I'm okay leaving them as they are 👍

Copy link
Member

@AlexWaygood AlexWaygood left a comment

Choose a reason for hiding this comment

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

Oh, pet peeve: no need to link to the module we're already in :)

Doc/library/gettext.rst Outdated Show resolved Hide resolved
Doc/library/gettext.rst Outdated Show resolved Hide resolved
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
@hugovk hugovk enabled auto-merge (squash) December 3, 2023 20:16
@hugovk hugovk merged commit 489aeac into python:main Dec 3, 2023
23 checks passed
@hugovk hugovk deleted the docs-fix-sphinx-warnings-gettext branch December 3, 2023 20:23
@miss-islington-app
Copy link

Thanks @hugovk for the PR 🌮🎉.. I'm working now to backport this PR to: 3.11, 3.12.
🐍🍒⛏🤖

@miss-islington-app
Copy link

Sorry, @hugovk, I could not cleanly backport this to 3.12 due to a conflict.
Please backport using cherry_picker on command line.

cherry_picker 489aeac3a2d3b347ff033334688e2f44eec7944a 3.12

@bedevere-app
Copy link

bedevere-app bot commented Dec 3, 2023

GH-112673 is a backport of this pull request to the 3.11 branch.

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Dec 3, 2023
…H-112668)

(cherry picked from commit 489aeac)

Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
@bedevere-app bedevere-app bot removed the needs backport to 3.11 only security fixes label Dec 3, 2023
@bedevere-app
Copy link

bedevere-app bot commented Dec 3, 2023

GH-112674 is a backport of this pull request to the 3.12 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.12 bug and security fixes label Dec 3, 2023
hugovk added a commit to hugovk/cpython that referenced this pull request Dec 3, 2023
…ythonGH-112668)

(cherry picked from commit 489aeac)

Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
AlexWaygood added a commit that referenced this pull request Dec 3, 2023
) (#112673)

gh-101100: Fix Sphinx warning in `library/gettext.rst` (GH-112668)
(cherry picked from commit 489aeac)

Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
hugovk added a commit that referenced this pull request Dec 3, 2023
) (#112674)

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
aisk pushed a commit to aisk/cpython that referenced this pull request Feb 11, 2024
…112668)

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Glyphack pushed a commit to Glyphack/cpython that referenced this pull request Sep 2, 2024
…112668)

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation in the Doc dir skip news
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants