GeezerVison is showing github.com — Remove unnecessary usages of `.. index::` directives in `Doc/library/uuid.rst` · Issue #130461 · python/cpython
Remove unnecessary usages of .. index:: directives in Doc/library/uuid.rst #130461ActivityMr-Sunglasses commented on Feb 22, 2025 picnixz commented on Feb 22, 2025
I've investigated this issue by removing .. index and yeah they are intersphinxed, by removing them they does not show on the index page, do I find a fix, by adding .. index above .. function:: this will fix it.
Someone might rely on them in the wild, although I doubt (because to know about it, you need to know about the RST source itself). However, there could some crawlers that do the task automatically. I don't know whether it's good or not to remove them (I feel they just duplicate the .. function:: uuid1 entry, so it's not really useful).
Note that searching uuid1 would give you the function and not the index. The index would be at the end of the search results (see https://docs.python.org/3/search.html?q=uuid1 for instance).
@AA-Turner do you think we can just remove those .. index::? I think it's pretty the only place in the docs where we use both an index and a function directive. Other places benefit from .. index:: as they use other search terms but in this case, I don't think it's really needed. picnixz commented on Feb 22, 2025 Also, the plain rendering of those indices is not really good. I think it's better to just keep the entry with (in module uuid) (this is the entry associated with .. function:: uuidX()).

Reacted by Kanishk Pachauri Mr-Sunglasses commented on Feb 22, 2025
Also, the plain rendering of those indices is not really good. I think it's better to just keep the entry with (in module uuid) (this is the entry associated with .. function:: uuidX()).

Yes totally agree, the plain entry really looks bad, so we can totally remove it if we want, (in module uuid) entry is good and enough at all. changed the title [-]Fix locations of `.. index::` directives usage in `Doc/library/uuid.rst`[/-] [+]Fix locations or remove usages of `.. index::` directives usage in `Doc/library/uuid.rst`[/+] on Feb 22, 2025changed the title [-]Fix locations or remove usages of `.. index::` directives usage in `Doc/library/uuid.rst`[/-] [+]Fix locations or remove usages of `.. index::` directives in `Doc/library/uuid.rst`[/+] on Feb 22, 2025hugovk commented on Feb 23, 2025
@AA-Turner do you think we can just remove those .. index::? I think it's pretty the only place in the docs where we use both an index and a function directive. Other places benefit from .. index:: as they use other search terms but in this case, I don't think it's really needed.
Remove, and if anyone complains, re-add them? (aka a scream test :) picnixz commented on Feb 23, 2025 Ok, let's just outright remove them. Those could even be legacy added and inspired from the old LaTeX docs (though I haven't checked). @Mr-Sunglasses Could you amend your PR and simply remove the .. index:: directives please? You can also add a NEWS entry saying that the corresponding indices were removed from the intersphinx inventory just in case (that way, if people want to scream, they know on which issue to scream) changed the title [-]Fix locations or remove usages of `.. index::` directives in `Doc/library/uuid.rst`[/-] [+]Remove unnecessary usages of `.. index::` directives in `Doc/library/uuid.rst`[/+] on Feb 23, 2025Mr-Sunglasses commented on Feb 24, 2025
Ok, let's just outright remove them. Those could even be legacy added and inspired from the old LaTeX docs (though I haven't checked). @Mr-Sunglasses Could you amend your PR and simply remove the .. index:: directives please? You can also add a NEWS entry saying that the corresponding indices were removed from the intersphinx inventory just in case (that way, if people want to scream, they know on which issue to scream)
Sure @picnixz I'l do it in #130526 PR :-) added a commit that references this issue on Feb 25, 2025gh-130461: Remove unnecessary usages of `.. index::` directives in Do…
MetadataMetadataStatusShow more project fields
DevelopmentNo branches or pull requestsIssue actions
|