08-27-周三_17-09-29
This commit is contained in:
39
node_modules/gitbook-plugin-toggle-chapters/index.js
generated
vendored
Normal file
39
node_modules/gitbook-plugin-toggle-chapters/index.js
generated
vendored
Normal file
@@ -0,0 +1,39 @@
|
||||
module.exports = {
|
||||
website: {
|
||||
assets: "./book",
|
||||
js: [
|
||||
"toggle.js"
|
||||
],
|
||||
css: [
|
||||
"toggle.css"
|
||||
],
|
||||
html: {
|
||||
"html:start": function() {
|
||||
return "<!-- Start book "+this.options.title+" -->"
|
||||
},
|
||||
"html:end": function() {
|
||||
return "<!-- End of book "+this.options.title+" -->"
|
||||
},
|
||||
|
||||
"head:start": "<!-- head:start -->",
|
||||
"head:end": "<!-- head:end -->",
|
||||
|
||||
"body:start": "<!-- body:start -->",
|
||||
"body:end": "<!-- body:end -->"
|
||||
}
|
||||
},
|
||||
hooks: {
|
||||
// For all the hooks, this represent the current generator
|
||||
|
||||
// This is called before the book is generated
|
||||
"init": function() {
|
||||
//console.log("init!");
|
||||
},
|
||||
|
||||
// This is called after the book generation
|
||||
"finish": function() {
|
||||
//console.log("finish!");
|
||||
}
|
||||
|
||||
}
|
||||
};
|
Reference in New Issue
Block a user