Skip to content

Commit 7c5fc33

Browse files
Its-Just-Nans3w36zj6YDX-2147483647
authored
chore: support configuration for deployment to custom base path (#271)
Co-authored-by: 3w36zj6 <[email protected]> Co-authored-by: Y.D.X. <[email protected]>
1 parent 88ef363 commit 7c5fc33

27 files changed

+368
-76
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: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,11 @@ yes = true
99
idiomatic_version_file_enable_tools = []
1010

1111
[tasks.generate-docs]
12-
run = "cargo test --package typst-docs --lib -- tests::test_docs --exact --nocapture"
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"]
16-
run = [
17-
"bun install --frozen-lockfile",
18-
"bun run build",
19-
]
16+
run = ["bun run build"]
2017
dir = "./website"
2118

2219
[tasks.generate]

website/.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
node_modules/
22
dist/
3-
public/assets/docs
3+
public/assets
4+
public/docs.json

website/bun.lockb

10.3 KB
Binary file not shown.

website/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@
66
"dev": "vite dev",
77
"build": "vite build && npm run update-search-index",
88
"preview": "vite preview",
9-
"update-search-index": "pagefind --site ./dist/ --glob \"docs/**/*.html\"",
9+
"update-search-index": "pagefind --site ./dist/ --glob \"**/*.html\"",
1010
"check": "biome check .",
1111
"check:write": "biome check --write .",
1212
"test": "vitest"
1313
},
1414
"devDependencies": {
1515
"@biomejs/biome": "1.9.4",
1616
"@hono/ssg-plugins-essential": "^0.1.0",
17-
"@hono/vite-dev-server": "^0.19.0",
17+
"@hono/vite-dev-server": "^0.20.1",
1818
"@hono/vite-ssg": "^0.2.0",
1919
"@tailwindcss/typography": "^0.5.16",
2020
"@tailwindcss/vite": "^4.1.5",
@@ -23,7 +23,7 @@
2323
"pagefind": "^1.3.0",
2424
"tailwind-merge": "^3.3.0",
2525
"tailwindcss": "^4.1.5",
26-
"vite": "^6.2.5",
26+
"vite": "^7.1.2",
2727
"vitest": "^3.1.4"
2828
}
2929
}
File renamed without changes.

0 commit comments

Comments
 (0)