Skip to content

MkDocs plugin and extension to create mindmaps from markdown using markmap

License

Notifications You must be signed in to change notification settings

sunilkum84/mkdocs-markmap

Repository files navigation

mkdocs-markmap

Beautiful and simple mindmaps written in markdown.

MIT licensePyPILatest ReleaseOpen IssuesOpen PRs

This is a plugin and an extension for mkdocs to add markmap.

Prerequisits

This plugin was tested with, but is not limited to:

  • Python 3.9
  • mkdocs 1.1

Quickstart

Install

pip install mkdocs-markmap

Configure

Add this to mkdocs.yml:

plugins: - markmap

Usage

This plugin supports code blocks of markdown as follows:

```markmap# Root## Branch 1* Branchlet 1a* Branchlet 1b## Branch 2* Branchlet 2a* Branchlet 2b```

It can also make use of file includes to keep your markdown tidy:

Look at this beautiful mindmap:{!mindmap.mm.md!}

Advanced Settings

There are more options available for mkdocs.yml (shown values are defaults):

plugins: - markmap: base_path: docsencoding: utf-8file_extension: .mm.mdd3_version: 6.7.0lib_version: 0.11.6view_version: 0.2.6

In addition, feel free to define your favourite source urls like this:

extra_javascript: - https://unpkg.com/[email protected]/dist/d3.min.js - https://unpkg.com/[email protected]/dist/browser/index.min.js - https://unpkg.com/[email protected]/dist/index.min.js

⚠️ The urls need to contain one of these keywords to be considered as deviation from default:

  • d3
  • markmap-lib
  • markmap-view

Troubleshooting

Nav tree lists markmaps

  1. Move your markmap files to a separate folder next to docs, e.g. mindmaps
  2. Configure base_path accordingly (see Advanced Settings)

Credits 👏

Some of the development approaches are based on implementations provided by the following projects:

About

MkDocs plugin and extension to create mindmaps from markdown using markmap

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python95.0%
  • JavaScript4.4%
  • CSS0.6%