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.2.tar.gz (11.6 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.2-py3-none-any.whl (12.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mkpy_client-1.4.2.tar.gz
  • Upload date:
  • Size: 11.6 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.2.tar.gz
Algorithm Hash digest
SHA256 e9af707a9cf0e087450bec87d3f2e1a331acaa1bcfa887cac526520bdffa8b62
MD5 6688d8bf9254582223afc583cb952557
BLAKE2b-256 f1983a0bb8230d3eec34136ebcb354f2df4c9c1dcb95f1f75ae1aa149c0309fd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mkpy_client-1.4.2-py3-none-any.whl
  • Upload date:
  • Size: 12.6 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e01ef884467e8d3d98608762a95dead6a3f8405e9c98d9f6b01ecaf4279e8608
MD5 4132a51eb953d89e7f0c3243c981f406
BLAKE2b-256 5e6f521273bb1bee845760299d065ba6df70d752bc0398e6393d08013f248be3

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