File tree Expand file tree Collapse file tree 5 files changed +28
-21
lines changed
Expand file tree Collapse file tree 5 files changed +28
-21
lines changed Original file line number Diff line number Diff line change @@ -27,12 +27,12 @@ jobs:
2727 uses : actions/upload-artifact@v4
2828 with :
2929 name : build-artifacts
30- path : dist
30+ path : website/ dist
3131 - name : Deploy
3232 if : github.ref == 'refs/heads/main'
3333 uses : JamesIves/github-pages-deploy-action@v4
3434 with :
35- folder : dist # The folder the action should deploy.
35+ folder : website/ dist # The folder the action should deploy.
3636
3737 textlint-md :
3838 runs-on : ubuntu-24.04
5757 uses : actions/download-artifact@v4
5858 with :
5959 name : build-artifacts
60- path : dist
60+ path : website/ dist
6161 - uses : jdx/mise-action@v2
6262 - name : Install dependencies
6363 run : bun install --frozen-lockfile
Original file line number Diff line number Diff line change @@ -9,18 +9,35 @@ _.python.venv = { path = ".venv", create = true }
99
1010[settings ]
1111yes = true
12+ idiomatic_version_file_enable_tools = []
1213
1314[tasks .generate-docs ]
1415run = " cargo test --package typst-docs --lib -- tests::test_docs --exact --nocapture"
1516
1617[tasks .generate-web ]
17- run = " uv run gen.py"
18+ depends = [" install-website" ]
19+ run = [
20+ " bun install --frozen-lockfile" ,
21+ " bun run build" ,
22+ ]
23+ dir = " ./website"
1824
1925[tasks .generate ]
2026run = [
2127 " mise run generate-docs" ,
2228 " mise run generate-web"
2329]
2430
31+ [tasks .install-website ]
32+ run = " bun install --frozen-lockfile"
33+ dir = " ./website"
34+
35+ [tasks .dev ]
36+ depends = [" install-website" ]
37+ run = " bun run dev"
38+ dir = " ./website"
39+
2540[tasks .preview ]
26- run = " uv run -m http.server -d dist"
41+ depends = [" install-website" ]
42+ run = " bun run preview"
43+ dir = " ./website"
Original file line number Diff line number Diff line change 11# hayagrivaのsrc/csl/archive.rsで管理されている参考文献フォーマット
2- dist/docs/reference/model/bibliography/index.html
3- dist/docs/reference/model/cite/index.html
2+ website/ dist/docs/reference/model/bibliography/index.html
3+ website/ dist/docs/reference/model/cite/index.html
Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ mise run preview
6767#### miseによる開発環境のセットアップ
6868
6969> [ !NOTE]
70- > 以下の内容はmise v2024.11.5に基づいています 。内容の不備を発見した場合は、Issueを立ててください。
70+ > 以下の内容はmise v2025.5.6に基づいています 。内容の不備を発見した場合は、Issueを立ててください。
7171
7272miseが導入されている環境で初めて当プロジェクトのルートディレクトリに移動すると、以下のように構成ファイルを信頼することを求められます。
7373
@@ -83,16 +83,6 @@ mise ERROR Run with --verbose or MISE_VERBOSE=1 for more information
8383mise trust
8484```
8585
86- miseの設定ファイルでPythonのvirtualenvの自動アクティベートを有効にしていますが、この時点では` .venv/ ` ディレクトリが作成されていないため、WARNが発生するはずです。
87-
88- ``` plaintext
89- mise trusted /path/to/typst-jp.github.io/.mise.toml
90- mise WARN no venv found at: /path/to/typst-jp.github.io/.venv
91-
92- To create a virtualenv manually, run:
93- python -m venv /path/to/typst-jp.github.io/.venv
94- ```
95-
9686次に、` mise install ` を実行して、miseで管理されているツールをインストールおよびアクティベートします。
9787
9888``` sh
@@ -111,9 +101,9 @@ mise run generate-docs
111101
112102#### ドキュメントデータのJSONファイルからWebサイトを生成する
113103
114- Webサイトの生成にはPythonとJinja2を使用しています 。また、パッケージ管理にuvを使用しています 。
104+ Webサイトの生成にはNode.jsとViteとHonoを使用しています 。また、パッケージ管理にBunを使用しています 。
115105
116- ` mise run generate-web ` を実行すると、` assets/docs.json ` を基にWebサイトのデータが` dist/ ` に生成されます。
106+ ` mise run generate-web ` を実行すると、` assets/docs.json ` を基にWebサイトのデータが` website/ dist/` に生成されます。
117107
118108``` sh
119109mise run generate-web
Original file line number Diff line number Diff line change 44 "scripts" : {
55 "textlint-md" : " textlint ./docs/" ,
66 "textlint-md:fix" : " textlint --fix ./docs/" ,
7- "textlint-html" : " textlint ./dist/docs/"
7+ "textlint-html" : " textlint ./website/ dist/docs/"
88 },
99 "devDependencies" : {
1010 "@types/bun" : " latest" ,
You can’t perform that action at this time.
0 commit comments