Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions mise.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand All @@ -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"]
Expand Down
12 changes: 10 additions & 2 deletions website/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion website/typst-docs-web
Submodule typst-docs-web updated 45 files
+1 −1 .github/CODEOWNERS
+90 −3 .github/workflows/ci.yaml
+16 −4 README.md
+3 −0 bun.lock
+31 −4 metadata.schema.json
+1 −0 mise.toml
+141 −0 netlify-build.sh
+3 −0 netlify.toml
+2 −0 package.json
+1 −2 src/components/icons/DiscordIcon.tsx
+1 −2 src/components/icons/GitHubIcon.tsx
+14 −0 src/components/icons/LinkIcon.tsx
+12 −0 src/components/icons/QQIcon.tsx
+12 −4 src/components/icons/index.ts
+6 −1 src/components/templates/BaseTemplate.tsx
+23 −17 src/components/templates/CategoryTemplate.tsx
+65 −62 src/components/templates/FuncTemplate.tsx
+30 −9 src/components/templates/GroupTemplate.tsx
+2 −2 src/components/templates/HtmlTemplate.tsx
+23 −17 src/components/templates/TypeTemplate.tsx
+29 −4 src/components/ui/DeprecationWarning.tsx
+43 −36 src/components/ui/FunctionDefinition.tsx
+31 −30 src/components/ui/FunctionDisplay.tsx
+87 −68 src/components/ui/FunctionParameters.tsx
+8 −3 src/components/ui/HtmlBlock.tsx
+14 −0 src/components/ui/HtmlInline.tsx
+15 −5 src/components/ui/Tooltip.tsx
+2 −20 src/components/ui/common/Footer.tsx
+5 −31 src/components/ui/common/Header.tsx
+6 −4 src/components/ui/common/SiteNoticeBanner.tsx
+57 −0 src/components/ui/common/SocialLinkIcons.tsx
+0 −11 src/components/ui/genPath.ts
+2 −1 src/components/ui/type2href.ts
+103 −38 src/globals.css
+7 −0 src/index.tsx
+31 −10 src/metadata.ts
+49 −38 src/translation/en-US.tsx
+48 −33 src/translation/index.tsx
+62 −38 src/translation/ja-JP.tsx
+56 −17 src/types/model.ts
+64 −0 src/utils/normalizeModel.ts
+6 −6 src/utils/translationStatus.test.ts
+1 −1 src/utils/translationStatus.ts
+3 −1 tsconfig.json
+3 −0 vitest.config.ts
Loading