Skip to content

Commit 370541c

Browse files
committed
docs: 変更履歴のページ名を日本語に翻訳
1 parent 6241307 commit 370541c

File tree

3 files changed

+17
-11
lines changed

3 files changed

+17
-11
lines changed

docs/changelog/earlier.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
---
2-
title: Earlier
3-
description: Changes in early, unversioned Typst
2+
title: 初期バージョン
3+
description: Typstの初期バージョンにおける変更点
44
---
55

6-
# Changes in early, unversioned Typst
6+
# Typstの初期バージョンにおける変更点
77

88
## March 28, 2023
99
- **Breaking changes:**

docs/changelog/welcome.md

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
11
---
22
description: |
3-
Learn what has changed in the latest Typst releases and move your documents
4-
forward.
3+
最新のTypstリリースで追加された新機能を確認し、あなたのドキュメントをさらに進化させましょう。
54
---
65

7-
# Changelog
8-
Learn what has changed in the latest Typst releases and move your documents
9-
forward. This section documents all changes to Typst since its initial public
10-
release.
6+
# 変更履歴
7+
最新のTypstリリースで追加された新機能を確認し、あなたのドキュメントをさらに進化させましょう。本セクションでは、Typstの最初の一般公開リリース以降に行われたすべての変更内容を記録しています。
118

129
## Versions
1310
- [Typst 0.13.1]($changelog/0.13.1)
@@ -25,4 +22,4 @@ release.
2522
- [Typst 0.3.0]($changelog/0.3.0)
2623
- [Typst 0.2.0]($changelog/0.2.0)
2724
- [Typst 0.1.0]($changelog/0.1.0)
28-
- [Earlier]($changelog/earlier)
25+
- [初期バージョン]($changelog/earlier)

docs/src/lib.rs

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,14 @@ fn changelog_pages(resolver: &dyn Resolver) -> PageModel {
208208
md_page(resolver, &base, load!("changelog/0.2.0.md")),
209209
md_page(resolver, &base, load!("changelog/0.1.0.md")),
210210
md_page(resolver, &base, load!("changelog/earlier.md")),
211-
];
211+
]
212+
.into_iter()
213+
.map(|child| {
214+
let route = eco_format!("{base}{}/", urlify(child.title.as_str()));
215+
PageModel { route, ..child }
216+
})
217+
.collect();
218+
212219
page
213220
}
214221

@@ -834,6 +841,8 @@ pub fn urlify(title: &str) -> EcoString {
834841
"更新日志" => "changelog".into(),
835842
"路线图" => "roadmap".into(),
836843
"社区" => "community".into(),
844+
"変更履歴" => "changelog".into(),
845+
"初期バージョン" => "earlier".into(),
837846
"日本語組版情報" => "japanese".into(),
838847
"日本語テンプレート" => "templates".into(),
839848
"日本語向けパッケージ" => "packages".into(),

0 commit comments

Comments
 (0)