MkModulePage¶
TODO: THIS NODE ISNT READY FOR PRIMETIME YET
An MkModulePage is an MkPage subclass used to display information about a specific module. It uses a Jinja template to display the module-related information. By default, the Docstrings and tables showing the contained classes and submodules. The template can be adjusted manually in case a different layout is preferred.
class MkModulePage(mktemplatepage.MkTemplatePage)
Page showing information about a module.
This is an example for an MkModulePage with the default layout, applied to mknodes.info:
info¶
Class info¶
🛈 DocStrings¶
Information/Metadata- related classes.
Page info
Code for this page
mknodes.manual.page_section._¶
21@nav.route.page("MkModulePage")
22def _(page: mk.MkPage) -> None:
23 from mknodes import info
24
25 variables = dict(example_module=info)
26 page += mk.MkTemplate("pages/mkmodulepage.jinja", variables=variables)
Resources
Resources(css=[],
markdown_extensions={},
plugins=[Plugin('mkdocstrings')],
js=[],
assets=[],
packages=[])
Metadata
created:
source_filename: /home/runner/work/mknodes/mknodes/src/mknodes/manual/page_section.py
source_function: _
source_line_no: 21
title: MkModulePage