Skip to main content

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:

markdown_extensions:
  - markmap
plugins:
  - markmap

Advanced Settings

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

markdown_extensions:
  - markmap:
      base_path: docs
      encoding: utf-8
      file_extension: .mm.md
plugins:
  - markmap:
      d3_version: 6.3.1
      lib_version: 0.11.1
      view_version: 0.2.1

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

extra_javascript:
  - https://unpkg.com/d3@6.3.1/dist/d3.min.js
  - https://unpkg.com/markmap-lib@0.11.1/dist/browser/index.min.js
  - https://unpkg.com/markmap-view@0.2.1/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

Wait, what?! Do I need an extension or a plugin? :unamused:

Q: What does the plugin do?

A: It supports code blocks of markdown as follows:

```markmap
# Root

## Branch 1

* Branchlet 1a
* Branchlet 1b

## Branch 2

* Branchlet 2a
* Branchlet 2b
```

Q: What does the extension do?

A: Well, having such a support is nice, but huge mindmap blocks might be annoying within your tidy markdown files. That is why the extension provides an addition to the markdown syntax. It includes files whereever you need them to be:

Look at this beautiful mindmap:

{!mindmap.mm.md!}

But you do need the plugin for that. Thus, don't forget to follow the quickstart example above.

Credits :clap:

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mkdocs-markmap-1.1.1.tar.gz (7.9 kB view details)

Uploaded Source

Built Distribution

mkdocs_markmap-1.1.1-py3-none-any.whl (8.8 kB view details)

Uploaded Python 3

File details

Details for the file mkdocs-markmap-1.1.1.tar.gz.

File metadata

  • Download URL: mkdocs-markmap-1.1.1.tar.gz
  • Upload date:
  • Size: 7.9 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

Hashes for mkdocs-markmap-1.1.1.tar.gz
Algorithm Hash digest
SHA256 d0fc4b2986bdc6484b85c1ce7e3b4dabda362f06e5db0f218a1f952cdf01e077
MD5 ac6beb4a801c6a5bac64bc9447d434e8
BLAKE2b-256 e0a61e31a6ecf76b2375ab5b5d26c27e8d780a88c768803c39ad0d15d64f2968

See more details on using hashes here.

File details

Details for the file mkdocs_markmap-1.1.1-py3-none-any.whl.

File metadata

  • Download URL: mkdocs_markmap-1.1.1-py3-none-any.whl
  • Upload date:
  • Size: 8.8 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

Hashes for mkdocs_markmap-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f1e4377ba4a19cc193f4b60e83123ed8a14c5f2e6ea6745b939d20b307740379
MD5 b2e0b216555bc9f831c2d10a0a4e03c8
BLAKE2b-256 d18705f4899870cc64c80217c609f4243fc0ea0a8c6e27d8b5af85d0830d1ea5

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page