X Tutup
Skip to content

gh-97908: CAPI docs: Remove repeated struct names from member docs#100054

Merged
encukou merged 7 commits intopython:mainfrom
encukou:struct-name-repeats
May 29, 2023
Merged

gh-97908: CAPI docs: Remove repeated struct names from member docs#100054
encukou merged 7 commits intopython:mainfrom
encukou:struct-name-repeats

Conversation

@encukou
Copy link
Member

@encukou encukou commented Dec 6, 2022

Members with repeated struct names were interpreted as e.g. PyType_Spec.PyType_Spec.name,
showing up incorrectly wrong in the search and index, and complicating automation.

This removes the duplicated names, but keeps old HTML anchors so that external links continue to work.
I don't see a better way than raw HTML to add custom anchors with dots.

Most PyMemberDef fields were already fixed in GH-99014, old anchors are added for those too.

Edit: PyMemberDef and PyGetSetDef were only marked up in 3.12 (gh-97909), so they don't need “old” URL anchors.

Loading
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.

4 participants

X Tutup