cpython/Doc/tools/extensions
Miss Islington (bot) 5ee8344aa2
gh-97607: Fix content parsing in the impl-detail reST directive (GH-97652)
* Don't parse content as arg in the impl-detail directive

This does not change the (untranslated) output,
but ensures that the doctree node metadata is correct.
which fixes gh-97607 with the text not being translated.
It also simplifies the code and logic
and makes it consistant with the docutils built-in directives.

* Remove unused branch from impl-detail directive handling no-content case

This is not used anywhere in the docs and lacks a clear use case,
and is more likely a mistake which is now flagged at build time.
This simplifies the logic from two code paths to one,
and makes the behavior consistant with similar built-in directives
(e.g. the various admonition types).

* Further simplify impl-detail reST directive code
(cherry picked from commit e8165d47b8)

Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
2022-10-01 22:27:56 -07:00
..
asdl_highlight.py Doc: fix import of asdl.py when called from outside Doc/. (GH-21529) 2020-07-20 09:48:40 +02:00
c_annotations.py gh-91271: Document which parts of structs are in limited API/stable ABI (GH-32196) (GH-95711) 2022-08-05 17:30:51 +02:00
escape4chm.py bpo-46463: Fixes escape4chm.py script used when building the CHM documentation file (GH-30768) 2022-01-21 14:11:47 -08:00
glossary_search.py bpo-43778: Fix Sphinx glossary_search extension (GH-25286) 2021-04-09 00:07:01 +02:00
patchlevel.py Issues #29349: Merge Py 2.6+ compatibility from 3.6 2017-01-29 23:37:24 +00:00
peg_highlight.py bpo-46231: Remove invalid_* rules preceded by more tokens from the grammar docs (GH-30341) 2022-01-04 03:03:46 -08:00
pyspecific.py gh-97607: Fix content parsing in the impl-detail reST directive (GH-97652) 2022-10-01 22:27:56 -07:00
suspicious.py gh-86986: Drop compatibility support for Sphinx 2 (GH-93737) 2022-06-21 10:51:23 -07:00