Skip to content

Commit ae0c716

Browse files
committed
first commit
1 parent 9b5a67a commit ae0c716

File tree

3 files changed

+49
-0
lines changed

3 files changed

+49
-0
lines changed

assets/rmlink.js

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
require([
2+
'gitbook',
3+
'jquery'
4+
],function(gitbook,$){
5+
var link = $('.gitbook-link')
6+
link.attr('href','http://zbcc.net.cn')
7+
link.text('Published by Zimy')
8+
})

index.js

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
module.exports = {
2+
book:{
3+
assets:'./assets',
4+
js:[
5+
'rmlink.js'
6+
]
7+
}
8+
}

package.json

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
"name": "gitbook-plugin-custom",
3+
"version": "0.0.1",
4+
"description": "a plugin to remove link 'published with gitbook'",
5+
"main": "index.js",
6+
"engines": {
7+
"gitbook": ">1.x.x"
8+
},
9+
"scripts": {
10+
"test": "echo \"Error: no test specified\" && exit 1"
11+
},
12+
"keywords": [
13+
"gitbook",
14+
"gibook-plugin",
15+
"plugin"
16+
],
17+
"author": "XXX",
18+
"license": "ISC",
19+
"gitbook": {
20+
"properties": {
21+
"publisher": {
22+
"type": "string",
23+
"default": "Zimy",
24+
"description": "describe who publish this doc!"
25+
},
26+
"link": {
27+
"type": "string",
28+
"default": "http://zbcc.net.cn",
29+
"description": "the link when you click"
30+
}
31+
}
32+
}
33+
}

0 commit comments

Comments
 (0)