From 0f23868b358cd4f836ee864ee7b3a18d287ca3f9 Mon Sep 17 00:00:00 2001 From: kanno <812137533@qq.com> Date: Wed, 5 Feb 2025 15:58:37 +0800 Subject: [PATCH] docs: add homepage --- docs/index.yaml | 2 +- scripts/render.ts | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/index.yaml b/docs/index.yaml index f1810c2..9b28949 100644 --- a/docs/index.yaml +++ b/docs/index.yaml @@ -12,7 +12,7 @@ index: - "Supports zooming and panning" - p: > - Check out the [getting started](/getting-started) guide to learn how to use. + Check out the [getting started](getting-started) guide to learn how to use. getting-started: "getting-started.yaml" api: "api.yaml" diff --git a/scripts/render.ts b/scripts/render.ts index 90d03cf..aa3c30d 100644 --- a/scripts/render.ts +++ b/scripts/render.ts @@ -224,6 +224,8 @@ function renderMenu(): string { const navs: string[] = [] + navs.push('
  • Home
  • ') + for (const { key, title, h2s } of structure) { navs.push(`
  • ${title}
  • `) for (const h2 of h2s) {