Skip to content

Commit 07e59cb

Browse files
committed
remvoe /docs
1 parent 739d975 commit 07e59cb

File tree

6 files changed

+5
-14
lines changed

6 files changed

+5
-14
lines changed

.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/docs --out-file assets/docs.json --base /"
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/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
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"

website/public/index.html

Lines changed: 0 additions & 3 deletions
This file was deleted.

website/src/components/ui/common/Breadcrumbs.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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>

website/src/components/ui/common/SiteTitle.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
export 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">

website/src/index.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,6 @@ registerRoutes(allRoutes);
2626
const app = new Hono();
2727
app.use(appendTrailingSlash());
2828
app.use(trimTrailingSlash());
29-
app.get("/", (c) => {
30-
return c.redirect("/docs");
31-
});
3229

3330
flattenedPages.forEach((page, pageIndex) => {
3431
const path = pagePaths[pageIndex];

0 commit comments

Comments
 (0)