Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion docs/app.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ export default defineConfig({
},
},
vite: {
// @ts-expect-error
base: process.env.BASE_URL,
plugins: [
mdx.withImports({})({
Expand Down
1 change: 1 addition & 0 deletions docs/doc-index.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
{
Expand Down
5 changes: 3 additions & 2 deletions docs/src/components/Table.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { onCleanup, onMount } from "solid-js";
import type { JSX } from "solid-js";

export function Table(props: JSX.TableHTMLAttributes<HTMLTableElement>) {
export function Table(props: JSX.HTMLAttributes<HTMLTableElement>) {
const { children, ...tableProps } = props;
let shellRef: HTMLDivElement | undefined;
let scrollRef: HTMLDivElement | undefined;
Expand Down Expand Up @@ -107,7 +107,8 @@ export function Table(props: JSX.TableHTMLAttributes<HTMLTableElement>) {
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) {
Expand Down
15 changes: 12 additions & 3 deletions docs/src/components/header/HeaderDropdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 2 additions & 0 deletions docs/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -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/*"]
}
}
Expand Down
Loading