cpython/Doc/tools
Miss Islington (bot) eb5cdf6246
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-22 20:05:47 +01:00
..
extensions gh-97607: Fix content parsing in the impl-detail reST directive (GH-97652) 2022-10-22 20:05:47 +01:00
static bpo-41028: Doc: Move switchers to docsbuild-scripts. (GH-20969) 2020-11-07 12:28:31 +01:00
templates gh-93851: Fix all broken links in Doc/ (GH-93853) (GH-94076) 2022-06-21 21:06:05 +02:00
rstlint.py [3.11] gh-93675: Fix typos in `Doc/` (GH-93676) (GH-94079) 2022-06-21 21:22:27 +02:00
susp-ignored.csv gh-86404: [doc] A make sucpicious false positive. (GH-93710) 2022-06-11 04:06:44 -07:00