Create a GitBook plguin based on watermark-js-plus,it can generate custom watermark information on every GitBook html page in order to protect copyright.
- add
watermark-foxintopluginsitems in yourbook.jsfile gitbook install && gitbook serve,then it will take into effect
Default configuration listed as below:
pluginsConfig: {
'watermark-fox': {
enable: true,
width: 200,
height: 200,
content: 'www.gitbook.com',
fontColor: '#d0d0d0'
}
}but we can modify it based on our custom requirements according to config:
pluginsConfig: {
'watermark-fox': {
enable: true,
width: 200,
height: 200,
content: 'www.foo.com',
fontColor: '#f1f1f1'
}
}If we set enable to false, it will not create watermark anymore.
