Git Product home page Git Product logo

mdbook-mindmap's Introduction

mdbook-mindmap

Build mdBook Mermaid

A mdBook preprocessor to create mindmaps from the book structure.

Installation

To use the preprocessor download the binary for your system and put it on your path. Binaries for Linux, macOS and Windows are available from the latest release. You should be able to execute the preprocessor from the command line as mdbook-mindmap.

mdBook Configuration

To integrate the preprocessor in your mdBook, add the following lines to your book.toml:

[preprocessor.mindmap]
renderers = ["html"]

Note: The preprocessor only supports the HTML renderer!

Usage

A mindmap can be generated with the following command:

!mindmap

This will generate a mindmap containing the current chapter name as root and all sub chapters with their chapter names. For this the library mermaid.js will be included on every page the command is used.

The mindmap will be generated with the Mermaid mindmap syntax and will render when the page is loaded in the browser.

Example Output

<pre class="mermaid">
mindmap
  root)Tools(
    408513086("`Gradle`")
    932387233("`NPM`")
    2596981504("`Kubernetes`")
      994518411("`Pod`")
      773890894("`Service`")
</pre>
<script type="module">
  import mermaid from "https://cdn.jsdelivr.net/npm/mermaid@10/dist/mermaid.esm.min.mjs";
  mermaid.initialize({ startOnLoad: true });
</script>

mdbook-mindmap's People

Contributors

srtigers98 avatar dependabot[bot] avatar

Stargazers

Benjamin avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.