Skip to content

Commit

Permalink
ci(sphinx-build): add support for i18n build
Browse files Browse the repository at this point in the history
Signed-off-by: Akshay Mestry <xa@mes3.dev>
  • Loading branch information
xames3 committed Sep 13, 2024
1 parent 138798c commit e42bfef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish-dev-pages.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ jobs:
# -q: Run in quiet mode, with minimal output.
run: |
echo "Building Sphinx documentation..."
sphinx-build -EWaq -b html ${{ env.SOURCE_DIR }} ${{ env.OUTPUT_DIR }}
sphinx-build -Eaq --builder html --define language=en ${{ env.SOURCE_DIR }} ${{ env.OUTPUT_DIR }}/en && sphinx-build -Eaq --builder html --define language=es ${{ env.SOURCE_DIR }} ${{ env.OUTPUT_DIR }}/es
# Step 5: Deploy the built HTML files to the specified branch (GitHub Pages).
- name: DEV | Deploy to GitHub Pages
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-feature-pages.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ jobs:
# -q: Run in quiet mode, with minimal output.
run: |
echo "Building Sphinx documentation..."
sphinx-build -EWaq -b html ${{ env.SOURCE_DIR }} ${{ env.OUTPUT_DIR }}
sphinx-build -Eaq --builder html --define language=en ${{ env.SOURCE_DIR }} ${{ env.OUTPUT_DIR }}/en && sphinx-build -Eaq --builder html --define language=es ${{ env.SOURCE_DIR }} ${{ env.OUTPUT_DIR }}/es
# Step 5: Deploy the built HTML files to the specified branch (GitHub Pages).
- name: FEAT | Deploy to GitHub Pages
Expand Down

0 comments on commit e42bfef

Please sign in to comment.