gitbook-plugin-asciitree
v1.0.9
Published
gitbook plugin for convert indented lines to an ascii directory tree
Downloads
5
Readme
ascii directory tree plugin for GitBook
convert indented lines to ascii directory tree for gitbook.
you can see asciitree in action. https://jianglibo.gitbooks.io
in:
{% asciitree %}
app
-main.js
-helper.js
-others
--Brocfile.js
package.json
{% endasciitree %}
out:
├── app
| ├── main.js
| ├── helper.js
| └── others
| └── Brocfile.js
└── package.json
Add it to your book.json with a basic configuration:
{
"plugins": ["asciitree"],
"pluginsConfig": {
"asciitree": {
"leadingChar": "no need, because plugin will guess leadingChar.",
"trimRight": true
}
}
}