Skip to content

Add buttons with external links to a Gitbook website toolbar

License

Notifications You must be signed in to change notification settings

NoRedInk/gitbook-plugin-toolbar

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

plugin-toolbar

This plugin adds buttons with external links to a Gitbook website toolbar.

Configuration

This plugin can be configured in book.json:

{
    "pluginsConfig": {
        "toolbar": {
            "buttons":
            [
                {
                    "label": "GitHub",
                    "icon": "fa fa-github",
                    "url": "https://github.com/",
                    "target": "_self"
                },
                {
                    "label": "Search page title on StackOverflow",
                    "icon": "fa fa-stack-overflow",
                    "url": "http://stackoverflow.com/search?q={{title}}"
                },
                {
                    "label": "Share link on Facebook",
                    "icon": "fa fa-facebook",
                    "url": "http://www.facebook.com/sharer/sharer.php?s=100&p[url]={{url}}"
                },
                {
                    "label": "Share page title and link on Twitter",
                    "icon": "fa fa-twitter",
                    "url": "http://twitter.com/home?status={{title}}%20{{url}}"
                }
            ]
        }
    }
}

About

Add buttons with external links to a Gitbook website toolbar

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%