Skip to content

Commit 03e9505

Browse files
authored
chore: update typst-docs-web to 230699f (typst-jp#335)
1 parent b243b75 commit 03e9505

File tree

3 files changed

+16
-6
lines changed

3 files changed

+16
-6
lines changed

mise.toml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,15 @@ rust = "1.83.0"
44
node = "22.11.0"
55
bun = "1.2.21"
66
pinact = "3.1.1"
7+
jq = "1.8.1"
78

89
[settings]
910
yes = true
1011
idiomatic_version_file_enable_tools = []
1112

12-
[vars]
13-
_.file = "website/metadata.json"
13+
# As of mise v2025.11.11, the `vars` configuration does not support arrays in JSON file.
14+
# [vars]
15+
# _.file = "website/metadata.json"
1416

1517
[tasks.symlink-docs-assets]
1618
run = [
@@ -32,7 +34,7 @@ run = [
3234

3335
[tasks.generate-docs]
3436
depends = ["symlink-docs-assets", "symlink-web-metadata"]
35-
run = "cargo run --package typst-docs -- --assets-dir assets --out-file docs.json --base {{vars.basePath}}"
37+
run = "BASE=$(jq -r '.basePath' website/metadata.json); cargo run --package typst-docs -- --assets-dir assets --out-file docs.json --base \"$BASE\""
3638

3739
[tasks.generate-web]
3840
depends = ["install-website", "symlink-docs-assets", "symlink-web-metadata"]

website/metadata.json

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,16 @@
55
"typstOfficialUrl": "https://typst.app",
66
"typstOfficialDocsUrl": "https://typst.app/docs/",
77
"githubOrganizationUrl": "https://github.com/typst-jp",
8-
"githubRepositoryUrl": "https://github.com/typst-jp/docs",
9-
"discordServerUrl": "https://discord.gg/9xF7k4aAuH",
8+
"socialLinks": [
9+
{
10+
"title": "GitHub (typst-jp/docs)",
11+
"url": "https://github.com/typst-jp/docs"
12+
},
13+
{
14+
"title": "Discord (くみはんクラブ)",
15+
"url": "https://discord.gg/9xF7k4aAuH"
16+
}
17+
],
1018
"originUrl": "https://typst-jp.github.io/",
1119
"basePath": "/docs/",
1220
"displayTranslationStatus": true

website/typst-docs-web

Submodule typst-docs-web updated 45 files

0 commit comments

Comments
 (0)