Skip to content

Contentrain/contentrain-starter-vitepress-docs

Repository files navigation

Source of truth: this starter is exported from the contentrain-starters monorepo. Internal starter id: vitepress-docs.

Contentrain VitePress Docs

Documentation starter for teams that want Markdown-native docs with Contentrain-managed schema, navigation, and long-form content.

Contentrain VitePress Docs cover

Contentrain VitePress Docs preview

Demo routes

  • /
  • /getting-started
  • /guides/content-architecture
  • /guides/product-surfaces
  • /reference/contentrain-models
  • /reference/deployment-targets
  • /packages/design-tokens

Start

pnpm install
pnpm dev

Commands

pnpm check
pnpm build
pnpm preview
pnpm deploy:netlify

Contentrain Architecture

  • Long-form docs pages are modeled as Contentrain document models and written into the real docs/ tree through content_path overrides
  • VitePress navigation and sidebar structure are generated from Contentrain content, not hardcoded arrays
  • Starter-local .contentrain/context.json, vocabulary.json, and meta/ files are committed so the repo opens with a complete Contentrain project shape
  • The docs surface is positioned as part of a wider product-surface system, not as an isolated blog replacement
  • Official references are built in:

If you change .contentrain/models or .contentrain/content, regenerate the local SDK first:

pnpm contentrain:generate

To validate the on-disk Contentrain project itself:

pnpm exec contentrain validate --json

Deploy

  • Netlify build command: pnpm deploy:netlify
  • Netlify publish directory: docs/.vitepress/dist
  • netlify.toml is committed in the starter root

Netlify Project Creation

Deploy to Netlify

Use pnpm dlx netlify-cli init to connect the repository for continuous deployment, or pnpm dlx netlify-cli link if the site already exists.

About

VitePress documentation starter with Contentrain-managed Markdown pages, generated SDK client, and docs-native content architecture.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors