cf host

Build and serve learning docs as a local website.

Overview

cf host transforms your learning documentation into a searchable, browsable website. Perfect for reviewing notes, sharing knowledge with your team, or integrating docs with other tools.

Usage

cf host [path]

# Example
cf host ./my-learning-docs

The default path is <project>/docs/learn/.

Features

Local Server

Docs are served at http://localhost:3333 by default.

Incremental Static Regeneration (ISR)

The server automatically detects changes to your markdown files and regenerates affected pages without a full rebuild.

Built-in search powered by Pagefind. Search across all your documentation instantly.