File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -38,22 +38,10 @@ jobs:
3838
3939 - name : Sync Files to Website Repo
4040 run : |
41- # The website repo structure for Zola with languages is content/lang/*
42- # Our docs structure is now content/lang/*
43- # So we just rsync the whole content directory.
44- # We NO LONGER exclude _index*.md because the directory structure handles localization.
41+ # The website repo structure uses suffix-based localization: filename.lang.md
42+ # We rsync the whole content directory including localized _index.lang.md files.
4543 rsync -avz --delete docs-repo/content/ website/docs.zenc-lang.org/content/
4644
47- # Cleanup: Remove any residual old-style _index.<lang>.md files that might cause collisions
48- find website/docs.zenc-lang.org/content/ -name "_index.*.md" -delete
49-
50- # Rename all README.md files to _index.md for Zola
51- # This works across all languages: content/en/std/README.md -> content/en/std/_index.md
52- find website/docs.zenc-lang.org/content/ -name "README.md" | while read file; do
53- dir=$(dirname "$file")
54- mv "$file" "$dir/_index.md"
55- done
56-
5745 # Sync config.toml (Source of truth is docs/site/config.toml)
5846 cp docs-repo/site/config.toml website/docs.zenc-lang.org/config.toml
5947
You can’t perform that action at this time.
0 commit comments