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

Docstring clarifications #9877

Merged
merged 6 commits into from Sep 24, 2022
Merged

Docstring clarifications #9877

merged 6 commits into from Sep 24, 2022

Conversation

Arthur-Milchior
Copy link
Contributor

Subject: Clarifying some documentation sentences that I found confusing

Feature or Bugfix

  • Refactoring

### Branch
Before posting a pull request, please choose a appropriate branch:

  • Others: X.Y

While trying to understand Sphinx, I had a few troubles and tried to improve
what I found difficult.

In particular:

  • Why "addnodes" where described as docutil nodes
  • whether "centered" is for deprecated text or whether it is deprecated
  • what is pending_xref_condition
  • what means "forcedly"
  • Why some script can take no filename while it is marked as a str argument
    (by consistency, I changed similarly css)
  • why ProductionList counted the number of rules
  • how come verify_needs_extensions actually verifies

While trying to understand Sphinx, I had a few troubles and tried to improve
what I found difficult.

In particular:
* Why "addnodes" where described as docutil nodes
* whether "centered" is for deprecated text or whether it is deprecated
* what is pending_xref_condition
* what means "forcedly"
* Why some script can take no filename while it is marked as a str argument
(by consistency, I changed similarly css)
* why ProductionList counted the number of rules
* how come verify_needs_extensions actually verifies
Copy link
Contributor

@jakobandersen jakobandersen left a comment

Choose a reason for hiding this comment

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

Thanks a lot for all these updates!

sphinx/addnodes.py Outdated Show resolved Hide resolved
sphinx/addnodes.py Outdated Show resolved Hide resolved
sphinx/addnodes.py Outdated Show resolved Hide resolved
sphinx/addnodes.py Outdated Show resolved Hide resolved
sphinx/addnodes.py Outdated Show resolved Hide resolved
sphinx/application.py Outdated Show resolved Hide resolved
sphinx/builders/latex/transforms.py Outdated Show resolved Hide resolved
sphinx/extension.py Outdated Show resolved Hide resolved
sphinx/extension.py Outdated Show resolved Hide resolved
sphinx/extension.py Outdated Show resolved Hide resolved
Copy link
Member

@tk0miya tk0miya left a comment

Choose a reason for hiding this comment

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

LGTM with nits.

sphinx/builders/latex/transforms.py Outdated Show resolved Hide resolved
@tk0miya tk0miya added this to the 4.4.0 milestone Nov 21, 2021
Co-authored-by: Jakob Lykke Andersen <jakobandersen@users.noreply.github.com>
@Arthur-Milchior
Copy link
Contributor Author

Thanks a lot for those reviews. Sorry for not paying as much attention as I should have to the difference between directive and roles. I'll try to do better if I submit again (which will probably be the case, given that I've still not been able to do understand how to do what I was trying to do in the first place)

@tk0miya tk0miya modified the milestones: 4.4.0, 4.5.0 Jan 15, 2022
@tk0miya tk0miya modified the milestones: 4.5.0, 5.0.0 Mar 27, 2022
@tk0miya tk0miya modified the milestones: 5.0.0, 5.x May 22, 2022
@tk0miya tk0miya changed the base branch from 4.x to 5.x May 22, 2022 10:25
@AA-Turner AA-Turner modified the milestones: 5.x, some future version May 23, 2022
Co-authored-by: Takeshi KOMIYA <i.tkomiya@gmail.com>
Co-authored-by: Jakob Lykke Andersen <jakobandersen@users.noreply.github.com>
AA-Turner and others added 2 commits September 24, 2022 15:16
# Conflicts:
#	sphinx/addnodes.py
#	sphinx/application.py
@AA-Turner AA-Turner modified the milestones: some future version, 5.2.0 Sep 24, 2022
@AA-Turner
Copy link
Member

Thanks Arthur!

A

@AA-Turner AA-Turner changed the title NF: Code documentation clarification Docstring clarifications Sep 24, 2022
@AA-Turner AA-Turner merged commit 6508121 into sphinx-doc:5.x Sep 24, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 25, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants