diff --git a/scripts/lint.sh b/scripts/lint.sh index 3748d01a3..721790e5d 100755 --- a/scripts/lint.sh +++ b/scripts/lint.sh @@ -20,13 +20,12 @@ touch logs/sphinxlint.txt cd cpython/Doc -# If version is 3.12 or newer, then disable literal-block, generate POT and +# If version is 3.12 or newer, then generate POT disabling literal blocks and # update translations with fresh POT files. If version 3.11 or older, # disable new 'unnecessary-parentheses' check, not fixed before these versions. minor_version=$(git branch --show-current | sed 's|^3\.||') if [ $minor_version -ge 12 ]; then - sed -i "/^\s*'literal-block',/s/ '/ #'/" conf.py - make gettext SPHINXOPTS='-q' + make gettext SPHINXOPTS='-q -Dgettext_additional_targets=["index"]' sphinx-intl update -p build/gettext -l ${PYDOC_LANGUAGE} > /dev/null else alias sphinx-lint='sphinx-lint --disable unnecessary-parentheses'
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies: