π A modern, space-tech themed documentation framework built on MkDocs Material
Originally developed for Phantom-WG documentation needs, now available as an open-source toolkit.
# Install Python dependencies
pip install -r requirements.txt
# Node.js 22+ required
node --version # Should be v22.0.0 or higherpython serve.py
# Open http://localhost:8000python build.py
# Output: outputs/site/# Local Docker
python serve.py --docker
python build.py --dockerphantom-documentation-kit/
βββ π mkdocs.yml # MkDocs configuration
βββ π config.json # Project settings
βββ π serve.py # Development server
βββ π build.py # Production builder
βββ π docs/ # Documentation source
β βββ π en/ # English docs
β βββ πΉπ· tr/ # Turkish docs
β βββ π assets/ # Static assets
βββ π overrides/ # Theme customization
β βββ π main.html # Custom HTML template
β βββ π assets/
β βββ π¨ stylesheets/ # Custom CSS
β βββ π javascripts/ # Custom JS
β βββ π€ fonts/ # Custom fonts
βββ π tools/ # Development tools
β βββ πΌοΈ image-optimizer/ # Sharp-based optimizer
β βββ π¦ vendor-builder/ # Dependency bundler
βββ π lib/ # Core Python modules
βββ π³ docker.py # Docker integration
βββ π logging.py # Logging system
βββ π― main.py # Main application
{
"paths": {
"output_dir": "outputs/www",
"vendor_dir": "overrides/assets/vendor",
"vendor_builder_dir": "tools/vendor-builder"
},
"build": {
"clean_before_build": true,
"check_vendor_dependencies": true
},
"serve": {
"port": 8000,
"host": "localhost",
"check_vendor_dependencies": true
},
"docker": {
"image_name": "phantom-docs-kit",
"build_tag": "latest",
"container_prefix": "phantom-docs"
},
"logging": {
"enabled": false,
"console_level": "INFO",
"file_level": "DEBUG",
"log_directory": "logs",
"max_file_size": "10MB",
"backup_count": 5,
"timestamp_format": "%Y-%m-%d %H:%M:%S",
"log_filename_pattern": "phantom-{mode}-{date}-{time}.log"
}
}cd tools/image-optimizer
npm install
node optimize.js ./images --quality 80 --output ./optimizedcd tools/vendor-builder
npm install
node build.js# Install Mutagen (macOS)
brew install mutagen-io/mutagen/mutagen
# Configure SSH
ssh-keygen -t ed25519 -C "phantom-docs"
ssh-copy-id user@remote-server
# Connect & sync
export DOCKER_HOST=ssh://user@remote-server && python serve.py --docker# mkdocs.yml
plugins:
- i18n:
languages:
- locale: en
name: English
- locale: tr
name: TΓΌrkΓ§eThe examples/ directory contains practical implementations and utilities:
Mutagen Integration (examples/mutagen-integration-sample/)
Demonstrates remote Docker development with Mutagen file synchronization. Includes SDK implementation and testing scripts for efficient remote container workflows.
Utility Scripts
run_with_recording.py- Captures terminal sessions as Asciinema recordings for documentation demos
This project is licensed under the MIT License - see the LICENSE file for details.
See THIRD_PARTY_LICENSES for dependencies.
Copyright Β© 2025 RΔ±za Emre ARAS