贡献者插件
基于https://github.com/kidonng/vuepress-plugin-contributors做二次开发,感谢原作者
配置参数
.vuepress/config.js
module.exports = {plugins: [[require('./plugins/vuepress-plugin-contributors/index'),{docsRepo: 'tencent-connect/bot-docs', //github仓库路径docsBranch: 'main', // 分支docsDir: 'docs', // 文档目录 默认`themeConfig.docsDir`label: '贡献者',// test: https://api.xuann.wang/api/github-file-contributors?user=tencent-connect&repo=bot-docs&tree=main&path=docs/README.mdapi: 'https://api.xuann.wang/api/github-file-contributors', // API接口 tododisableRoutes: ['/develop/api/'], //需要忽略的路径},],],// i18nthemeConfig: {locales: {'/': { contributorsLabel: 'Contributors' },'/zh/': { contributorsLabel: '贡献者' },},},};
