DaisyUI docs starter
Its files are in ext/pages/starters/daisyui-docs. See every starter kit.


A docs site built from Markdown pages, styled with Tailwind CSS and DaisyUI. It shows layout groups ((splash) for the home page, (main) for the docs), nested layouts, and a Markdown partial (docs/_private/toc.md) as the table of contents. Add a page by dropping a .md file in pb_pages/(main)/docs/. The compiled pb_pages/assets/app.css is included; npm is only for rebuilding the CSS.
Templates are .ets (EJS whose tags hold TypeScript) and code files (+config, +middleware, and the .ts beside a page or serving an endpoint) are .ts; Pages strips the types when it loads them, so there is still no build step.
pocketone pages create myapp --starter daisyui-docs
cd myapp
pocketone superuser upsert [email protected] <password> --dir ./pb_data
pocketone serve --dir ./pb_data
Then open http://127.0.0.1:8090.
To change styles, rebuild the CSS while you edit:
npm i
npm run dev:css
Files
pb_pages/
+layout.ets
(splash)/index.ets the home page, in its own layout
(main)/+layout.ets
(main)/docs/+layout.ets the docs layout, with the table of contents
(main)/docs/_private/toc.md the table of contents
(main)/docs/overview.md a docs page: add more beside it
Live demo: pocketpages-daisyui-docs.pockethost.io.
Questions and comments
Comments are a GitHub Discussions thread; sign in with GitHub to post.