File tree 1 file changed +2
-3
lines changed
1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -20,13 +20,12 @@ touch logs/sphinxlint.txt
20
20
21
21
cd cpython/Doc
22
22
23
- # If version is 3.12 or newer, then disable literal-block, generate POT and
23
+ # If version is 3.12 or newer, then generate POT disabling literal blocks and
24
24
# update translations with fresh POT files. If version 3.11 or older,
25
25
# disable new 'unnecessary-parentheses' check, not fixed before these versions.
26
26
minor_version=$( git branch --show-current | sed ' s|^3\.||' )
27
27
if [ $minor_version -ge 12 ]; then
28
- sed -i " /^\s*'literal-block',/s/ '/ #'/" conf.py
29
- make gettext SPHINXOPTS=' -q'
28
+ make gettext SPHINXOPTS=' -q -Dgettext_additional_targets=["index"]'
30
29
sphinx-intl update -p build/gettext -l ${PYDOC_LANGUAGE} > /dev/null
31
30
else
32
31
alias sphinx-lint=' sphinx-lint --disable unnecessary-parentheses'
You can’t perform that action at this time.
0 commit comments