File tree Expand file tree Collapse file tree 6 files changed +5
-14
lines changed Expand file tree Collapse file tree 6 files changed +5
-14
lines changed Original file line number Diff line number Diff line change @@ -9,14 +9,11 @@ yes = true
99idiomatic_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/docs --out-file assets/docs.json --base / "
1313
1414[tasks .generate-web ]
1515depends = [" install-website" ]
16- run = [
17- " bun install --frozen-lockfile" ,
18- " bun run build" ,
19- ]
16+ run = [" bun run build" ]
2017dir = " ./website"
2118
2219[tasks .generate ]
Original file line number Diff line number Diff line change 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"
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ export const Breadcrumbs = ({ path }: BreadcrumbsProps) => {
1010 < nav class = "flex justify-between px-3.5 py-1 border border-neutral-200/60 rounded-md" >
1111 < ol class = "inline-flex flex-wrap items-center space-x-1 text-sm text-gray-600" >
1212 < li class = "flex items-center h-full" >
13- < a href = "/docs/ " class = "py-1 hover:text-gray-800 transition-colors" >
13+ < a href = "/" class = "py-1 hover:text-gray-800 transition-colors" >
1414 < div class = "w-4 h-4" >
1515 < HomeIcon />
1616 </ div >
Original file line number Diff line number Diff line change 11export const SiteTitle = ( ) => {
22 return (
3- < a href = "/docs " class = "logo-box hover:opacity-80 transition-opacity" >
3+ < a href = "/" class = "logo-box hover:opacity-80 transition-opacity" >
44 < div class = "flex items-baseline" >
55 < span class = "text-base font-bold text-teal-600" > Typst</ span >
66 < span class = "text-base font-medium text-gray-600 ml-1" >
Original file line number Diff line number Diff line change @@ -26,9 +26,6 @@ registerRoutes(allRoutes);
2626const app = new Hono ( ) ;
2727app . use ( appendTrailingSlash ( ) ) ;
2828app . use ( trimTrailingSlash ( ) ) ;
29- app . get ( "/" , ( c ) => {
30- return c . redirect ( "/docs" ) ;
31- } ) ;
3229
3330flattenedPages . forEach ( ( page , pageIndex ) => {
3431 const path = pagePaths [ pageIndex ] ;
You can’t perform that action at this time.
0 commit comments