Getting Started ¶
CarvePress turns .crv files into a static documentation site. The fastest path is to install the package, scaffold a site, and run the dev server.
Install ¶
npm
npm install --save-dev @markup-carve/carve-pressnpm install --save-dev @markup-carve/carve-pressInitialize ¶
scaffold
npx carve-press initnpx carve-press initUse --force only when you intentionally want scaffold files overwritten.
Project Layout ¶
created files
carve-press.config.ts
docs/
index.crv
guide/
getting-started.crv
public/
.gitkeepcarve-press.config.ts
docs/
index.crv
guide/
getting-started.crv
public/
.gitkeep
The default source directory is docs, the default output directory is dist, and both can be changed in Configuration.
First Build ¶
build
npx carve-press buildnpx carve-press buildThe build discovers pages, expands includes, renders Carve through the extension stack, validates navigation and links, then writes static files.
Dev Server ¶
serve while editing
npx carve-press dev --opennpx carve-press dev --openThe dev server rebuilds on content and config changes. To preview an existing build, run:
static preview
npx carve-press serve --port 4173npx carve-press serve --port 4173Next, read Writing Content for frontmatter, includes, and cross-reference rules.
Last updated