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

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.0.tar.gz (11.0 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.0-py3-none-any.whl (11.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mkpy_client-1.4.0.tar.gz
  • Upload date:
  • Size: 11.0 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.0.tar.gz
Algorithm Hash digest
SHA256 f4a4a6e22111e42316066f3c142a44c048994b0252bf29ce175a62561fa00cc4
MD5 af93e700171fe546eacf1a56b8a729d0
BLAKE2b-256 d44ac82159faa990bcec34f225db4f77e696fd668ce53c08d8d10875b8744534

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mkpy_client-1.4.0-py3-none-any.whl
  • Upload date:
  • Size: 11.8 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 67711a05ec5678dcbaadb78d00a46a840c747b2ed637d870f5078360eb679038
MD5 26486a94eb5b7d112b30a3e6a5f3db43
BLAKE2b-256 fa6526ad561f216f4318b62afeb6d3871fd1335f19570f341d19e8251befd642

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