Skip to content

About

MkDocs plugins to simplify documentation at Kenyoni Software.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

34 Commits

Folders and files

Repository files navigation

Kenyoni MkDocs Plugins

Install

pip install git+https://github.com/kenyoni-software/kny-mkdocs@1.6.2

Configuration

With their default values.

plugins:
  - kny_badge
  - kny_common:
      # Enable admonition idea
      admonition_idea: false
      # Enable MathJax, use "latest" or a tag
      mathjax: ""
      # Enable Mermaid patch
      mermaid: true
      # Enable tablesort, use "latest" or a tag
      tablesort: ""
  - kny_external_link_icon:
      # Icon path of material mkdocs icons.
      icon: "material/open-in-new"
      # Exclude all these links starting with...
      # Empty by default.
      exclude:
        - "https://docs.godotengine.org"
  - kny_godot_ref:
      # Godot documentation URL
      godot_url: "https://docs.godotengine.org/en/stable"
  - kny_nav:
      theme: "classic"
      # Delimiter used between navigation labels in the classic theme.
      delimiter: "❯"
  - kny_source_ref:
      source_url: ""
      # Source code URL (e.g. https://github.com/kenyoni-software/project-catta/tree/main)

Plugins

kny_badge

Create badges, with a left and right text or use shorts for special badges with icons.

{{ kny:badge "left text" }}
{{ kny:badge "left text" "right text" }}
{{ kny:badge "left text" --left-bg --right-bg }}
{{ kny:badge "left text" --left-bg red --right-bg #00ff00}}

{{ kny:badge-version "version" }}
{{ kny:badge-version "version" --right-bg }}

{{ kny:badge-experimental "text" }}
{{ kny:badge-experimental "text" --right-bg }}

{{ kny:badge-download "text" }}
{{ kny:badge-download "text" --right-bg }}

Using icons requires additional configuration:

markdown_extensions:
  - attr_list
  - pymdownx.emoji:
      emoji_index: !!python/name:material.extensions.emoji.twemoji
      emoji_generator: !!python/name:material.extensions.emoji.to_svg

kny_common

Admonition Idea

Admonition with an idea lamp.

!!! idea "title"

    Text.

MathJax

Enable pymdownx.arithmatex settings with generic: true and adds MathJax javascripts.

Mermaid

Enable Mermaid patch to fix the tree view colors in dark mode.

Tablesort

Add the tablesort javascripts.

kny_external_link_icon

Adds a small icon to make external links more visible.

kny_godot_ref

Adds an option to link to a class of the Godot Documentation.

{{ kny:godot class_name }}

kny_nav

Create a compact navigation path with either the classic or modern theme. Classic uses the configured delimiter, modern uses adjacent arrow-shaped items.
An item beginning with * will be highlighted. The delimiter option applies only to the classic theme.

[[ File / *Tools / Open New... / Fix color ]]

kny_source_ref

Create a link relative to your source base path.

{{ kny:source "path/foo bar" }}

About

MkDocs plugins to simplify documentation at Kenyoni Software.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages