Skip to content

Commit 886bdc5

Browse files
authored
lint.sh: disable literal block to lint
1 parent a59954e commit 886bdc5

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

scripts/lint.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,17 @@ cd "$rootdir"
1818
mkdir -p logs
1919
touch logs/sphinxlint.txt
2020

21+
# Disable literal blocks and update PO
22+
sed -i "s/^\s*'literal-block',/s/ '/ #'/" cpython/Doc/conf.py
23+
./scripts/generate_templates.sh
24+
sphinx-intl update -d cpython/Doc/locale -l pt_BR
25+
2126
cd cpython/Doc/locale/${PYDOC_LANGUAGE}/LC_MESSAGES
2227
sphinx-lint | tee $(realpath "$rootdir/logs/sphinxlint.txt")
28+
29+
# Undo changes that disabled literal blocks
30+
git checkout *.po
31+
2332
cd $OLDPWD
2433

2534
# Remove empty file

0 commit comments

Comments
 (0)