Skip to content

Commit

Permalink
Update sphinx.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
cristiangirlea committed Jun 29, 2023
1 parent d5ca1f3 commit 53ea8d3
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/sphinx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
# Build documentation with gettext builder to generate .pot files
- uses: ammaraskar/sphinx-action@master
with:
build-command: "sphinx-build -b gettext . locales"
build-command: "sphinx-build -b gettext . locales"

# Configure Git
- name: Configure git
Expand All @@ -25,13 +25,9 @@ jobs:
- name: Install gettext
run: sudo apt install gettext

# List files in locales directory to check if .pot file is present
- name: List files in locales directory
run: ls -l locales

# Update the .po files with the new .pot file using msgmerge
- name: Run msgmerge
run: find locales -regex ".*/LC_MESSAGES/.*\.po$" | xargs -I "{}" msgmerge -U {} locales/index.pot --backup=off
run: find locales -type f -path '*/LC_MESSAGES/*.po' -execdir msgmerge -U {} index.pot --backup=off \;

# Commit changes
- name: Commit changes
Expand Down

0 comments on commit 53ea8d3

Please sign in to comment.