An open API service indexing awesome lists of open source software.

https://github.com/up9cloud/docsify-mindmap

Mind map plugin for docsify
https://github.com/up9cloud/docsify-mindmap

Last synced: about 1 year ago
JSON representation

Mind map plugin for docsify

Awesome Lists containing this project

README

          

# docsify-mindmap

Mind map plugin for [docsify](https://github.com/docsifyjs/docsify).

## Usage

```html











window.$docsify = {
mindmap: {
// https://github.com/dundalek/markmap
markmap: {
preset: 'colorful', // or default
linkShape: 'diagonal' // or bracket
}
}
}



```

````md
# Plain text

```mindmap
root
topic1
subtopic
topic2
subtopic
```
````

````md
# JSON tree format

```mindmap json-tree
{
"name": "root",
"children": [
{
"name": "topic1",
"children": [{ "name": "subtopic" }]
},
{
"name": "topic2",
"children": [{ "name": "subtopic" }]
}
]
}
```
````

> See [demo](http://up9cloud.github.io/docsify-mindmap) for more format

## Dev memo

```bash
npm i
npm run dev
```

## TODO

- [ ] Stop d3 resizing
- [ ] To find another light weight mindmap render engine
- [ ] Support markmap-lib