Don't write docs. Code them.
Project description
MkNodes
Don't write docs. Code them.
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)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
mknodes-2.2.12-py3-none-any.whl
(472.5 kB
view details)
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6fdeca7a763a8f2c0ca7d01400368087d0c47ae5b7fc57a5d44ba32279d3f198
|
|
| MD5 |
d17cd684c116b1b53cfcd8bc7fb3f4e1
|
|
| BLAKE2b-256 |
b1077367af609349fb108f16a4bbab6543feb96f0357eea1f60c4194334c5082
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
930ec8e5cb3cfec1be4f72536aca718621da634b9288e3b3b2fad705a74f7d3b
|
|
| MD5 |
82cc76a0ef45b5c26d5ac993d133e745
|
|
| BLAKE2b-256 |
0916635a891ef7727fde37b8a4b10f6f5eafdac1e50951b2d94959a9036dda8d
|