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¶
- Drop your
.mdfiles in a folder - Start the server
- Beautiful docs instantly available
๐จ Beautiful Design¶
- Inspired by Nuxt UI documentation
- Three-column layout (sidebar, content, table of contents)
- Responsive design for mobile/tablet/desktop
- Dark mode ready with customizable colors
๐ค AI-Friendly¶
- llms.txt support for AI assistants
- llms-full.txt for complete context
- MCP endpoint for interactive queries (250x less context)
- Automatic link transformation
- Optimized for Claude, ChatGPT, and other LLMs
โก Performance¶
- Intelligent caching system
- Fast markdown rendering
- Minimal dependencies
- Production-ready Docker image
๐ฏ Developer Experience¶
- Hot reload in development
- Clear error messages
- Type hints everywhere
- Comprehensive test suite (71 tests, 100% passing)
๐ 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:
- โ The beautiful three-column layout
- โ Syntax-highlighted code blocks
- โ Responsive navigation
- โ Automatic table of contents
- โ Markdown tables
- โ Task lists
- โ And much more!
๐ Learn More¶
Explore the documentation to see all features in action:
- Quick Setup Guide - Get started in 5 minutes
- Markdown Features - See what's possible
- Navigation Guide - Create beautiful menus
- LLMs.txt Guide - AI assistant integration
- MCP Integration - Interactive queries for LLMs
- Docker Deployment - Production deployment
- API Reference - HTTP endpoints
- Configuration - Environment variables
๐ก Why This Server?¶
For Documentation Teams¶
- Zero learning curve - just write Markdown
- Beautiful by default - no CSS needed
- Fast deployment - Docker ready
For Open Source Projects¶
- GitHub-friendly - works with GitHub Pages
- Self-hosted - own your docs
- Modern design - professional appearance
For AI/LLM Integration¶
- llms.txt native - built-in AI support
- Context optimization - smart link transformation
- Full content export - llms-full.txt endpoint
๐จ Customization¶
While the default theme is beautiful, you can customize:
- Colors (CSS variables)
- Logo (place in
assets/) - Navigation structure (sidebar.md, topbar.md)
- Content organization (any folder structure)
๐งช Quality¶
This is a production-ready server with:
- โ 71 unit tests (100% passing)
- โ Type hints everywhere
- โ Linting with Ruff
- โ CI/CD ready
- โ Docker optimized
- โ Security focused
๐ค Contributing¶
Contributions welcome! This server is:
- ๐ Python 3.13+ with modern features
- โก FastAPI for performance
- ๐ฆ uv for fast dependency management
- ๐งช pytest for comprehensive testing
๐ License¶
MIT License - use it freely for any project!
๐ Next Steps¶
- Quick Setup - Get running in 5 minutes
- Features Guide - Explore all capabilities
- Deployment - Go to production
Ready to Create Beautiful Docs?
Get started now and see your documentation transform!
uv run python -m docs_server