mirror of
https://github.com/jakejarvis/stanza.git
synced 2026-10-16 07:25:43 -04:00
- Install `fumadocs-core`, `fumadocs-mdx`, and `fumadocs-ui`; add `fumadocs-mdx/vite` plugin and wire it first in `vite.config.ts` so MDX files are processed before TanStack Start - Add `source.config.ts` (single `defineDocs` collection pointing at `content/docs`), `src/lib/source.ts` (Fumadocs loader with `/docs` base URL), and `src/lib/layout.shared.tsx` (disables Fumadocs' own nav, theme switch, and search toggle so the site shell owns those concerns) - Add `src/components/mdx.tsx` exporting `getMDXComponents`/`useMDXComponents` built on `fumadocs-ui/mdx` defaults; declare global `MDXProvidedComponents` for type-safe component overrides - Add `src/routes/docs.$.tsx` — splat route that runs a server function to look up the page + serialize the page tree, preloads the client MDX bundle, renders `<DocsLayout>` inside `<RootProvider theme/search disabled>`, and feeds `buildHead` for per-page SEO - Add `content/docs/index.mdx` (Introduction), `content/docs/getting-started.mdx`, `content/docs/cli-reference.mdx`, and `content/docs/meta.json` controlling sidebar order - Add `collections/*` path alias pointing at `.source/` in `tsconfig.json`; add `.source/` to `.gitignore` - Import `fumadocs-ui/css/neutral.css` and `fumadocs-ui/css/preset.css` plus the Tailwind source glob in `styles.css` - Add a "Docs" nav link in `<Header>` pointing to `/docs/$` with an empty splat
36 lines
341 B
Plaintext
36 lines
341 B
Plaintext
node_modules/
|
|
dist/
|
|
.output/
|
|
.vercel/
|
|
.turbo/
|
|
*.tsbuildinfo
|
|
.tanstack/
|
|
.source/
|
|
|
|
# IDE
|
|
.vscode/*
|
|
!.vscode/extensions.json
|
|
!.vscode/settings.json
|
|
.idea/
|
|
|
|
# Logs
|
|
*.log
|
|
npm-debug.log*
|
|
pnpm-debug.log*
|
|
|
|
# OS
|
|
.DS_Store
|
|
Thumbs.db
|
|
|
|
# Env
|
|
.env
|
|
.env.local
|
|
.env.*.local
|
|
|
|
# Test artifacts
|
|
coverage/
|
|
__snapshots__/.tmp/
|
|
|
|
# misc
|
|
apps/web/public/registry/
|