Open
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
- Port the Fumadocs "black" neutral-grayscale palette to the Starlight theme tokens so chrome is monochrome with hairline borders. - Replace the header with a custom component: mono brand, mono nav links, search trigger wired to Starlight Pagefind with a cmd-K kbd, GitHub icon, theme toggle. Drops the old Try-now CTA and stats counters. - Restyle the left sidebar with Geist Mono items, a 2px left-border active indicator, uppercase tracking-wider section labels, and a thin scrollbar. - Rebuild the right TOC as a tree rail: per-item 1px rails positioned by --depth, with quarter-circle curves on nested <ul>::before and ::after to bridge depth changes. Active heading lights up its rail segment. - Add a PageTitle component with Copy MD and Open in (GitHub, Raw, llms.txt). Copy MD swaps to a check icon and tints green on success, red on error. - Flip the landing page off the splash template to a plain first-doc page.
Migrates the documentation site from a separate Astro/Starlight app at apps/docs to native TanStack Start routes inside apps/web. Single app, single deploy, single dev server. All MDX content preserved. Why: cross-framework boundary between Astro static export and TanStack Start dev server caused recurring rendering and search bugs (Cannot GET /docs, page-inside-page hydration), and Fumadocs UI is Next.js-only so it can't run inside the TanStack Start app directly. What's new in apps/web: - Vite MDX pipeline: @mdx-js/rollup with remark-frontmatter, remark-mdx-frontmatter, remark-gfm, custom remarkExtractToc (emits TOC + heading ids), custom remarkNpmTabs (rewrites npm code blocks to <PMTabs />), and @shikijs/rehype for syntax highlighting. - Source loader (src/lib/docs/source.ts) builds page tree from meta.json sidebar configs and resolves slugs to MDX modules at build time via import.meta.glob. - Routes: /docs (index) and /docs/$splat catch-all share a renderer. - DocsLayout: 3-col grid (sidebar / content / TOC) with a mobile slide-in drawer animated via motion. - Sidebar + TableOfContents: motion layoutId for active rail animation; IntersectionObserver picks active heading by intersection ratio with document-order tiebreak. - MDX components: CodeBlock (Shiki + copy), PMTabs (npm/pnpm/bun/yarn with cross-page localStorage sync + storage event), Callout. - Cmd/Ctrl+K SearchDialog: Orama index built lazily on first open from the eager-globbed raw MDX, keyboard nav, grouped by page, footer shortcut hints. Trigger replaces NavbarStats only on /docs/* routes. - docs-prose typography block in global.css scoped to docs content. Removed: - apps/docs/* (Starlight scaffold, custom CSS, generate-docs.ts) - apps/web/public/docs/* (stale static export) - docs#build task in turbo.json - prebuild dependency on apps/docs in apps/web/package.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Validation