Skip to content

Getting started

DocsForge is a self-contained documentation engine. pip install, write Markdown, build.

Installation

pip install docsforge

Requires Python 3.10+.

Quick start

# Create a new project interactively
docsforge
cd my-docs

# Start the dev server
docsforge serve

# Build for production
docsforge build

What's inside

After running docsforge to create a project, your directory looks like this:

my-docs/
├── docsforge.yml    # Site configuration
├── docs/
│   └── index.md     # Homepage
└── site/            # Build output

Configuration

The smallest valid docsforge.yml:

site_name: My Project

That's it. All plugins, extensions, and theme settings use sensible defaults. Add configuration only when you need to customize.

Key defaults

FeatureDefault
ThemeMaterial (built-in)
Pluginssearch, tags, blog, info, meta, minify, privacy, i18n
Markdown extensions36 total — all pymdownx + python-markdown (+ 3 built-ins: toc, tables, fenced_code)
MathKaTeX (vendored, $$...$$ works)
Code highlightingPygments (colored syntax)
Dark modeLight/dark toggle in header
FontsSelf-hosted (privacy plugin downloads Google Fonts)
DiagramsTikZ support (.tex → SVG at build; needs a LaTeX toolchain)
OfflineService worker caches all assets

What's built in

Documentation

  • Write Markdown with 36 extensions
  • Admonitions, tabs, task lists, footnotes
  • Mermaid and TikZ diagrams
  • KaTeX math rendering
  • Pygments code highlighting

Discovery

  • Full-text search (Marz)
  • Tags and tag pages
  • Navigation with sections and tabs
  • Table of contents

Theming

  • Material theme with light/dark mode
  • Customizable colors and fonts
  • 16,500+ icons (Material, Lucide, FontAwesome, Octicons, Simple Icons)

Blogging

  • Author profiles
  • Categories and tags
  • Archive pages
  • Pagination
  • RSS feeds

Publishing

  • Static HTML output
  • GitHub Pages ready
  • PWA with offline support
  • Minified HTML/CSS/JS

Next steps