Skip to content

Commit

Permalink
docs: init Chinese version (#255)
Browse files Browse the repository at this point in the history
  • Loading branch information
lijunchen authored Sep 4, 2024
1 parent d6143e8 commit 914c35c
Show file tree
Hide file tree
Showing 6 changed files with 389 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,9 @@ jobs:
mdbook-version: 'latest'

- name: Build and Check mdBook
run: mdbook build docs/manual
run: |
mdbook build docs/manual
mdbook build docs/manual-zh
test:
needs: [typo-check, license-header-check]
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/manual.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,11 @@ jobs:
with:
mdbook-version: 'latest'
- name: Build the book
run: mdbook build docs/manual
run: |
mdbook build docs/manual
mdbook build docs/manual-zh
mkdir -p docs/manual/book/zh
cp -r docs/manual-zh/book/* docs/manual/book/zh
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v4
Expand Down
1 change: 1 addition & 0 deletions docs/manual-zh/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
book
23 changes: 23 additions & 0 deletions docs/manual-zh/book.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# moon: The build system and package manager for MoonBit.
# Copyright (C) 2024 International Digital Economy Academy
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
#
# For inquiries, you can contact us via e-mail at [email protected].

[book]
language = "zh"
multilingual = false
src = "src"
title = "Moon 手册"
3 changes: 3 additions & 0 deletions docs/manual-zh/src/SUMMARY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# 目录

- [教程](./tutorial.md)
Loading

0 comments on commit 914c35c

Please sign in to comment.