Skip to content

Commit 2bd55c3

Browse files
committed
💚 Fix documents' CI builder.
1 parent 41a0862 commit 2bd55c3

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+11620
-137
lines changed

.gitattributes

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# Documentation site assets (not source code)
2-
docs/landing/** linguist-documentation
2+
docs/theme/** linguist-documentation
33
docs/**/book.toml linguist-documentation
44
docs/**/SUMMARY.md linguist-documentation
5-
.github/workflows/docs.yml linguist-documentation

.github/workflows/docs.yml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Deploy Documentation
22

33
on:
44
push:
5-
branches: [next]
5+
branches: [master]
66
paths:
77
- 'docs/**'
88
- '.github/workflows/docs.yml'
@@ -28,22 +28,22 @@ jobs:
2828
with:
2929
mdbook-version: '0.5.2'
3030

31-
- name: Build English docs
32-
run: mdbook build docs/en
33-
34-
- name: Build Simplified Chinese docs
35-
run: mdbook build docs/zh-hans
36-
37-
- name: Build Traditional Chinese docs
38-
run: mdbook build docs/zh-hant
31+
- name: Build all language docs
32+
run: |
33+
for lang in en zh-hans zh-hant fr es ru ar ja ko; do
34+
echo "Building $lang..."
35+
mdbook build docs/$lang
36+
done
3937
4038
- name: Assemble site
4139
run: |
42-
mkdir -p _site
43-
cp docs/landing/index.html _site/
44-
cp -r target/docs/en _site/en
45-
cp -r target/docs/zh-hans _site/zh-hans
46-
cp -r target/docs/zh-hant _site/zh-hant
40+
mkdir -p _site/theme
41+
for lang in en zh-hans zh-hant fr es ru ar ja ko; do
42+
cp -r target/docs/$lang _site/$lang
43+
done
44+
cp docs/theme/lang-switcher.js _site/theme/
45+
cp docs/theme/lang-switcher.css _site/theme/
46+
echo '<!DOCTYPE html><html><head><meta http-equiv="refresh" content="0;url=/en/"></head><body>Redirecting to <a href="/en/">English documentation</a>...</body></html>' > _site/index.html
4747
echo "yuuka.celestia.world" > _site/CNAME
4848
4949
- name: Upload Pages artifact

docs/ar/SUMMARY.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# الفهرس
2+
3+
[مقدمة](./introduction.md)
4+
5+
---
6+
7+
- [derive_struct!](./derive-struct.md)
8+
- [derive_enum!](./derive-enum.md)
9+
- [auto!](./auto-macro.md)
10+
- [السمات والميزات المتقدمة](./attributes.md)
11+
- [أمثلة](./examples.md)

0 commit comments

Comments
 (0)