Skip to content

Commit

Permalink
chore: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
phil65 committed Sep 28, 2023
1 parent 5bd5f78 commit c2a3850
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 18 deletions.
22 changes: 5 additions & 17 deletions mknodes/manual/internals_section.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,11 @@ def create_internals_section(root_nav: mk.MkNav):
"""Create the "Internals" Sub-MkNav and attach it to given MkNav."""
root_nav += nav
page = nav.add_index_page(hide="toc")
page += "TODO"


@nav.route.page("Build steps")
def _(page: mk.MkPage):
node = mk.MkTimeline()
node.add_item(date="Step 1", content=STEP_1)
ls = mk.MkList(INFO_PROVIDERS)
Expand All @@ -64,23 +69,6 @@ def create_internals_section(root_nav: mk.MkNav):
page.created_by = create_internals_section


# @nav.route.page("Tree", hide="toc", icon="graph")
# def create_tree_page(page: mk.MkPage):
# page += mk.MkHeader("This is the tree we built up to now.", level=3)
# tree = page.root.get_tree_repr(detailed=False, max_depth=3)
# page += mk.MkCode(tree, language="")


@nav.route.page("Requirements", hide="toc", icon="puzzle-edit")
def _(page: mk.MkPage):
page += mk.MkJinjaTemplate("requirements.md")


@nav.route.page("Build Log", hide="toc", icon="puzzle-edit")
def _(page: mk.MkPage):
page += mk.MkText("log() | MkCode", is_jinja_expression=True)


@nav.route.nav("Complete code")
def _(nav: mk.MkNav):
nav.parse.module("mknodes/manual/", hide="toc")
2 changes: 1 addition & 1 deletion mknodes/theme/materialtheme.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
)


def build_badge(icon: str, text: str = "", typ: str = ""):
def build_badge(icon: str, text: str = "", typ: str = "") -> str:
classes = f"mdx-badge mdx-badge--{typ}" if typ else "mdx-badge"
root = xml.Span(classes)
if icon:
Expand Down

0 comments on commit c2a3850

Please sign in to comment.