vuepress-theme-hope implements the comment feature with built-in
@mr-hope/vuepress-plugin-comment (opens new window).
# Enable Support page config
Comment feature is enabled globally by default, the configuration key is
For the complete config item of the plugin ,please see @mr-hope/vuepress-plugin-comment plugin documentation (opens new window).
# Comment Provider
You can choose from 3 comment service provider: Waline, Vssue and Valine.
Comparison between services
- Waline uses a backend server to support comment and pageview statistics, and you can comment without logging in to any account. It needs extra configuration on backend, and you can deploy on vercel for free.
- Vssue uses the issue panel of the code platform repo and requires the user to login or register the corresponding platform account.
- Valine uses leancloud to support pageview statistics, and you can comment without logging in to any account
If your site is for the general public rather than programmers, Waline is recommended.
# Get APP_ID and APP_Key
After that, create a vercel app using the below button.
Then input your new GitHub repo name and set
LEAN_MASTER_KEY environment variables in the "Environment Variables" column.
APP ID is the value of
APP Key to
Master Key to
Deploy button to deploy. It will show you deploy successfully after a minitues time. Then config the vercel link in your themeConfig:
Config will be listed on Plugin Config (opens new window).
For more details, please see Waline Docs (opens new window)。
# Choose a platform to use
Vssue can enable comments for your static pages via the
Issue System of
Gitee, and you can choose one of those platforms.
Go to Supported Platforms - Set up OAuth App (opens new window) for detailed instructions.
After this step, you will get
client id and
client secret of your OAuth App, which will be used for Vssue options:
owner: the account / group that owns the repository
repo: the name of the repository to store comments
client idof your oauth app
client secretof your oauth app (only required for some of the platforms)
# Use the plugin
The only difference is that, you should set
platform rather than the
api package itself.
@vssue/vuepress-plugin-vssue will auto resolve the corresponding API package according to the value of
You can go to the repository meteorlxy/vssue-demo (opens new window) to get the demo code.
# Get APP_ID and APP_Key
Click here (opens new window) to register or login in leancloud.
Create new application in Leancloud, and you will get APP ID / APP Key.
Config will be listed on Config (opens new window).
Fill in the corresponding APP ID and APP Key, then Valine will be well configured.
For Valine config and usage, please see Valine Docs (opens new window)。