diff --git a/mise.toml b/mise.toml index d88af23630..d9dc071115 100644 --- a/mise.toml +++ b/mise.toml @@ -4,13 +4,15 @@ rust = "1.83.0" node = "22.11.0" bun = "1.2.21" pinact = "3.1.1" +jq = "1.8.1" [settings] yes = true idiomatic_version_file_enable_tools = [] -[vars] -_.file = "website/metadata.json" +# As of mise v2025.11.11, the `vars` configuration does not support arrays in JSON file. +# [vars] +# _.file = "website/metadata.json" [tasks.symlink-docs-assets] run = [ @@ -32,7 +34,7 @@ run = [ [tasks.generate-docs] depends = ["symlink-docs-assets", "symlink-web-metadata"] -run = "cargo run --package typst-docs -- --assets-dir assets --out-file docs.json --base {{vars.basePath}}" +run = "BASE=$(jq -r '.basePath' website/metadata.json); cargo run --package typst-docs -- --assets-dir assets --out-file docs.json --base \"$BASE\"" [tasks.generate-web] depends = ["install-website", "symlink-docs-assets", "symlink-web-metadata"] diff --git a/website/metadata.json b/website/metadata.json index 9c15b231d5..8a08258589 100644 --- a/website/metadata.json +++ b/website/metadata.json @@ -5,8 +5,16 @@ "typstOfficialUrl": "https://typst.app", "typstOfficialDocsUrl": "https://typst.app/docs/", "githubOrganizationUrl": "https://github.com/typst-jp", - "githubRepositoryUrl": "https://github.com/typst-jp/docs", - "discordServerUrl": "https://discord.gg/9xF7k4aAuH", + "socialLinks": [ + { + "title": "GitHub (typst-jp/docs)", + "url": "https://github.com/typst-jp/docs" + }, + { + "title": "Discord (くみはんクラブ)", + "url": "https://discord.gg/9xF7k4aAuH" + } + ], "originUrl": "https://typst-jp.github.io/", "basePath": "/docs/", "displayTranslationStatus": true diff --git a/website/typst-docs-web b/website/typst-docs-web index ddbabe054c..230699f7d8 160000 --- a/website/typst-docs-web +++ b/website/typst-docs-web @@ -1 +1 @@ -Subproject commit ddbabe054cdd570cb4c6769b4e4df3017c3b83af +Subproject commit 230699f7d8cd90c454656d901096cfeb72b20a7e