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 b646f82 commit 71956c3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/sphinx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ on:
workflow_dispatch:
push:
paths:
- 'docs/**' # <-- Here change to consider all files under docs
- 'docs/**'
branches:
- 'master'
jobs:
Expand All @@ -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" # <-- Here, make sure it's considering all your docs
build-command: "sphinx-build -b gettext . locales"

# Configure Git
- name: Configure git
Expand All @@ -27,7 +27,7 @@ jobs:

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

# Commit changes
- name: Commit changes
Expand Down

0 comments on commit 71956c3

Please sign in to comment.