Skip to content

convert indented lines to ascii directory tree for gitbook

Notifications You must be signed in to change notification settings

jianglibo/gitbook-plugin-asciitree

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

convert indented lines to ascii directory tree for gitbook

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published