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.1.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.1-py3-none-any.whl (11.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mkpy_client-1.4.1.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.1.tar.gz
Algorithm Hash digest
SHA256 9110c8d85c2d24114f33214259a4c743bed377dfd66e1c65ecec4ba4d6f4a4a2
MD5 bd994918a47f6cfa451cfc83b3566eae
BLAKE2b-256 62a61c8e9b5807b8acff4bffa3d04959fb0a636c94ab3c5c7b522668883cd0ea

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mkpy_client-1.4.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 445849a5d3c0813b5500c4333d8bbb7e77e03f49f59ae8f86177f65e78614043
MD5 29cc57a94bb7d62b09a8541af6079653
BLAKE2b-256 c8ecb93fd3bc22a196b47ecf2d7fc7baceb5aa7b246a1595300df87716abdd66

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