Skip to content

Commit

Permalink
chore: docs
Browse files Browse the repository at this point in the history
  • Loading branch information
phil65 committed Sep 17, 2023
1 parent ac91ccd commit 7521377
Show file tree
Hide file tree
Showing 10 changed files with 16 additions and 10 deletions.
2 changes: 1 addition & 1 deletion mknodes/basenodes/mkcodeimage.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@


class MkCodeImage(mknode.MkNode):
"""Class representing a Code block."""
"""Node to display a code block as an SVG image."""

ICON = "material/code-json"

Expand Down
2 changes: 1 addition & 1 deletion mknodes/basenodes/mkiframe.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@


class MkIFrame(mknode.MkNode):
"""Node for showing a formatted list."""
"""Node for embedding an IFrame."""

ICON = "material/web-box"

Expand Down
2 changes: 1 addition & 1 deletion mknodes/basenodes/mkkeys.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@


class MkKeys(mknode.MkNode):
"""Node to include other MkPages / Md files."""
"""Node to display Keyboard shortcuts."""

REQUIRED_EXTENSIONS = ["pymdownx.keys"]
ICON = "fontawesome/regular/keyboard"
Expand Down
2 changes: 1 addition & 1 deletion mknodes/basenodes/mklink.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@


class MkLink(mknode.MkNode):
"""A simple Link."""
"""A simple Link (with optional icon and option to show up as a button)."""

ICON = "octicons/link-24"
REQUIRED_EXTENSIONS = ["attr_list"] # for buttons
Expand Down
2 changes: 1 addition & 1 deletion mknodes/basenodes/mkprogressbar.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@


class MkProgressBar(mknode.MkNode):
"""Node to include other MkPages / Md files."""
"""Node to display a CSS-based progress bar."""

REQUIRED_EXTENSIONS = ["pymdownx.progressbar"]
ICON = "fontawesome/solid/bars-progress"
Expand Down
2 changes: 2 additions & 0 deletions mknodes/basenodes/mktabcontainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@


class MkTabContainer(mkcontainer.MkContainer):
"""Base class for nodes containing tabs."""

items: list[mktabs.MkTab | mktabs.MkTabBlock]
Tab: type[mktabs.MkTab | mktabs.MkTabBlock]
ICON = "material/tab"
Expand Down
4 changes: 2 additions & 2 deletions mknodes/basenodes/mktasklist.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@


class MkTask(mkcontainer.MkContainer):
"""Node for a single definition."""
"""Node for a single task listitem."""

REQUIRED_EXTENSIONS = ["pymdownx.tasklist"]
ICON = "material/library"
Expand Down Expand Up @@ -43,7 +43,7 @@ def _to_markdown(self) -> str:


class MkTaskList(mkcontainer.MkContainer):
"""Node for definition lists."""
"""Node for task lists."""

REQUIRED_EXTENSIONS = ["pymdownx.tasklist"]
ICON = "material/library"
Expand Down
6 changes: 5 additions & 1 deletion mknodes/navs/mknav.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class MkNav(mknode.MkNode):
A nav is named (exception is the root nav, which has section name = None),
has an associated virtual file (in general a SUMMARY.md),
an optional index page and can contain other navs as well as pages.
an optional index page and can contain other navs as well as pages and links.
"""

ICON = "material/navigation-outline"
Expand All @@ -49,9 +49,13 @@ def __init__(
self.section = section # helpers.slugify(section)
self.filename = filename
self.nav = navigation.Navigation()
"""Navigation object containing all child items."""
self.route = navrouter.NavRouter(self)
"""Router used for decorator routing."""
self.parse = navparser.NavParser(self)
"""Parser object used to build Navs from different data / directory structures."""
self.metadata = metadata.Metadata()
"""Page Metadata, in form of a dataclass."""
super().__init__(**kwargs)

def __repr__(self):
Expand Down
2 changes: 1 addition & 1 deletion mknodes/templatenodes/mkinstallguide.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@


class MkInstallGuide(mkcontainer.MkContainer):
"""Node to display an install guide (currently PyPi only)."""
"""Node to display an install guide."""

ICON = "material/help"

Expand Down
2 changes: 1 addition & 1 deletion mknodes/templatenodes/mkpluginflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@


class MkPluginFlow(mkcontainer.MkContainer):
"""Text node containing Instructions to set up a dev environment."""
"""Node showing info about the different stages of an MkDocs plugin."""

ICON = "material/dev-to"
STATUS = "new"
Expand Down

0 comments on commit 7521377

Please sign in to comment.