Skip to content

Commit 6bd4cfb

Browse files
authored
Merge pull request #15 from SongshGeo/dev
fix(ci): 🐛 Update documentation build process to clean site direc…
2 parents 5171129 + 40f2abb commit 6bd4cfb

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

.github/workflows/docs.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,15 @@ jobs:
3636
- name: Build documentation (en + zh)
3737
run: |
3838
source $HOME/.cargo/env
39+
# Clean site directory to ensure fresh build
40+
rm -rf site
41+
# Build English documentation (outputs to site/)
3942
uv run mkdocs build -f mkdocs.en.yml
43+
# Build Chinese documentation (outputs to site/zh/)
4044
uv run mkdocs build -f mkdocs.zh.yml
45+
# Verify both versions were built
46+
ls -la site/
47+
ls -la site/zh/ || echo "Warning: Chinese docs not found"
4148
4249
- name: Setup Pages
4350
uses: actions/configure-pages@v4

0 commit comments

Comments
 (0)