cpython/Doc/tools/extensions
Miss Islington (bot) 1b736838e6
gh-101845: pyspecific: Fix i18n for availability directive (GH-101846)
pyspecific: Fix i18n for availability directive

If the directive has content, the previous code would nest paragraph
nodes from that content inside a general paragraph node, which confuses
Sphinx and leads it to drop the content when translating. Instead, use a
container node for the body.

Also use set_source_info so that any warnings have location info.
(cherry picked from commit 6ef6915d35)

Co-authored-by: Jean Abou-Samra <jean@abou-samra.fr>
2023-02-12 09:28:20 -08: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 bpo-47115: Document which parts of structs are in limited API/stable ABI (GH-32196) 2022-04-06 16:50:45 +02:00
escape4chm.py bpo-46463: Fixes escape4chm.py script used when building the CHM documentation file (GH-30768) 2022-01-21 21:51:15 +00: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 10:42:15 +00:00
pyspecific.py gh-101845: pyspecific: Fix i18n for availability directive (GH-101846) 2023-02-12 09:28:20 -08:00
suspicious.py gh-86986: Drop compatibility support for Sphinx 2 (GH-93737) 2022-06-21 10:50:47 -07:00