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