Base nodes

Node

Docstrings

Markdown extensions

[puzzle-outline MkNode](https://phil65.github.io/mknodes/sphinx/The nodes/Base nodes/mknode/)

Base class for everything which can be expressed as Markup.

This class combines tree node functionality with markdown generation.
Starting from the root nav (aka Docs) down to nested Markup blocks,
the whole project can be represented by one tree.

MkNode is the base class for all nodes. We dont instanciate it directly.
All subclasses carry an MkAnnotations node (except the MkAnnotations node itself)
They can also pass an indent as well as a shift_header_levels keyword argument
in order to modify the resulting markdown.

[text MkText](https://phil65.github.io/mknodes/sphinx/The nodes/Base nodes/mktext/)

Class for any Markup text.

All classes inheriting from MkNode can get converted to this Type.

[format-header-pound MkHeader](https://phil65.github.io/mknodes/sphinx/The nodes/Base nodes/mkheader/)

Super simple header node.

[info-16 MkCompactAdmonition](https://phil65.github.io/mknodes/sphinx/The nodes/Base nodes/mkcompactadmonition/)

Compact admonition info box.

[format-text MkCritic](https://phil65.github.io/mknodes/sphinx/The nodes/Base nodes/mkcritic/)

MkCritic block.

pymdownx.critic

[link-24 MkLink](https://phil65.github.io/mknodes/sphinx/The nodes/Base nodes/mklink/)

A simple Link (with optional icon and option to show up as a button).

If no title is given, the URL is used as a title.

[keyboard MkKeys](https://phil65.github.io/mknodes/sphinx/The nodes/Base nodes/mkkeys/)

Node to display Keyboard keys.

Mostly used to explain shortcuts / commands for the keyboard.

pymdownx.keys

[bars-progress MkProgressBar](https://phil65.github.io/mknodes/sphinx/The nodes/Base nodes/mkprogressbar/)

Node to display a CSS-based progress bar.

pymdownx.progressbar

[chat MkSpeechBubble](https://phil65.github.io/mknodes/sphinx/The nodes/Base nodes/mkspeechbubble/)

Node for showing a css-based speech bubble.

[jinja MkTemplate](https://phil65.github.io/mknodes/sphinx/The nodes/Base nodes/mktemplate/)

Node representing a jinja template.

Renders templates with the context-aware MkNodes jinja environment.
Rendered nodes become virtual children of this node.
Additional variables can be passed to the render process.

[format-list-group MkLlm](https://phil65.github.io/mknodes/sphinx/The nodes/Base nodes/mkllm/)

Node for LLM-based text generation.

Page info
Code for this section
mknodes.manual.nodes_section._
137@nav.route.nav("Base nodes")
138def _(nav: mk.MkNav) -> None:
139    page = nav.add_page(is_index=True, hide="toc")
140    page += create_section_for_nodes(nav, BASE_NODES)
141    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: 137
hide:
- toc
title: Base nodes