Docs
Please follow LiveStore’s guiding principles when writing docs.
Writing style
Section titled “Writing style”This project broadly tries to follow the Prisma docs style guide.
Use regular sentence casing for titles of navigation item, pages and sections
Section titled “Use regular sentence casing for titles of navigation item, pages and sections”All titles for navigation items, pages and sections are using regular sentence casing. This means that only the first word and proper nouns (e.g. “Cloudflare Workers” or “Cloudflare Durable Objects”) are capitalized.
Example 1
Section titled “Example 1”Good:
## This is the title of this sectionBad:
## This is the Title of this SectionExample 2
Section titled “Example 2”Good:
## This pages is about Cloudflare WorkersBad:
## This pages is about cloudflare workersCreate proper frontmatter for every page
Section titled “Create proper frontmatter for every page”Frontmatter is YAML metadata at the start of MD/MDX files (between --- markers) that controls page rendering, navigation, and SEO.
Required fields
Section titled “Required fields”title: Page title used for the browser tab, search results, and page heading. Always required.description: Brief summary (150-160 characters) used for search snippets and social previews. Highly recommended for SEO.
Optional fields
Section titled “Optional fields”sidebar: Controls sidebar navigationlabel: Custom sidebar label (defaults totitle)order: Numeric sort order (lower numbers appear first)
SEO impact
Section titled “SEO impact”The title and description fields directly impact SEO:
titlebecomes the<title>tag and search result headlinedescriptionbecomes the<meta name="description">tag and search snippet- Both are used for Open Graph and Twitter Card previews
- OG images are auto-generated at
/og/{slug}.pngusing these fields
Examples
Section titled “Examples”Minimal (title only):
---title: Getting started with LiveStore + React---With description and sidebar:
---title: Getting started with LiveStore + Reactdescription: How to use LiveStore with React on the web.sidebar: label: React web order: 1---Snippets
Section titled “Snippets”For snippet guidelines, see: /contributor-docs/docs/snippets.md
Deploying the docs
Section titled “Deploying the docs”- Run
direnv exec . mono docs deployto deploy the already-built documentation to the dev Netlify site. Onmain, this updates the dev domain (https://dev.docs.livestore.dev); on pull requests and feature branches, it uses a branch alias on the dev site. - Passing
--prodtargets the production domain (https://docs.livestore.dev) and is only allowed for stable LiveStore release versions. - Use
--site=<slug>if you need to override the default Netlify site name. - Use
--planto print the resolved deploy target without building or deploying. This is the safest way to verify whether a CI event would update the dev site, create PR aliases, or target the production site before running a live deploy. - Add
--purge-cdnwhen you need to invalidate Netlify’s CDN cache after deploying; this ensures new edge handlers or content-negotiation changes take effect immediately. - CI automatically builds and deploys the docs: normal
mainpushes updatehttps://dev.docs.livestore.dev, pull requests publish aliases on the dev site, and the release workflow updateshttps://docs.livestore.devonly after publishing a stable release.