Skip to content

Commit a473d85

Browse files
committed
fix: www deploy
1 parent 57002da commit a473d85

11 files changed

Lines changed: 1042 additions & 4 deletions

File tree

.github/workflows/sync-www.yml

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,21 +32,30 @@ jobs:
3232
path: www
3333
fetch-depth: 0
3434

35-
- name: Sync content
35+
- name: Sync content and site infrastructure
3636
run: |
37+
# Create targets
3738
mkdir -p www/docs.zenc-lang.org/content/tour/
38-
# Copy all generated files to the target directory
39+
mkdir -p www/docs.zenc-lang.org/translations/
40+
mkdir -p www/docs.zenc-lang.org/templates/
41+
42+
# Sync docs content
3943
cp -r reference/* www/docs.zenc-lang.org/content/tour/
4044
45+
# Sync site infrastructure (overwriting if exists)
46+
cp -r site/config.toml www/docs.zenc-lang.org/
47+
cp -r site/translations/* www/docs.zenc-lang.org/translations/
48+
cp -r site/templates/* www/docs.zenc-lang.org/templates/
49+
4150
- name: Commit and Push
4251
run: |
4352
cd www
4453
git config user.name "github-actions[bot]"
4554
git config user.email "github-actions[bot]@users.noreply.github.com"
46-
git add docs.zenc-lang.org/content/tour/
55+
git add docs.zenc-lang.org/
4756
if git diff --staged --quiet; then
4857
echo "No changes to commit"
4958
else
50-
git commit -m "docs: Sync language reference from zenc-lang/docs"
59+
git commit -m "docs/site: Sync language reference and i18n infrastructure"
5160
git push
5261
fi

site/config.toml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
# THE ZEN C DOCUMENTATION CONFIG
2+
base_url = "https://docs.zenc-lang.org"
3+
default_language = "en"
4+
5+
# THEME SETTINGS
6+
compile_sass = false
7+
highlight_code = true
8+
highlight_theme = "css"
9+
10+
[extra]
11+
version = "v0.4.4"
12+
github_url = "https://github.com/zenc-lang/zenc"
13+
14+
[markdown]
15+
render_emoji = true
16+
external_links_target_blank = true
17+
highlight_code = true
18+
highlight_theme = "css"
19+
render_with_code_block_copy_button = true
20+
21+
[search]
22+
build_search_index = true
23+
index_format = "elasticlunr_javascript"
24+
25+
[languages.en]
26+
title = "Zen C Documentation"
27+
description = "Official Grimoire for the Zen C Systems Language."
28+
29+
[languages.de]
30+
title = "Zen C Dokumentation"
31+
description = "Offizielles Grimoire für die Zen C Systemsprache."
32+
33+
[languages.es]
34+
title = "Documentación de Zen C"
35+
description = "Grimorio oficial del lenguaje de sistemas Zen C."
36+
37+
[languages.it]
38+
title = "Documentazione Zen C"
39+
description = "Grimorio ufficiale per il linguaggio di sistema Zen C."
40+
41+
[languages.pt]
42+
title = "Documentação Zen C"
43+
description = "Grimório oficial para a linguagem de sistemas Zen C."
44+
45+
[languages.ru]
46+
title = "Документация Zen C"
47+
description = "Официальный гримуар системного языка Zen C."
48+
49+
[languages."zh-cn"]
50+
title = "Zen C 文档"
51+
description = "Zen C 系统语言官方手册。"
52+
53+
[languages."zh-tw"]
54+
title = "Zen C 文件"
55+
description = "Zen C 系統語言官方手冊。"

0 commit comments

Comments
 (0)