Skip to content

Commit 035091f

Browse files
author
developerworks
committed
支持仓库根目录构建 mdBook
1 parent c6cce4b commit 035091f

12 files changed

Lines changed: 61 additions & 9 deletions

‎book.toml‎

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
[book]
2+
title = "rust-config-tree Manual"
3+
authors = ["developerworks"]
4+
description = "Default English manual for rust-config-tree."
5+
language = "en"
6+
src = "manual/en"
7+
8+
[build]
9+
build-dir = "target/mdbook/en"
10+
create-missing = false
11+
12+
[output.html]
13+
git-repository-url = "https://github.com/developerworks/rust-config-tree"
14+
edit-url-template = "https://github.com/developerworks/rust-config-tree/edit/main/manual/en/{path}"
15+
site-url = "/rust-config-tree/en/"
16+
additional-css = ["manual/theme/left-aligned.css"]

‎scripts/README.de.md‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,12 @@
44

55
Fuehre Skripte aus dem Repository-Root aus.
66

7+
`mdbook build` aus dem Repository-Root baut das englische Standardhandbuch.
8+
Fuer alle Sprachen der GitHub-Pages-Site verwende `scripts/publish-pages.sh`.
9+
710
## `publish-pages.sh`
811

9-
Baut die mdBook-Handbuecher nach `target/mdbook`.
12+
Baut alle sprachspezifischen mdBook-Handbuecher nach `target/mdbook`.
1013

1114
```bash
1215
scripts/publish-pages.sh

‎scripts/README.es.md‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,13 @@
44

55
Ejecuta los scripts desde la raíz del repositorio.
66

7+
`mdbook build` desde la raíz del repositorio construye el manual inglés
8+
predeterminado. Usa `scripts/publish-pages.sh` para construir todos los idiomas
9+
de GitHub Pages.
10+
711
## `publish-pages.sh`
812

9-
Construye los manuales mdBook en `target/mdbook`.
13+
Construye todos los manuales mdBook por idioma en `target/mdbook`.
1014

1115
```bash
1216
scripts/publish-pages.sh

‎scripts/README.fi.md‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44

55
Aja skriptit repositorion juuresta.
66

7+
`mdbook build` repositorion juuressa rakentaa oletuksena englanninkielisen
8+
oppaan. Kayta `scripts/publish-pages.sh`, kun rakennat kaikki GitHub Pagesin
9+
kieliversiot.
10+
711
## `publish-pages.sh`
812

913
Rakentaa kaikki kielikohtaiset mdBook-oppaat hakemistoon `target/mdbook`.

‎scripts/README.fr.md‎

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,13 @@
44

55
Executez les scripts depuis la racine du depot.
66

7+
`mdbook build` depuis la racine du depot construit le manuel anglais par defaut.
8+
Utilisez `scripts/publish-pages.sh` pour construire toutes les langues de
9+
GitHub Pages.
10+
711
## `publish-pages.sh`
812

9-
Construit les manuels mdBook en anglais, chinois et japonais dans
10-
`target/mdbook`.
13+
Construit tous les manuels mdBook par langue dans `target/mdbook`.
1114

1215
```bash
1316
scripts/publish-pages.sh
@@ -82,4 +85,3 @@ Ignorer l'attente du workflow Pages :
8285
```bash
8386
scripts/release.sh --execute --no-wait-pages
8487
```
85-

‎scripts/README.ja.md‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44

55
スクリプトはリポジトリ root から実行します。
66

7+
リポジトリ root で `mdbook build` を実行すると default English manual を build
8+
します。GitHub Pages 用にすべての言語を build する場合は
9+
`scripts/publish-pages.sh` を使います。
10+
711
## `publish-pages.sh`
812

913
すべての言語別 mdBook manual を `target/mdbook` に build します。

‎scripts/README.ko.md‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,13 @@
44

55
스크립트는 저장소 루트에서 실행하세요.
66

7+
저장소 루트에서 `mdbook build`를 실행하면 기본 영어 매뉴얼을 빌드합니다.
8+
GitHub Pages용 모든 언어 사이트를 빌드하려면 `scripts/publish-pages.sh`를
9+
사용하세요.
10+
711
## `publish-pages.sh`
812

9-
영어, 중국어, 일본어, 한국어 mdBook 매뉴얼을 `target/mdbook`에 빌드합니다.
13+
모든 언어별 mdBook 매뉴얼을 `target/mdbook`에 빌드합니다.
1014

1115
```bash
1216
scripts/publish-pages.sh

‎scripts/README.md‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44

55
Run scripts from the repository root.
66

7+
`mdbook build` from the repository root builds the default English manual. Use
8+
`scripts/publish-pages.sh` to build every language for GitHub Pages.
9+
710
## `publish-pages.sh`
811

912
Builds all language-specific mdBook manuals into `target/mdbook`.

‎scripts/README.nl.md‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44

55
Voer scripts uit vanuit de repositoryroot.
66

7+
`mdbook build` vanuit de repositoryroot bouwt de standaard Engelse handleiding.
8+
Gebruik `scripts/publish-pages.sh` om alle talen voor GitHub Pages te bouwen.
9+
710
## `publish-pages.sh`
811

912
Bouwt alle taalspecifieke mdBook-handleidingen naar `target/mdbook`.

‎scripts/README.pt.md‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,13 @@
44

55
Execute scripts a partir da raiz do repositorio.
66

7+
`mdbook build` a partir da raiz do repositorio constroi o manual padrao em
8+
ingles. Use `scripts/publish-pages.sh` para construir todos os idiomas do
9+
GitHub Pages.
10+
711
## `publish-pages.sh`
812

9-
Constroi os manuais mdBook em `target/mdbook`.
13+
Constroi todos os manuais mdBook por idioma em `target/mdbook`.
1014

1115
```bash
1216
scripts/publish-pages.sh
@@ -80,4 +84,3 @@ Pule a espera pelo workflow Pages:
8084
```bash
8185
scripts/release.sh --execute --no-wait-pages
8286
```
83-

0 commit comments

Comments
 (0)