gitbook-plugin-asciitree

1.0.9 • Public • Published

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
        }
    }
}

Readme

Keywords

Package Sidebar

Install

npm i gitbook-plugin-asciitree

Weekly Downloads

1

Version

1.0.9

License

ISC

Last publish

Collaborators

  • jianglibo