SiteX 0.4: MDX-only pages, framework-owned head, shadcn UI registry#7
Merged
Conversation
- Render static HTML in-process via an SSR build environment (no second
Vite server) and replace regex HTML handling with parse5
- Globals: index.yaml is the root locale; {locale}.yaml files serve
/{locale} routes; locale name configurable via site.locale
- Move UI components to packages/ui as a shadcn registry served from
the docs site (/r); sitex npm package exports types only
- Docs: Framework/UI sidebar split, /docs/ui page, remove unused
components and internal test pages
- Only merge layout mdxComponents when the layout exports it
- Remove SitexDocument no-op, legacy shims, dead exports and aliases
- Update all dependencies to latest (typescript 6, satteri 0.9,
@vitejs/plugin-react 6, vite-plus 0.2)
- Restore brief CONTRIBUTING.md and CODE_OF_CONDUCT.md
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
- Pre-paint theme script in the base layout head eliminates the dark mode flicker; theme provider and mode toggle now follow the shadcn Vite dark-mode recipe (light/dark/system dropdown) - Docs reduced from 11 pages to 4: Introduction, Pages, Rendering, UI; old URLs 301-redirect to their merged targets Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
react-dom in packages/ui was an auto-installed peer stuck at 19.2.6 while react was 19.2.7; React 19 aborts hydration on the mismatch, which broke every island including the theme toggle. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
- sitex() needs no options: site.url is only required at build time,
where deploy-platform env vars usually provide it; dev falls back to
localhost
- The shared tsconfig now carries include globs and the @/* alias via
${configDir}, so consumers only write { "extends": "@fulldotdev/sitex/tsconfig" }
- Docs: Introduction (short), Installation, Pages, Layouts, Components;
file tree order fixed; redirects updated
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
- New 'code' registry item: shiki-highlighted code block with copy button island; drop-in MDX pre replacement wired via mdx.components. Docs app dogfoods it, replacing its bespoke code-block/pre setup - Installation docs and README show the @/* paths alias in the tsconfig example Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Sitex injects speculation rules so supporting browsers prerender links on hover, plus a ~0.9kB hover-prefetch fallback module for the rest. Opt out with prefetch: false or data-no-prefetch. Disabled in dev. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
- /docs/ui/installation: Tailwind + shadcn init + registry add flow - One page per component (13) with install command, verified usage example, and key props; sidebar gets a Components section - UI intro table links to the component pages Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
/docs/ui now explains the purpose of Sitex UI and the registry model; the linked component table moved to /docs/ui/components. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Component pages move to /docs/components/{name}; the Components page
covers client directives, the pre-built component registry, and
prefetch. Single sidebar with a Components group; /docs/ui/* URLs
redirect.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
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
Releases
@fulldotdev/sitex0.4.0 (minor, via theopinionated-mdx-rebuildchangeset).siteconfig,src/styles/global.cssentry, and locale-aware globals undersrc/globals/packages/ui, served from the docs site at/r/{name}.json)vp buildvia a dedicated SSR environmentValidation
pnpm readypasses: typecheck/lint clean, all packages and the docs static build succeedapps/docs/public/rchangeset status --since mainconfirms the pending minor bumpMerging triggers the changesets release workflow, which opens a
[ci] releasePR; merging that publishes 0.4.0 to npm.🤖 Generated with Claude Code