Skip to content

Commit

Permalink
chore: temp revert
Browse files Browse the repository at this point in the history
  • Loading branch information
phil65 committed Nov 14, 2023
1 parent b0815ff commit d494d60
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions mknodes/manual/nodes_section.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,16 @@ def create_section_for_nodes(
) -> mk.MkTable:
table = mk.MkTable(columns=["Node", "Docstrings", "Markdown extensions"])
for kls in klasses:
tpl = "classpage_custom.jinja"
page = mk.MkClassPage(kls, icon=kls.ICON, template=tpl, parent=nav)
if not kls.nodefile:
continue
page = nav.add_page(kls.__name__, icon=kls.ICON)
page += "## Examples"
examples = kls.nodefile.get_examples(page)
for k, v in examples.items():
page += mk.MkHeader(f"Example: **{k}**")
page += mk.MkAdmonition(v.pop("Jinja"), title="Jinja", typ="jinja")
page += mk.MkAdmonition(v.pop("Repr"), title="Python", typ="python")
page += mk.MkTabbed(v)
nav += page
if kls.STATUS:
page.metadata.status = kls.STATUS
Expand Down

0 comments on commit d494d60

Please sign in to comment.