Minimalistic Python library for generating and serving documentation from Markdown files
Project description
mkpy
Minimalistic Python library for generating and serving documentation from Markdown files.
Installation
pip install mkpy-client
Quick Start
from mkpy import Docs
docs = Docs(
title="My Project",
theme="dark",
port=3000,
)
docs.run()
CLI
# Run with defaults
mkpy serve
# With options
mkpy serve --folder docs --theme dark --port 3000
# From config file
mkpy serve main.py
Features
- Automatic markdown to HTML conversion
- Built-in HTTP server
- Auto routes from file structure
- Light and dark themes
- Custom CSS and JavaScript
- Auto-discovery of css/ and js/ folders
- Navigation menu
- Sitemap generation
Configuration File
# main.py
from mkpy import Docs
docs = Docs(
folder="docs",
title="My Project",
theme="dark",
port=3000,
custom_css="styles.css",
)
Structure
docs/
├── index.md
├── about.md
└── guide/
└── install.md
Routes:
/-> index.md/about-> about.md/guide/install-> guide/install.md
Requirements
- Python 3.9+
- markdown
- rich (optional, for colored output)
- typer (optional, for CLI)
License
MIT
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
mkpy_client-1.4.3.tar.gz
(13.4 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mkpy_client-1.4.3.tar.gz.
File metadata
- Download URL: mkpy_client-1.4.3.tar.gz
- Upload date:
- Size: 13.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b11b5616c1bc080cc7c16c4970520d6e916fcdf5c64801f55f88a851f50d59fd
|
|
| MD5 |
73c885645b220196068392e322cdc721
|
|
| BLAKE2b-256 |
6d8c8bfa51cf197850d835407909d96f74c98fff75468b1c4d82429af545c6a7
|
File details
Details for the file mkpy_client-1.4.3-py3-none-any.whl.
File metadata
- Download URL: mkpy_client-1.4.3-py3-none-any.whl
- Upload date:
- Size: 14.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e630c341992eef9f2c6d82a01858f62fd4426af4e05fed62a1d48a25b140f302
|
|
| MD5 |
601cd558fa3612abdba0e77bc3d965a4
|
|
| BLAKE2b-256 |
8f3a22346087541ba33eadf60c5b1c90a5da4eb19297ccde74f601629899e61e
|