Docker-based offline documentation system for open-source frameworks and languages.
Run documentation servers for popular frameworks and languages entirely offline. Each documentation site runs in an isolated Docker container, managed via a Terminal UI or HTTP API.
Docs included: FastAPI, Alpine.js, Astro, PHP, Python, SlimPHP
# Check dependencies
bash ood doctor
# Build Docker images
bash ood build
# Start services
bash ood up
# Open Terminal UI
bash ood tuiBefore using Open Offline Docs, ensure these are installed on your system:
| Dependency | Required | Purpose | Install |
|---|---|---|---|
| Docker | Yes | Container runtime | Download |
| docker-compose | Yes | Multi-container orchestration | Install |
| Python 3 | Yes | Manager service (container control) | Download |
| curl | Yes | HTTP API testing | Install |
| Bun | Optional | Terminal UI runtime | Install |
Verify all dependencies:
bash ood doctor-
Clone the repository:
git clone https://github.com/BOLD-ENGINEERING/open.offline.docs.git cd open.offline.docs -
(Optional) Configure base directory:
cp .env.example .env # Edit .env and set BASE_DIR to your absolute path -
Build Docker images:
bash ood build
-
Start services:
bash ood up
All commands use the ood script:
# System
bash ood doctor # Check system dependencies
bash ood build # Build Docker images
# Services
bash ood up # Start all services
bash ood up --only api # Start only API
bash ood down # Stop all services
bash ood status # Show container status
bash ood clean # Stop and prune containers
# Info
bash ood list # List available docs
bash ood help # Show help
bash ood tui # Open Terminal UILaunch the interactive TUI:
bash ood tuiNavigate with vim keys:
| Key | Action |
|---|---|
j / ↓ |
Navigate down |
k / ↑ |
Navigate up |
Enter |
Execute |
q / Esc |
Quit |
Start the API service, then use:
# List all docs
curl http://127.0.0.1:8080/docs
# Start a doc
curl -X POST http://127.0.0.1:8080/docs/fastapi/start
# Stop a doc
curl -X POST http://127.0.0.1:8080/docs/fastapi/stop
# Get doc status
curl http://127.0.0.1:8080/docs/fastapi/statusEnvironment variables (optional):
| Variable | Used By | Description |
|---|---|---|
BASE_DIR |
ood, TUI | Absolute path to project root |
OOD_DOCS_PATH |
manager | Path to docs directory |
See tests/README.md for test documentation.
# Verify dependencies
bash ood test --dep
# Test API endpoints (requires API running)
bash ood test --apiSee AGENTS.md for developer guidelines and architecture details.
GPL v3. See LICENSE.