Skip to content

Commit 35cf71a

Browse files
authored
lint: use sphinx flag to disable blocks (#242)
1 parent 54e8795 commit 35cf71a

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

scripts/lint.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,12 @@ touch logs/sphinxlint.txt
2020

2121
cd cpython/Doc
2222

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
2424
# update translations with fresh POT files. If version 3.11 or older,
2525
# disable new 'unnecessary-parentheses' check, not fixed before these versions.
2626
minor_version=$(git branch --show-current | sed 's|^3\.||')
2727
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"]'
3029
sphinx-intl update -p build/gettext -l ${PYDOC_LANGUAGE} > /dev/null
3130
else
3231
alias sphinx-lint='sphinx-lint --disable unnecessary-parentheses'

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

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:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy