🐎 ci: add i18n
Some checks failed
Build and Deploy mdBook / build-and-deploy (push) Failing after 9s
Some checks failed
Build and Deploy mdBook / build-and-deploy (push) Failing after 9s
This commit is contained in:
@@ -23,11 +23,11 @@ jobs:
|
||||
run: |
|
||||
echo "Building English book..."
|
||||
# 使用 en 的配置,构建英文版,并指定输出到 book/en 目录
|
||||
mdbook build -d book/en --config book.en.toml .
|
||||
mdbook build -d $(pwd)/book/en en
|
||||
|
||||
echo "Building Chinese book..."
|
||||
# 使用 zh 的配置,构建中文版,并指定输出到 book/zh 目录
|
||||
mdbook build -d book/zh --config book.zh.toml .
|
||||
mdbook build -d $(pwd)/book/zh zh
|
||||
|
||||
- name: Create Language Redirect Index
|
||||
run: |
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
title = "Dao OS Documentation"
|
||||
author = "The Dao OS Community"
|
||||
description = "The official documentation for the Dao OS, your Cyber-Life Operating System."
|
||||
src = "src"
|
||||
|
||||
[output.html]
|
||||
git-repository-url = "https://nest.doylee.cn/Dao-OS/dao-os-docs"
|
||||
@@ -2,7 +2,6 @@
|
||||
title = "大道 (Dao OS) 文档"
|
||||
author = "The Dao OS Community"
|
||||
description = "大道(Dao OS)官方文档,你的赛博生命操作系统。"
|
||||
src = "src-zh"
|
||||
|
||||
[output.html]
|
||||
git-repository-url = "https://nest.doylee.cn/Dao-OS/dao-os-docs"
|
||||
Reference in New Issue
Block a user