Skip to content

Docs use deprecated Sphinx .. index:: entries #97950

Closed

Description

@ezio-melotti

In #97921 (comment) @hugovk noticed that Sphinx has deprecated some of the .. index:: entry types:

module, keyword, operator, object, exception, statement, builtin
These all create two index entries. For example, module: hashlib creates the entries module; hashlib and hashlib; module. (These are Python-specific and therefore deprecated.)

Currently we are using some of those in the docs, so we have at least 3 options:

  • keep using them if it's a silent deprecation with no removal plans
  • reimplement them in pyspecific.py, if we want to keep use them (and if it's possible to reimplement them)
  • remove them and replace them with the non-deprecated ones

(cc @AA-Turner)

Linked PRs

Activity

  1. added
    type-bug
    docs
    on Oct 6, 2022
  2. moved this to Todo in Sprinton Oct 6, 2022
  3. AA-Turner commented on Oct 13, 2022

    @AA-Turner
    Member

    I want to remove them eventually, I think the best option may be (3) as index entry types are quite hard to patch into Sphinx.

    A

  4. added
    3.11
    3.10 (EOL)
    3.12
    on Oct 13, 2022
  5. mmmarcos commented on Jan 26, 2023

    @mmmarcos

    In principle, these deprecated index-types can all be replaced with the more generic pair index-type. However, this has already been done/attempted in #18004 and it was not merged because of a Sphinx issue : the python index-types (module, ...) are automatically translated in the index page while this is not the case when using pair: module; ...: (see sphinx-doc/sphinx#6970 (comment)).

  6. added
    3.13
    3.11
    and removed
    3.11
    3.10 (EOL)
    on Apr 29, 2023
  7. 30 remaining items

  8. added a commit that references this issue on May 4, 2023
  9. added a commit that references this issue on May 4, 2023
  10. added a commit that references this issue on May 4, 2023
  11. added a commit that references this issue on May 6, 2023
  12. added a commit that references this issue on May 6, 2023
  13. added a commit that references this issue on May 6, 2023
  14. added
    3.11
    and removed
    3.11
    3.13
    on May 6, 2023
  15. hugovk commented on May 6, 2023

    @hugovk
    Member

    @AA-Turner Thanks for the PRs, all merged and backported to 3.11! Are we good to close this now or is there more to come?

  16. AA-Turner commented on May 6, 2023

    @AA-Turner
    Member

    All done I believe, thanks all!

    A

  17. added a commit that references this issue on May 8, 2023
  18. added a commit that references this issue on Jul 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.113.12docstype-bug

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions