Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

DOC: Clarify the difference between document and section references#26405

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
story645 merged 1 commit intomatplotlib:mainfromtimhoffm:doc-ref
Jul 30, 2023

Conversation

timhoffm
Copy link
Member

No description provided.

Directive Links target Representation in rendered HTML
========= =========================== ===========================================
``:doc:`` document link to a page
``:ref:`` ReST label (associated with link to an anchor associated with a heading
Copy link
Member

Choose a reason for hiding this comment

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

In line 225, this is called a section reference name and the way we name this thing should be consistent.
image

I vote forreference label since that's what sphinx calls em in their docshttps://www.sphinx-doc.org/en/master/usage/restructuredtext/roles.html#cross-referencing-arbitrary-locations

melissawm reacted with thumbs up emoji
Copy link
MemberAuthor

Choose a reason for hiding this comment

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

Done.

@timhoffmtimhoffmforce-pushed thedoc-ref branch 2 times, most recently from58a35aa to2c2a7b9CompareJuly 28, 2023 23:22
Copy link
Member

@story645story645 left a comment

Choose a reason for hiding this comment

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

Can self merge or sort out parenthesis and then self merge.

Comment on lines 203 to 204
|ref-dir|_ reference label (associated link to an anchor associated with a heading
with a section)
Copy link
Member

Choose a reason for hiding this comment

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

I'm generally not a fan of these long parenthesis - what are we trying to get at here?

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

Usually, I'm not a fan of parantheses here as well.

Motivation: The technical reference point is the label, but semantically we refer to the associated section. I wanted to

  • have the focus on the label, because that's what you have to specify in the role
  • also give the context that the label represents a section

The parantheses should lower the importance of the context information wrt to the label itself.

Copy link
Member

Choose a reason for hiding this comment

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

I think that info comes across in the where does it link information? And that we have an example underneath?

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

You are right. I've removed the parenthesis including its content.

@story645story645 added this to thev3.7-doc milestoneJul 30, 2023
@story645story645 added the Documentation: devdocsfiles in doc/devel labelJul 30, 2023
@story645story645 merged commitc36a03f intomatplotlib:mainJul 30, 2023
meeseeksmachine pushed a commit to meeseeksmachine/matplotlib that referenced this pull requestJul 30, 2023
meeseeksmachine pushed a commit to meeseeksmachine/matplotlib that referenced this pull requestJul 30, 2023
@timhoffmtimhoffm deleted the doc-ref branchJuly 30, 2023 06:08
timhoffm added a commit that referenced this pull requestJul 30, 2023
…405-on-v3.7.2-docBackport PR#26405 on branch v3.7.2-doc (DOC: Clarify the difference between document and section references)
timhoffm added a commit that referenced this pull requestJul 30, 2023
…405-on-v3.7.xBackport PR#26405 on branch v3.7.x (DOC: Clarify the difference between document and section references)
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@story645story645story645 approved these changes

Assignees
No one assigned
Labels
Projects
None yet
Milestone
v3.7-doc
Development

Successfully merging this pull request may close these issues.

2 participants
@timhoffm@story645

[8]ページ先頭

©2009-2025 Movatter.jp