Skip to content
convert indented lines to ascii directory tree for gitbook
JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
test
.gitignore
README.md
gitbook-env.js
index.js
package.json

README.md

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
        }
    }
}
You can’t perform that action at this time.