Skip to main content

Don't write docs. Code them.

Project description

MkNodes

Don't write docs. Code them.

PyPI License Package status Daily downloads Weekly downloads Monthly downloads Distribution format Wheel availability Python version Implementation Releases Github Contributors Github Discussions Github Forks Github Issues Github Issues Github Watchers Github Stars Github Repository size Github last commit Github release date Github language count Github commits this week Github commits this month Github commits this year Package status PyUp

Read the completely coded documentation!

Programatically create web pages

def create_github_index_md() -> mk.MkPage:
    page = mk.MkPage("Github index")
    page += mk.MkCode.for_object(create_github_index_md)
    page += mk.MkHeader("MkNodes", level=1)
    page += mk.MkHeader("Don't write docs. Code them.", level=4)
    page += mk.MkShields()
    page += mk.MkLink(DOC_URL, "Read the completely coded documentation!")
    page += mk.MkInstallGuide(header="How to install")
    page += mk.MkHeader("All the nodes!")
    page += mk.MkClassDiagram(mk.MkNode, mode="subclasses", direction="LR")
    return page

Create a website tree

@nav.route.page("Changelog", icon="format-list-group")
def _(page: mk.MkPage):
    page += mk.MkChangelog()

Powerful templating

{{ "Inlined text" | MkAdmonition(inline="left") }}

Execute Python code in markdown

print("# Generated at build time!")
print("Current timestamp:", __import__('datetime').datetime.now())

Use session="name" to persist variables between code blocks:

counter = 1
print(f"Counter is now: {counter + 1}")

How to install

pip

The latest released version is available at the Python package index.

pip install mknodes

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mknodes-2.2.12.tar.gz (342.6 kB view details)

Uploaded Source

Built Distribution

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

mknodes-2.2.12-py3-none-any.whl (472.5 kB view details)

Uploaded Python 3

File details

Details for the file mknodes-2.2.12.tar.gz.

File metadata

  • Download URL: mknodes-2.2.12.tar.gz
  • Upload date:
  • Size: 342.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.18 {"installer":{"name":"uv","version":"0.9.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"25.10","id":"questing","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for mknodes-2.2.12.tar.gz
Algorithm Hash digest
SHA256 6fdeca7a763a8f2c0ca7d01400368087d0c47ae5b7fc57a5d44ba32279d3f198
MD5 d17cd684c116b1b53cfcd8bc7fb3f4e1
BLAKE2b-256 b1077367af609349fb108f16a4bbab6543feb96f0357eea1f60c4194334c5082

See more details on using hashes here.

File details

Details for the file mknodes-2.2.12-py3-none-any.whl.

File metadata

  • Download URL: mknodes-2.2.12-py3-none-any.whl
  • Upload date:
  • Size: 472.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.18 {"installer":{"name":"uv","version":"0.9.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"25.10","id":"questing","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for mknodes-2.2.12-py3-none-any.whl
Algorithm Hash digest
SHA256 930ec8e5cb3cfec1be4f72536aca718621da634b9288e3b3b2fad705a74f7d3b
MD5 82cc76a0ef45b5c26d5ac993d133e745
BLAKE2b-256 0916635a891ef7727fde37b8a4b10f6f5eafdac1e50951b2d94959a9036dda8d

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