Closed
Description
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
- GH-97950: Use new-style index directive ('module') #103996
- GH-97950: Allow translation of index directive content #104000
- [3.11] GH-97950: Allow translation of index directive content (GH-104000) #104151
- GH-97950: Use new-style index directive ('keyword') #104153
- [3.11] GH-97950: Use new-style index directive ('module') (GH-103996) #104154
- [3.11] GH-97950: Use new-style index directive ('keyword') (GH-104153) #104155
- GH-97950: Use new-style index directive ('operator') #104156
- [3.11] GH-97950: Use new-style index directive ('operator') (GH-104156) #104157
- GH-97950: Use new-style index directive ('object') #104158
- [3.11] GH-97950: Use new-style index directive ('object') (GH-104158) #104159
- GH-97950: Use new-style index directive ('exception') #104160
- [3.11] GH-97950: Use new-style index directive ('exception') (GH-104160) #104161
- GH-97950: Use new-style index directive ('statement') #104162
- [3.11] GH-97950: Use new-style index directive ('statement') (GH-104162) #104163
- GH-97950: Use new-style index directive ('builtin') #104164
- [3.11] GH-97950: Use new-style index directive ('builtin') (GH-104164) #104221
- [3.11] GH-97950: Fix old-style index directive in Doc/library/imp.rst #107246