Core API
The classes you build a documentation with. Nodes (the Markdown fragments, from
MkText to MkDocStrings) are documented on
their own pages in The nodes, each with live examples. The
settings of the site generator ([tool.mknodes] / the mknodes plugin entry) are
listed on Site generator / Configuration.
Page info
Code for this section
mknodes.manual.api_section._
@nav.route.page(is_index=True, hide="toc", icon="api")
def _(page: mk.MkPage) -> None:
page += INDEX_TEXT
table = mk.MkTable(columns=["Page", "Objects"])
for title, identifiers in PAGES.items():
filename = f"{title.lower().replace(' ', '_')}.md"
objects = ", ".join(f"[`{i.rsplit('.', 1)[-1]}`][{i}]" for i in identifiers)
table.add_row((f"[{title}]({filename})", objects))
page += table
Resources
Resources(css=[],
markdown_extensions={'tables': {}},
plugins=[],
js=[],
assets=[],
packages=[])
Metadata
created:
source_filename: /home/runner/work/mknodes/mknodes/src/mknodes/manual/api_section.py
source_function: _
source_line_no: 176
hide:
- toc
icon: material/api
title: Core API