FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

gh-101100: Fix Sphinx warning in `library/gettext.rst` by hugovk · Pull Request #112668 · python/cpython · GitHub

Repository navigation

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

Merged
hugovk merged 3 commits into
python:mainfrom
hugovk:docs-fix-sphinx-warnings-gettext
Dec 3, 2023
Merged

hugovk merged 3 commits into
python:mainfrom
hugovk:docs-fix-sphinx-warnings-gettext

Conversation

hugovk commented Dec 3, 2023 •
edited by github-actions Bot
Loading

Copy link
Copy Markdown
Member

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/

Comment thread Doc/library/gettext.rst Outdated
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>

AlexWaygood left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

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 👍

AlexWaygood left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

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

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

Copy link
Copy Markdown

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

Copy link
Copy Markdown

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 Bot commented Dec 3, 2023

Copy link
Copy Markdown

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 Bot removed the needs backport to 3.11 only security fixes label Dec 3, 2023

bedevere-app Bot commented Dec 3, 2023

Copy link
Copy Markdown

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

bedevere-app Bot removed the needs backport to 3.12 only 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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL