File tree 1 file changed +11
-6
lines changed
1 file changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -18,18 +18,23 @@ cd "$rootdir"
18
18
mkdir -p logs
19
19
touch logs/sphinxlint.txt
20
20
21
- # Disable literal blocks and update PO
22
- sed -i " /^\s*'literal-block',/s/ '/ #'/" cpython/Doc/conf.py
23
- ./scripts/generate_templates.sh
24
- sphinx-intl update -d cpython/Doc/locale -p cpython/Doc/build/gettext -l pt_BR
21
+ cd cpython/Doc
25
22
26
- cd cpython/Doc/locale/${PYDOC_LANGUAGE} /LC_MESSAGES
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 -D gettext_compact=0 -d build/.doctrees . build/gettext'
27
+ make -C .. build ALLSPHINXOPTS=" $opts "
28
+ # Update translation files with latest POT
29
+ sphinx-intl update -d locale -p build/gettext -l pt_BR
30
+
31
+ cd ${PYDOC_LANGUAGE} /LC_MESSAGES
27
32
sphinx-lint | tee $( realpath " $rootdir /logs/sphinxlint.txt" )
28
33
29
34
# Undo changes that disabled literal blocks
30
35
git checkout * .po
31
36
32
- cd $OLDPWD
37
+ cd " $rootdir "
33
38
34
39
# Remove empty file
35
40
if [ ! -s logs/sphinxlint.txt ]; then
You can’t perform that action at this time.
0 commit comments