xxholly32 / vuepress-plugin-gitalk-maker

https://xxholly32.github.io/vuepress-plugin-gitalk-maker/guide/
12 stars 1 forks source link

vuepress-plugin-gitalk-maker

vuepress-plugin-gitalk-maker 是基于 vuepress 的评论功能,数据源来自 github 的 issues。底层基于 gitalk

用法

安装

yarn add vuepress-plugin-gitalk-maker

添加到config.js

module.exports = {
  plugins: [
    [
      'gitalk',
      {
        gitalkConfig: {
          clientID: 'clientID',
          clientSecret: 'clientSecret',
          repo: 'vuepress-plugin-gitalk-maker',
          owner: 'xxholly32',
          admin: ['xxholly32'],
          // id: location.pathname, // 无法配置默认用 location.pathname
          distractionFreeMode: false, // Facebook-like distraction free mode
        },
      },
    ],
  ],
};

如果没有 github 应用可以去注册一个, 传送门

gitalkConfig

数据来源于 gitalk

Contributors

Contribution Welcome!

License

MIT