MkDocs plugin and extension to creates mindmaps from markdown using markmap
Project description
mkdocs-markmap
Beautiful and simple mindmaps written in markdown.
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.8
- 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: docs
encoding: utf-8
file_extension: .mm.md
d3_version: 6.7.0
lib_version: 0.11.5
view_version: 0.2.6
In addition, feel free to define your favourite source urls like this:
extra_javascript:
- https://unpkg.com/d3@6.7.0/dist/d3.min.js
- https://unpkg.com/markmap-lib@0.11.5/dist/browser/index.min.js
- https://unpkg.com/markmap-view@0.2.6/dist/index.min.js
:warning: The urls need to contain one of these keywords to be considered as deviation from default:
d3
markmap-lib
markmap-view
Credits :clap:
Some of the development approaches are based on implementations provided by the following projects:
- markmap (key feature of this project)
- markdown-include (basis for extension support)
- mkdocs-mermaid2-plugin (basis for plugin support)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file mkdocs-markmap-2.1.0.tar.gz
.
File metadata
- Download URL: mkdocs-markmap-2.1.0.tar.gz
- Upload date:
- Size: 8.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/51.3.3 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 88da5674cdf7bb4a38f5e5ab54caf02566eb95b9c7326fdea6b260b2dde2f806 |
|
MD5 | 2e135b6cfc19a07941c6f497bfd8842f |
|
BLAKE2b-256 | 22eea885f060f360e13d2ce014a946aa2219420ce923e82c9bb1ef1f77413937 |
File details
Details for the file mkdocs_markmap-2.1.0-py3-none-any.whl
.
File metadata
- Download URL: mkdocs_markmap-2.1.0-py3-none-any.whl
- Upload date:
- Size: 9.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/51.3.3 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 919b85d6d7400ee06643dd8ad5861269631ded0d31f47cdc278525f6628cb38c |
|
MD5 | d26fbf3ce4c35f13065793ffce0dbda4 |
|
BLAKE2b-256 | 5adf5db81326e17032b89680fb6210fbca10bb5628b81aa2f443e60a4c7ac366 |