File tree Expand file tree Collapse file tree 4 files changed +15
-4
lines changed Expand file tree Collapse file tree 4 files changed +15
-4
lines changed Original file line number Diff line number Diff line change @@ -20,11 +20,20 @@ run = [
2020 " ln -s ../../../assets website/typst-docs-web/public/assets"
2121]
2222
23+ [tasks .symlink-web-metadata ]
24+ run = [
25+ " rm -rf website/typst-docs-web/public/metadata.json" ,
26+ " ln -s ../../metadata.json website/typst-docs-web/public/metadata.json" ,
27+ " rm -rf website/typst-docs-web/public/translation-status.json" ,
28+ " ln -s ../../translation-status.json website/typst-docs-web/public/translation-status.json"
29+ ]
30+
2331[tasks .generate-docs ]
32+ depends = [" symlink-docs-assets" , " symlink-web-metadata" ]
2433run = " cargo run --package typst-docs -- --assets-dir assets --out-file docs.json --base {{vars.basePath}}"
2534
2635[tasks .generate-web ]
27- depends = [" install-website" , " symlink-docs-assets" ]
36+ depends = [" install-website" , " symlink-docs-assets" , " symlink-web-metadata " ]
2837run = [" bun run build" ]
2938dir = " ./website/typst-docs-web"
3039
Original file line number Diff line number Diff line change @@ -2,3 +2,5 @@ node_modules/
22dist /
33public /assets
44public /docs.json
5+ public /metadata.json
6+ public /translation-status.json
Original file line number Diff line number Diff line change 1- import metadataJson from "../.. /metadata.json" ;
1+ import metadataJson from "../public /metadata.json" ;
22
33type Metadata = {
44 language : "ja-JP" | "en-US" ;
Original file line number Diff line number Diff line change @@ -12,8 +12,8 @@ export type TranslationStatusMap = {
1212} ;
1313
1414const TRANSLATION_STATUS_FILE = path . resolve (
15- path . dirname ( process . cwd ( ) ) ,
16- "translation-status.json" ,
15+ process . cwd ( ) ,
16+ "./public/ translation-status.json" ,
1717) ;
1818
1919/**
You can’t perform that action at this time.
0 commit comments