mirror of
https://github.com/tmrts/go-patterns.git
synced 2025-02-20 14:23:13 +03:00
15 lines
388 B
JavaScript
15 lines
388 B
JavaScript
require([ 'gitbook' ], function (gitbook) {
|
|
gitbook.events.bind('start', function (e, config) {
|
|
var githubURL = config.github.url;
|
|
|
|
gitbook.toolbar.createButton({
|
|
icon: 'fa fa-github',
|
|
label: 'GitHub',
|
|
position: 'right',
|
|
onClick: function() {
|
|
window.open(githubURL)
|
|
}
|
|
});
|
|
});
|
|
});
|