From 63ef8ce7fde0e82ccd90f7180f474a6ddc9df071 Mon Sep 17 00:00:00 2001 From: ya7010 Date: Sun, 2 Aug 2026 18:30:31 +0900 Subject: [PATCH] fix(docs): restore typecheck --- docs/app.config.ts | 1 - docs/doc-index.json | 1 + docs/src/components/Table.tsx | 5 +++-- docs/src/components/header/HeaderDropdown.tsx | 15 ++++++++++++--- docs/tsconfig.json | 2 ++ 5 files changed, 18 insertions(+), 6 deletions(-) diff --git a/docs/app.config.ts b/docs/app.config.ts index 91cf91ad4..725643fb3 100644 --- a/docs/app.config.ts +++ b/docs/app.config.ts @@ -22,7 +22,6 @@ export default defineConfig({ }, }, vite: { - // @ts-expect-error base: process.env.BASE_URL, plugins: [ mdx.withImports({})({ diff --git a/docs/doc-index.json b/docs/doc-index.json index a6ef412be..e4c047387 100644 --- a/docs/doc-index.json +++ b/docs/doc-index.json @@ -156,6 +156,7 @@ "children": [ { "title": "Schema Document Directive", + "description": "Select a JSON Schema for a document with a comment directive.", "path": "/docs/comment-directive/schema-document-directive" }, { diff --git a/docs/src/components/Table.tsx b/docs/src/components/Table.tsx index b56c9977e..e12d7a872 100644 --- a/docs/src/components/Table.tsx +++ b/docs/src/components/Table.tsx @@ -1,7 +1,7 @@ import { onCleanup, onMount } from "solid-js"; import type { JSX } from "solid-js"; -export function Table(props: JSX.TableHTMLAttributes) { +export function Table(props: JSX.HTMLAttributes) { const { children, ...tableProps } = props; let shellRef: HTMLDivElement | undefined; let scrollRef: HTMLDivElement | undefined; @@ -107,7 +107,8 @@ export function Table(props: JSX.TableHTMLAttributes) { const shellRect = shellRef.getBoundingClientRect(); const stickyHeight = clonedHead.getBoundingClientRect().height; const shouldStick = - shellRect.top <= stickyTop && shellRect.bottom > stickyTop + stickyHeight; + shellRect.top <= stickyTop && + shellRect.bottom > stickyTop + stickyHeight; shellRef.dataset.stickyActive = shouldStick ? "true" : "false"; if (!shouldStick) { diff --git a/docs/src/components/header/HeaderDropdown.tsx b/docs/src/components/header/HeaderDropdown.tsx index c1e484eb6..97c2257b7 100644 --- a/docs/src/components/header/HeaderDropdown.tsx +++ b/docs/src/components/header/HeaderDropdown.tsx @@ -11,9 +11,18 @@ interface HeaderDropdownProps { } const menuItems: DocIndex[] = [ - { title: "Home", path: "/" }, - { title: "Docs", path: "/docs", children: docIndex }, - { title: "Playground", path: "/playground" }, + { title: "Home", description: "Tombi home page.", path: "/" }, + { + title: "Docs", + description: "Tombi documentation.", + path: "/docs", + children: docIndex, + }, + { + title: "Playground", + description: "Try Tombi in the browser.", + path: "/playground", + }, ]; export function HeaderDropdown(props: HeaderDropdownProps) { diff --git a/docs/tsconfig.json b/docs/tsconfig.json index 8b667fbf4..97503d21d 100644 --- a/docs/tsconfig.json +++ b/docs/tsconfig.json @@ -9,11 +9,13 @@ "jsxImportSource": "solid-js", "allowJs": true, "strict": true, + "skipLibCheck": true, "noEmit": true, "types": ["vinxi/types/client"], "isolatedModules": true, "resolveJsonModule": true, "paths": { + "solid-mdx": ["./node_modules/solid-mdx/types/index.d.ts"], "~/*": ["./src/*"] } }