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-press

Initialize

scaffold
npx carve-press init

Use --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/
  .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 build

The 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 --open

The dev server rebuilds on content and config changes. To preview an existing build, run:

static preview
npx carve-press serve --port 4173

Next, read Writing Content for frontmatter, includes, and cross-reference rules.

Edit this page

Last updated