Skip to content

Getting Started

This documentation site is built with Astro and the Starlight theme, and is intended to be deployed on Cloudflare Pages.

Prerequisites

  • Node.js 18.14 or newer
  • npm (or pnpm/yarn)
  • Cloudflare CLI: wrangler (for deploys)

Local development

Terminal window
npm install
npm run dev

Open the local server URL printed in the terminal.

Build

Terminal window
npm run build
npm run preview

Deploy to Cloudflare Pages

You can deploy the static build output from ./dist with Wrangler:

Terminal window
npm run build
npx wrangler pages deploy ./dist --project-name uizap-docs

After creating or linking the Pages project in Cloudflare, map the custom domain docs.uizap.com to this Pages project in the Cloudflare dashboard.