08-27-周三_17-09-29
This commit is contained in:
14
node_modules/gitbook-plugin-github/assets/plugin.js
generated
vendored
Normal file
14
node_modules/gitbook-plugin-github/assets/plugin.js
generated
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
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)
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
Reference in New Issue
Block a user