Skip to content

Presentation nodes

Node Docstrings Markdown extensions
:mdi-file-tree-outline: MkTreeView Node to display tree structures.

Currently supports directories and Node subclasses (including MkNodes).
pymdownx.highlight, pymdownx.superfences
:mdi-presentation: MkReprRawRendered Node showing a tabbed block to visualize a node in different representations.

It contains a tab for the repr, one for the rendered output,
one for the markdown and a Repr tree in case the node has children.
The node can also be a string with a jinja macro returning an MkNode.
In that case a "Jinja" tab containing the macro is prepended to the other tabs.
:mdi-graph-outline: MkDiagram Class representing a mermaid diagram.

MkDiagrams can show directed acyclic graphs and allows to manually
create diagrams.
pymdownx.superfences
:mdi-timeline: MkTimeline Node to show a JavaScript-supported Timeline.

Consists of cards which slide in and out once they enter / leave the screen.
Page info
Code for this section
mknodes.manual.nodes_section._
@nav.route.nav("Presentation nodes")
def _(nav: mk.MkNav) -> None:
    page = nav.add_page(is_index=True, hide="toc")
    page += create_section_for_nodes(nav, PRESENTATION_NODES)
    page.created_by = create_section_for_nodes
Resources
Resources(css=[],
          markdown_extensions={'tables': {}},
          plugins=[],
          js=[],
          assets=[],
          packages=[])
Metadata
created:
  source_filename: /home/runner/work/mknodes/mknodes/src/mknodes/manual/nodes_section.py
  source_function: _
  source_line_no: 147
hide:
- toc
title: Presentation nodes