Getting Started
This guide configures your repository from zero to running docs.
Prerequisites
- Node.js 20+
- npm 10+
Install and generate
- Install package:
npm install gitpagedocs
- Generate docs config and versions:
npx gitpagedocs
- Optional: generate local layouts/templates:
npx gitpagedocs --layoutconfig
Local run
- Development:
npm run dev
- Production locally:
npm run buildnpm start
CLI behavior
npx gitpagedocs generates only artifacts in gitpagedocs/:
- JSON + markdown docs assets
- No
index.html - No
index.js - No install command execution
Repository search mode
Local repository search is controlled by:
GITPAGEDOCS_REPOSITORY_SEARCH=trueGITPAGEDOCS_REPOSITORY_SEARCH=false
On GitHub Pages builds (GITHUB_ACTIONS=true), repository-search home is enabled.
Version: 1.1.0