Markdown Documentation Server

A lightweight, fast, and beautiful documentation server that renders Markdown files as styled HTML with zero configuration.

๐Ÿš€ What Makes This Special?

This isn't just another static site generator. It's a live documentation server with remarkable features:

โœจ Zero Configuration

๐ŸŽจ Beautiful Design

๐Ÿค– AI-Friendly

โšก Performance

๐ŸŽฏ Developer Experience


๐Ÿ“š Quick Start

Installation

# Clone the repository
git clone https://github.com/yourusername/markdown-docs-server
cd markdown-docs-server

# Install dependencies with uv (recommended)
pip install uv
uv sync

# Or with pip
pip install -e .

Run Locally

# Development mode (auto-reload)
uv run python -m docs_server

# Or with environment variables
DOCS_ROOT=./my-docs PORT=8080 uv run python -m docs_server

Visit http://localhost:8080 and see your documentation come to life! ๐ŸŽ‰


๐Ÿณ Docker Deployment

Quick Start

# Build the image
docker build -t markdown-docs-server .

# Run with your docs
docker run -p 8080:8080 \
  -v $(pwd)/my-docs:/app/docs \
  markdown-docs-server

Production Deployment

# With environment variables
docker run -d \
  -p 8080:8080 \
  -e BASE_URL=https://docs.example.com \
  -e DEBUG=false \
  -v $(pwd)/docs:/app/docs \
  --restart unless-stopped \
  --name docs-server \
  markdown-docs-server

๐Ÿ“– Documentation Structure

Your documentation needs just 3 required files and 1 optional:

docs/
โ”œโ”€โ”€ index.md       # Homepage (required)
โ”œโ”€โ”€ sidebar.md     # Navigation structure (required)
โ”œโ”€โ”€ topbar.md      # Top bar navigation (required)
โ””โ”€โ”€ llms.txt       # AI assistant index (optional)

All other .md files are your content pages!


๐ŸŽฏ Key Features

Feature Description
Markdown Extensions Tables, code highlighting, TOC, task lists, and more
Navigation Sidebar with groups, topbar with sections
Caching Smart caching for fast performance
Security Path traversal protection
Dual Mode Serve HTML or raw markdown
Assets Images, PDFs, videos supported
LLMs.txt Built-in AI assistant support
MCP Support Interactive queries via JSON-RPC (250x less context)
Responsive Mobile-first design

๐ŸŒŸ What You're Seeing Now

This documentation is powered by the server itself! Every feature you see here is built-in:


๐Ÿ” Learn More

Explore the documentation to see all features in action:


๐Ÿ’ก Why This Server?

For Documentation Teams

For Open Source Projects

For AI/LLM Integration


๐ŸŽจ Customization

While the default theme is beautiful, you can customize:


๐Ÿงช Quality

This is a production-ready server with:


๐Ÿค Contributing

Contributions welcome! This server is:


๐Ÿ“œ License

MIT License - use it freely for any project!


๐Ÿš€ Next Steps

  1. Quick Setup - Get running in 5 minutes
  2. Features Guide - Explore all capabilities
  3. Deployment - Go to production

Ready to Create Beautiful Docs?

Get started now and see your documentation transform!

uv run python -m docs_server