Getting Started With ZeroPress
ZeroPress supports several practical authoring workflows. This site focuses on the theme runtime, preview-data contract, and CLI tools. Markdown-source publishing guidance for Build Pages lives on its own product site.
Choose A Workflow
| Goal | Use | Best For |
|---|---|---|
| Create or test a reusable theme | @zeropress/create-theme and @zeropress/theme |
Theme authors and custom site design |
| Build directly from preview-data and a theme | @zeropress/build |
AI-generated sites, admin-generated preview-data, advanced integrations |
| Build a static site from Markdown files | @zeropress/build-pages |
Documentation, GitHub Pages style repositories, simple public sites |
Need command snippets first? See Package Quick Starts for the shortest useful command for each public package.
Markdown Site
Use @zeropress/build-pages when your source tree is mostly Markdown and public assets. Its documentation is now separated from the contract reference:
Custom Theme
Use @zeropress/create-theme to scaffold a starter theme and preview-data fixture.
npx @zeropress/create-theme --name my-docs-theme --template docs
Preview the generated theme locally:
npx @zeropress/theme dev ./my-docs-theme/theme --data ./my-docs-theme/preview-data.json
When the theme is ready, use it from Build Pages with theme-path, or use it directly with @zeropress/build.
with:
source: ./docs
destination: ./_site
theme-path: ./my-docs-theme/theme
Next:
Direct Build Contract
Use @zeropress/build when you already have a preview-data.json file and a ZeroPress theme.
npx @zeropress/build ./theme --data ./preview-data.json --out ./dist
This path is useful when preview-data is generated by an admin dashboard, importer, AI tool, or custom pipeline.
Next:
Current Contracts
New projects should target:
preview-dataversion0.6theme.jsonruntime0.6- Build Pages config version
0.1, documented at build-pages.zeropress.dev
Machine-readable JSON Schema files live at schemas.zeropress.dev.