justapi — /docs

This documentation site is built with Astro and Starlight, making it 100% static-site generator (SSG) compatible.

  1. Push your repository to GitHub or GitLab
  2. Log into Cloudflare Dashboard → Workers & Pages → Create Application → Pages → Connect to Git
  3. Select your repository and branch
  4. Configure build settings:
  5. Framework Preset: Astro
  6. Root Directory: docs_site
  7. Build Command: npm run build
  8. Build Output Directory: dist
  9. Click Save and Deploy

Cloudflare Pages automatically builds and publishes with free global CDN, SSL, and edge distribution.

Method 2: CLI Deployment (wrangler)

cd docs_site
npm run build
npx wrangler pages deploy dist --project-name=justapi-docs

Cloudflare Pages Configuration

{
  "name": "justapi-docs",
  "pages_build_output_dir": "./dist"
}

Custom Domain

  1. Go to Cloudflare Pages → your project → Custom Domains
  2. Add your domain (e.g., docs.justapi.dev)
  3. Update DNS records

See Also

JustAPI v2.0.9 — Open Source MIT License · Built with WebTUI · GitHub

NORMAL master justapi/docs
utf-8 Top 1:1