An open-source toolkit to scaffold, generate and ship multilingual, versioned documentation to GitHub Pages — with a built-in AI assistant, an MCP server, and a themeable docs shell.
GitPageDocs turns a single config file into a complete, static documentation site: multilingual (en/pt/es), version-aware (/v/:version), themeable and deployable to GitHub Pages with no server. It ships as three npm packages that share one core.
@gitpagedocs/cli
@gitpagedocs/mcp
@gitpagedocs/tools
02
Quickstart
Generate your first docs in seconds.
Run the CLI in your repository. It writes a gitpagedocs/ folder with config.json and multilingual markdown you can edit right away.
config.json for site and versions; langs/ for every UI string.
config.json has two top-level sections. site holds the chrome (name, defaultLanguage, theme defaults, header icons, AiChatEnabled, docsAccess). VersionControl lists the documentation versions.
Markdown
HTML / source-viewer or external url
Video
Audio
05
Layouts & themes
60+ light and dark themes, switchable at runtime.
Each theme is a JSON template (colors, typography, component tokens) turned into CSS variables at runtime. Pick a default with site.ThemeDefault and site.ThemeModeDefault; visitors can switch theme and light/dark mode from the header.
06
AI assistant
14 providers, streaming, keys encrypted at rest.
The docs ship an AI assistant in two surfaces: an in-docs chat drawer (enabled by site.AiChatEnabled) and a dedicated /ai console. Both share one core across 14 providers: OpenAI, Anthropic, Gemini, OpenRouter, Ollama, Azure OpenAI, Mistral, DeepSeek, Cohere, Groq, xAI, Together, Fireworks and Perplexity.
07
MCP server
Expose tools and resources to editors and AI agents.
gitpagedocs mcp start runs a Model Context Protocol server over stdio exposing 20 tools (filesystem, AI, doc generation/analysis) and 7 resources for editors and AI agents.
project://structure
project://docs
project://config
project://repository
08
Tools core
The shared, runtime-agnostic foundation.
@gitpagedocs/tools is the core both the CLI and the MCP server build on. It provides the crypto service (AES-256-GCM), the encrypted credential vault, a memory cache with TTL, a redaction-aware logger, and the shared doc-access key scheme.
09
Protected docs
Gate documentation by access key, roles or external auth.
Set a top-level auth block in a version config (accessKeys, rolesStorageKey, providers) and per-route authorization (accessKeyId, requiredRoles, requireExternalAuth, allowedProviders). A whole documentation can also sit behind a password gate via site.docsAccess.
10
Deploy & environment
Ship to GitHub Pages and the environment flags.
gitpagedocs deploy generates a GitHub Actions workflow that statically exports the site and publishes it to GitHub Pages on every push to the default branch.
GITPAGEDOCS_REPOSITORY_SEARCH
GITHUB_ACTIONS
Scroll to explore
Overview
What GitPageDocs is and the problem it solves.
GitPageDocs turns a single config file into a complete, static documentation site: multilingual (en/pt/es), version-aware (/v/:version), themeable and deployable to GitHub Pages with no server. It ships as three npm packages that share one core.
Package
Role
@gitpagedocs/cli
Scaffolds config, generates docs, AI generation, configures GitHub Pages.
@gitpagedocs/mcp
Model Context Protocol server exposing tools & resources to AI agents.
Run the CLI in your repository. It writes a gitpagedocs/ folder with config.json and multilingual markdown you can edit right away.
# one-off, no install
npx @gitpagedocs/cli
# include local theme layouts
npx @gitpagedocs/cli --layoutconfig
# configure GitHub Pages + commit + push
npx @gitpagedocs/cli deploy --owner <you> --repo <repo>
CLI
Commands and options of the gitpagedocs command.
Command
Description
gitpagedocs
Generate config and docs in gitpagedocs/.
gitpagedocs --layoutconfig
Also generate local layouts/templates.
gitpagedocs --home
Standalone distribution (gitpagedocshome/).
gitpagedocs ai
Interactive AI documentation generator.
gitpagedocs document[:repo|:file|:folder]
Generate documentation with AI for a scope.
gitpagedocs deploy / pages
Configure GitHub Pages via Actions and push.
gitpagedocs mcp start
Start the MCP server over stdio.
Option
Description
--owner / --repo
Target GitHub owner and repository.
--path <subpath>
Docs subpath; sets the base path for correct CSS/JS on project sites.
--output <dir>
Output directory (default: gitpagedocs).
--search true|false
Enable/disable repository search (with --home).
--push
Create workflow, commit artifacts, push.
--interactive / -i
Interactive mode with prompts.
Configuration
config.json for site and versions; langs/ for every UI string.
config.json has two top-level sections. site holds the chrome (name, defaultLanguage, theme defaults, header icons, AiChatEnabled, docsAccess). VersionControl lists the documentation versions.
UI text lives next to it: site.languages in config.json switches each language on or off in menu order ({ "languages": { "en": true, "pt": true, "es": false } }; a language set to false is hidden from the selector) and gitpagedocs/langs/<lang>.json holds that language's langmenu (header, search, source viewer, audio player, AI chat, docs-access labels) and translations (notFound, navigation, footer). To add a language, create its file and add "<lang>": true to site.languages.
Content type
Config key
Markdown
routes-md
HTML / source-viewer or external url
routes-html
Video
routes-video
Audio
routes-audio
Layouts & themes
60+ light and dark themes, switchable at runtime.
Each theme is a JSON template (colors, typography, component tokens) turned into CSS variables at runtime. Pick a default with site.ThemeDefault and site.ThemeModeDefault; visitors can switch theme and light/dark mode from the header.
The catalog includes editor-inspired themes (VSCode Light/Dark) plus 25 modern palettes such as Midnight, Neon Noir, Ember, Cobalt, Lagoon, Orchid, Velvet and more.
AI assistant
14 providers, streaming, keys encrypted at rest.
The docs ship an AI assistant in two surfaces: an in-docs chat drawer (enabled by site.AiChatEnabled) and a dedicated /ai console. Both share one core across 14 providers: OpenAI, Anthropic, Gemini, OpenRouter, Ollama, Azure OpenAI, Mistral, DeepSeek, Cohere, Groq, xAI, Together, Fireworks and Perplexity.
MCP server
Expose tools and resources to editors and AI agents.
gitpagedocs mcp start runs a Model Context Protocol server over stdio exposing 20 tools (filesystem, AI, doc generation/analysis) and 7 resources for editors and AI agents.
project://structure
project://docs
project://config
project://repository
project://readme
project://ai/providers
project://ai/models
Tools core
The shared, runtime-agnostic foundation.
@gitpagedocs/tools is the core both the CLI and the MCP server build on. It provides the crypto service (AES-256-GCM), the encrypted credential vault, a memory cache with TTL, a redaction-aware logger, and the shared doc-access key scheme.
Protected docs
Gate documentation by access key, roles or external auth.
Set a top-level auth block in a version config (accessKeys, rolesStorageKey, providers) and per-route authorization (accessKeyId, requiredRoles, requireExternalAuth, allowedProviders). A whole documentation can also sit behind a password gate via site.docsAccess.
Deploy & environment
Ship to GitHub Pages and the environment flags.
gitpagedocs deploy generates a GitHub Actions workflow that statically exports the site and publishes it to GitHub Pages on every push to the default branch.
Variable
Effect
GITPAGEDOCS_REPOSITORY_SEARCH
Enables repository search, the multi-repo home and this guide.
GITHUB_ACTIONS
Switches the build into GitHub Pages static-export mode.