0.0.4 • Published 6 years ago
gitbook-plugin-valine v0.0.4
Quick Start
First of all, you should learn about how to get appId and appKey.
- You can see https://valine.js.org/quickstart.html
Add it to your
book.jsonconfiguration:
{
"plugins": ["valine"],
"pluginsConfig": {
"valine": {
"appId": "your appId",
"appKey": "your appKey"
}
}
}- Install your plugins using:
gitbook install ./After that, you can use the valine comment system.
Configuration
| value | type | default | required | description |
|---|---|---|---|---|
| appId | string | yes | Application <APP_ID> from Leancloud. | |
| appKey | string | yes | Application <APP_KEY> from Leancloud. | |
| placeholder | string | Just go go | no | Comment box placeholders. |
| avatar | string | '' | no | Gravatar type.Optional value:- ''(Empty string) - mp- identicon- monsterid- wavatar- retro - robohash- hide |
| pageSize | number | 10 | no | Number of pages per page. |
| lang | string | zh-CN | no | Multilingual support.Optional value:- zh-CN - zh-TW- en- ja |
| recordIP | boolean | false | no | Record reviewer IP. |
Advanced E-mail Alert
If you want to config the e-mail alert, you can see