File tree Expand file tree Collapse file tree 1 file changed +16
-2
lines changed Expand file tree Collapse file tree 1 file changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -18,9 +18,23 @@ cd "$rootdir"
1818mkdir -p logs
1919touch logs/sphinxlint.txt
2020
21- cd cpython/Doc/locale/${PYDOC_LANGUAGE} /LC_MESSAGES
21+ cd cpython/Doc
22+
23+ # Disable literal blocks and update PO
24+ sed -i " /^\s*'literal-block',/s/ '/ #'/" conf.py
25+ # TODO: use `make -C .. gettext` when there are only Python >= 3.12
26+ opts=' -E -b gettext -q -D gettext_compact=0 -d build/.doctrees . build/gettext'
27+ make build ALLSPHINXOPTS=" $opts "
28+ # Update translation files with latest POT
29+ sphinx-intl update -d locale -p build/gettext -l pt_BR > /dev/null
30+
31+ cd locale/${PYDOC_LANGUAGE} /LC_MESSAGES
2232sphinx-lint | tee $( realpath " $rootdir /logs/sphinxlint.txt" )
23- cd $OLDPWD
33+
34+ # Undo changes that disabled literal blocks
35+ git checkout * .po
36+
37+ cd " $rootdir "
2438
2539# Remove empty file
2640if [ ! -s logs/sphinxlint.txt ]; then
You can’t perform that action at this time.
0 commit comments