On this page
· 1 min read
Project Structure
examples/frameworks/with-solid/ content/ guide/ This guide series, including `kitchen-sink.md` pages/ `pages` collection (e.g. about) public/ Copied to output as-is (favicon, etc.) src/ entry-server.tsx Exports `getRoutes` / `render` — Solid → HTML strings + `renderDocument` shell runtime.ts Browser-only progressive enhancement (TOC, sidebar, theme, search trigger) theme.css Site layout and design tokens pagesmith-content.d.ts Generated types for `virtual:content/*` (do not hand-edit) env.d.ts client.js Vite client entry: theme + core runtime CSS/JS for code blocks + `runtime.ts` content.config.ts `defineCollection` / `defineCollections` — source of virtual module shape vite.config.ts Plugins: shared assets, Solid SSR, pagesmithContent, pagesmithSsg llms.txt Example-local agent notes (integration seams, Pagefind, dev vs build) package.json tsconfig.jsonHow the pieces connect
content.config.tsdefines collection names and Zod schemas.pagesmithContentturns each collection intovirtual:content/<name>consumed inentry-server.tsx.pagesmithSsginvokes that module’sgetRoutesandrenderduringvite build, and SSR middleware duringvite dev.client.jsis the deferred script referenced from the generated HTML; it is not Solid — it loads global styles, shared code-block runtime from@pagesmith/site, thenruntime.tsfor UX on top of static markup.