Skip to content

Commit

Permalink
Use make to run gettext sphinx builder (#103)
Browse files Browse the repository at this point in the history
* Use make to run gettext sphinx builder

* Fix SPHINXOPTS variable name

* Specify BUILDER=gettext
  • Loading branch information
rffontenelle authored Dec 14, 2024
1 parent 2480a33 commit a5e2e19
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -143,14 +143,14 @@ jobs:
working-directory: cpython/Doc
run: |
(cd locales; rm -r pot;)
sphinx-build -E -b gettext -D gettext_compact=0 -d build/.doctrees . locales/pot
make BUILDER=gettext SPHINXOPTS='-E -D gettext_compact=0 -d build/.doctrees-gettext' build
mv build/gettext locales/pot
- name: Include obsolete catalog templates (pot files) for removal
run: |
deleted_files=$(git status -s | grep ^' D' | cut -d' ' -f3)
if [ -n "$deleted_files" ]; then git rm -v $deleted_files; else echo "no POT files to remove"; fi
- name: Remove problematic source messages from POT files
run: |
scripts/remove-msgid.sh cpython/Doc/locales/pot
Expand Down

0 comments on commit a5e2e19

Please sign in to comment.