Skip to content

Commit b22498a

Browse files
committed
chore: update path for generated documentation
1 parent a8e3fda commit b22498a

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

.gitignore

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,6 @@ package-lock.json
2727
/result
2828
.direnv/
2929

30-
# Documentation
31-
/assets/docs
32-
/assets/docs.json
30+
# Generated documentation
31+
/assets
32+
/docs.json

.mise.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ yes = true
99
idiomatic_version_file_enable_tools = []
1010

1111
[tasks.generate-docs]
12-
run = "cargo run --package typst-docs -- --assets-dir assets/docs --out-file assets/docs.json --base /docs/"
12+
run = "cargo run --package typst-docs -- --assets-dir assets --out-file docs.json --base /docs/"
1313

1414
[tasks.generate-web]
1515
depends = ["install-website"]

website/src/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import { isPageOfKind } from "./utils/isPageOfKind";
1616
import { registerRoutes } from "./utils/translationStatus";
1717

1818
// typst-docsが生成したドキュメント
19-
import docsJson from "../../assets/docs.json";
19+
import docsJson from "../../docs.json";
2020
const docs = docsJson as unknown as Page[];
2121

2222
const [flattenedPages, pagePaths] = flattenDocs(docs);

website/vite.config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ import tailwindcss from "@tailwindcss/vite";
99
import { defineConfig } from "vite";
1010
import { basePath, originUrl } from "./src/metadata";
1111

12-
// typst-docsが生成したドキュメントのアセットをassets/にシンボリックリンクする
13-
const assetsDocsPath = resolve(__dirname, "../assets/docs/");
12+
// Create a symbolic link to the assets generated by typst-docs in ./public/assets/
13+
const assetsDocsPath = resolve(__dirname, "../assets/");
1414
const publicAssetsDocsPath = resolve(__dirname, "./public/assets/");
1515

1616
rmSync(publicAssetsDocsPath, { recursive: true, force: true });

0 commit comments

Comments
 (0)