Introduction

Welcome to Cdocs — a minimal, data-driven static documentation site generator (SSG) written in C++.

It compiles the Markdown sources in docs/ together with the config, navigation, i18n strings and front-end assets in .Cdocs/ into a purely static, offline-capable, zero-runtime-dependency site under dist/.

#What problem it solves

Traditional doc tools either require a Node/Python runtime or scatter their configuration so widely that restyling means touching source code. Cdocs is built around a different set of goals:

#Core features

#Three steps to get started

# 1) One-shot build (auto-compile generator -> generate site -> RSS -> PWA)
.Cdocs\tools\build.cmd          # Windows
bash .Cdocs/tools/build.sh      # Linux / macOS

# 2) Local preview (built-in C++ static server, default http://localhost:8088)
Cdocs serve

# 3) Scaffold a standalone site (copies engine + Cdocs.exe + sample docs/intro.md)
Cdocs new my-docs

Tip: serve ships a C++ HTTP server, so no Python or Node install is required; it only listens on 127.0.0.1. Re-run after editing docs/ to refresh the preview.

#Where to go next

Last updated: 2026-08-02 18:47 · About 3 min read (403 words)