Source for caprover.com, containing two independently built applications:
homepage/: Next.js static homepagewebsite/: Docusaurus v1 documentationdocs/: documentation Markdownscripts/: composition and production smoke checks
The production build uses Docusaurus as the base, then overlays the homepage's index.html, _next/, and homepage-assets/ output. homepage/ is the source of truth for the root homepage.
Requires Node.js 22.13 or newer.
cd homepage
npm ci
npm run devRun checks:
npm run lint
npm testThe legacy Docusaurus build currently requires Node.js 10.
cd website
npm install
npm startAdd Markdown files in docs/ and register them in website/sidebars.json.
From the repository root:
(cd website && npm install && npm run clean-build)
(cd homepage && npm ci && npm run lint && npm test)
node scripts/compose-site.mjs
node scripts/smoke-combined-site.mjsThe deployable artifact is written to build/combined-site/.
Pushes to master run .github/workflows/website-publish.yml, build both applications, compose and smoke-test the artifact, then publish it to GitHub Pages. Do not publish either framework's output directly.