Skip to content
This repository was archived by the owner on Feb 5, 2026. It is now read-only.

🌟 A modern, space-tech themed documentation framework built on MkDocs Material

License

Notifications You must be signed in to change notification settings

ARAS-Workspace/phantom-documentation-kit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

4 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ‘» Phantom Documentation Kit

Python Node.js MkDocs Material Docker License

🌟 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.

Live Demo


πŸš€ Quick Start

Prerequisites

# Install Python dependencies
pip install -r requirements.txt

# Node.js 22+ required
node --version  # Should be v22.0.0 or higher

πŸƒ Development Server

python serve.py
# Open http://localhost:8000

πŸ“¦ Production Build

python build.py
# Output: outputs/site/

🐳 Docker Mode

# Local Docker
python serve.py --docker
python build.py --docker

πŸ“ Project Structure

phantom-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

πŸ”§ Configuration

config.json

{
  "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"
  }
}

πŸ› οΈ Built-in Tools

Image Optimizer

cd tools/image-optimizer
npm install
node optimize.js ./images --quality 80 --output ./optimized

Vendor Builder

cd tools/vendor-builder
npm install
node build.js

🌟 Advanced Features

Remote Development with Mutagen

# 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

Multi-language Documentation

# mkdocs.yml
plugins:
  - i18n:
      languages:
        - locale: en
          name: English
        - locale: tr
          name: TΓΌrkΓ§e

Example Implementations

The 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

πŸ“œ License

This project is licensed under the MIT License - see the LICENSE file for details.

Third-Party Licenses

See THIRD_PARTY_LICENSES for dependencies.

Copyright Β© 2025 RΔ±za Emre ARAS

About

🌟 A modern, space-tech themed documentation framework built on MkDocs Material

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published