Skip to main content

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.4.tar.gz (14.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mkpy_client-1.4.4-py3-none-any.whl (16.0 kB view details)

Uploaded Python 3

File details

Details for the file mkpy_client-1.4.4.tar.gz.

File metadata

  • Download URL: mkpy_client-1.4.4.tar.gz
  • Upload date:
  • Size: 14.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for mkpy_client-1.4.4.tar.gz
Algorithm Hash digest
SHA256 db03d06e4548543320ab6896f07c34ba1c74439dfd6a6ada9b4e58a1e0562901
MD5 8e48b5cf4a87ae48e86da8ed2b7e96c6
BLAKE2b-256 e9fb2eef882c6e79a5f6a46251c947eca78019e6b76b48227457af97f1bfcaca

See more details on using hashes here.

File details

Details for the file mkpy_client-1.4.4-py3-none-any.whl.

File metadata

  • Download URL: mkpy_client-1.4.4-py3-none-any.whl
  • Upload date:
  • Size: 16.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for mkpy_client-1.4.4-py3-none-any.whl
Algorithm Hash digest
SHA256 2023330b936e61b04e477237ca3b8c7554b3b097962a936cd161049db4de1724
MD5 2a021f55e218268c348e4e88c9610a5d
BLAKE2b-256 f1b92c02662a191569b64329102f9760658dba00851af1d1bf9f5a65416f3460

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page