├── .editorconfig ├── .github ├── FUNDING.yml ├── ISSUE_TEMPLATE.md ├── ISSUE_TEMPLATE │ ├── bug_report.md │ ├── feature-request-improvement.md │ ├── other.md │ └── question-help.md └── PULL_REQUEST_TEMPLATE.md ├── .gitignore ├── .npmignore ├── LICENSE ├── README.md ├── default_plugin_config.js ├── dev ├── .vuepress │ └── config.js └── README.md ├── examples ├── images │ ├── alipay.jpeg │ ├── web.png │ ├── web_mini.png │ └── weixin.png └── index.html ├── index.js ├── libs ├── Gitalk.vue ├── clientRootMixin.js └── enhanceAppFile.js ├── package-lock.json ├── package.json └── styles └── gitalk-plus.styl /.editorconfig: -------------------------------------------------------------------------------- 1 | # http://editorconfig.org 2 | root = true 3 | 4 | [*] 5 | indent_style = space 6 | indent_size = 2 7 | end_of_line = lf 8 | charset = utf-8 9 | trim_trailing_whitespace = true 10 | insert_final_newline = true 11 | 12 | [*.md] 13 | trim_trailing_whitespace = false 14 | -------------------------------------------------------------------------------- /.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | # These are supported funding model platforms 2 | 3 | github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2] 4 | patreon: # Replace with a single Patreon username 5 | open_collective: # Replace with a single Open Collective username 6 | ko_fi: # Replace with a single Ko-fi username 7 | tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel 8 | community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry 9 | liberapay: # Replace with a single Liberapay username 10 | issuehunt: # Replace with a single IssueHunt username 11 | otechie: # Replace with a single Otechie username 12 | custom: https://zhousiwei.gitee.io/ibooks/about/#%E6%89%93%E8%B5%8F 13 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE.md: -------------------------------------------------------------------------------- 1 | 5 | 6 | ## 🐥环境 & 设置 7 | 8 | **Node.js & npm version** 9 | 10 | ```bash 11 | 12 | ``` 13 | 14 | **Your browsers** (Optional) 15 | 16 | > The browser you use 17 | 18 | **Your OSes** (Optional) 19 | 20 | > what platforms (operating systems and devices) are affected? 21 | 22 | Your package.json `package.json`: 23 | 24 | ```json 25 | 26 | ``` 27 | 28 | ## For BUG 29 | 30 | 34 | 35 | ## ❓问题 36 | 37 | 38 | 39 | ## For feature request 40 | 41 | 42 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/bug_report.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Bug修复 3 | about: Something isn't working as expected 4 | title: '' 5 | labels: '' 6 | assignees: '' 7 | 8 | --- 9 | 10 | ## ❓问题 11 | 12 | 13 | 14 | ## 🤔结果 & 预期 15 | 16 | Please describe what you expected to see.(请描述一下你希望看到什么) 17 | 18 | ## 🐥环境 & 设置 19 | 20 | **Node.js & npm version** 21 | 22 | ```bash 23 | ``` 24 | 25 | ## 🙋Others 26 | 27 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/feature-request-improvement.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: 功能要求/改进 3 | about: I have a feature request, suggestion, improvement etc... 4 | title: '' 5 | labels: '' 6 | assignees: '' 7 | 8 | --- 9 | 10 | ## Feature Request 11 | 12 | 13 | 14 | ## 🙋Others 15 | 16 | 17 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/other.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: 其他问题 3 | about: Not a question, feature-request, bug 4 | title: '' 5 | labels: '' 6 | assignees: '' 7 | 8 | --- 9 | 10 | ## ❓问题 11 | 12 | 13 | 14 | ## 🤔结果 & 预期 15 | 16 | Please describe what you expected to see.(请描述一下你希望看到什么) 17 | 18 | ## 🐥环境 & 设置 19 | 20 | **Node.js & npm version** 21 | 22 | ```bash 23 | ``` 24 | 25 | ## 🙋Others 26 | 27 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/question-help.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: 问题/帮助 3 | about: I have a question, need help (e.g. Customize) 4 | title: '' 5 | labels: '' 6 | assignees: '' 7 | 8 | --- 9 | 10 | ## ❓问题 11 | 12 | 13 | 14 | ## 🤔结果 & 预期 15 | 16 | Please describe what you expected to see.(请描述一下你希望看到什么) 17 | 18 | ## 🐥环境 & 设置 19 | 20 | **Node.js & npm version** 21 | 22 | ```bash 23 | ``` 24 | 25 | ## 🙋Others 26 | 27 | -------------------------------------------------------------------------------- /.github/PULL_REQUEST_TEMPLATE.md: -------------------------------------------------------------------------------- 1 | 4 | 5 | ## Description 6 | Please describe the change as necessary. 7 | If it's a feature or enhancement please be as detailed as possible. 8 | If it's a bug fix, please link the issue that it fixes or describe the bug in as much detail. 9 | 10 | ## Specific Changes proposed 11 | Please list the specific changes involved in this pull request. 12 | 13 | ## Screenshots 14 | 15 | 16 | 17 | ## Pull request tasks 18 | 19 | - [ ] Add test cases for the changes. 20 | - [ ] Passed the CI test. 21 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # File created using '.gitignore Generator' for Visual Studio Code: https://bit.ly/vscode-gig 2 | 3 | # Created by https://www.gitignore.io/api/visualstudiocode,windows,node 4 | 5 | ### Node ### 6 | # Logs 7 | logs 8 | *.log 9 | npm-debug.log* 10 | yarn-debug.log* 11 | yarn-error.log* 12 | 13 | ### IntelliJ IDEA ### 14 | .idea 15 | *.iws 16 | *.iml 17 | *.ipr 18 | 19 | /.settings/ 20 | target/ 21 | /logs/ 22 | /.svn/ 23 | *.class 24 | *.jar 25 | 26 | # Runtime data 27 | pids 28 | *.pid 29 | *.seed 30 | *.pid.lock 31 | 32 | # Directory for instrumented libs generated by jscoverage/JSCover 33 | lib-cov 34 | 35 | # Coverage directory used by tools like istanbul 36 | coverage 37 | 38 | # nyc test coverage 39 | .nyc_output 40 | 41 | # Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files) 42 | .grunt 43 | 44 | # Bower dependency directory (https://bower.io/) 45 | bower_components 46 | 47 | # node-waf configuration 48 | .lock-wscript 49 | 50 | # Compiled binary addons (https://nodejs.org/api/addons.html) 51 | build/Release 52 | 53 | # Dependency directories 54 | node_modules/ 55 | jspm_packages/ 56 | 57 | # TypeScript v1 declaration files 58 | typings/ 59 | 60 | # Optional npm cache directory 61 | .npm 62 | 63 | # Optional eslint cache 64 | .eslintcache 65 | 66 | # Optional REPL history 67 | .node_repl_history 68 | 69 | # Output of 'npm pack' 70 | *.tgz 71 | 72 | # Yarn Integrity file 73 | .yarn-integrity 74 | 75 | # dotenv environment variables file 76 | .env 77 | 78 | # parcel-bundler cache (https://parceljs.org/) 79 | .cache 80 | 81 | # next.js build output 82 | .next 83 | 84 | # nuxt.js build output 85 | .nuxt 86 | 87 | # vuepress build output 88 | .vuepress/dist 89 | 90 | # Serverless directories 91 | .serverless 92 | 93 | ### VisualStudioCode ### 94 | .vscode/* 95 | !.vscode/settings.json 96 | !.vscode/tasks.json 97 | !.vscode/launch.json 98 | !.vscode/extensions.json 99 | 100 | ### Windows ### 101 | # Windows thumbnail cache files 102 | Thumbs.db 103 | ehthumbs.db 104 | ehthumbs_vista.db 105 | 106 | # Dump file 107 | *.stackdump 108 | 109 | # Folder config file 110 | [Dd]esktop.ini 111 | 112 | # Recycle Bin used on file shares 113 | $RECYCLE.BIN/ 114 | 115 | # Windows Installer files 116 | *.cab 117 | *.msi 118 | *.msix 119 | *.msm 120 | *.msp 121 | 122 | # Windows shortcuts 123 | *.lnk 124 | 125 | # End of https://www.gitignore.io/api/visualstudiocode,windows,node 126 | 127 | # Custom rules (everything added below won't be overriden by 'Generate .gitignore File' if you use 'Update' option) 128 | .history 129 | .DS_Store 130 | -------------------------------------------------------------------------------- /.npmignore: -------------------------------------------------------------------------------- 1 | src 2 | ts*.json 3 | .travis.yml 4 | .babelrc 5 | .eslint* 6 | rollup.config.js 7 | .github 8 | .editorconfig 9 | yarn.lock 10 | .history 11 | .DS_Store 12 | .build/ 13 | dev/ 14 | .temp/ 15 | .git* 16 | 17 | # Logs 18 | logs 19 | *.log 20 | npm-debug.log* 21 | yarn-debug.log* 22 | yarn-error.log* 23 | 24 | # Runtime data 25 | pids 26 | *.pid 27 | *.seed 28 | *.pid.lock 29 | 30 | # Directory for instrumented libs generated by jscoverage/JSCover 31 | lib-cov 32 | 33 | # Coverage directory used by tools like istanbul 34 | coverage 35 | 36 | # nyc test coverage 37 | .nyc_output 38 | 39 | # Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) 40 | .grunt 41 | 42 | # Bower dependency directory (https://bower.io/) 43 | bower_components 44 | 45 | # node-waf configuration 46 | .lock-wscript 47 | 48 | # Compiled binary addons (https://nodejs.org/api/addons.html) 49 | build/Release 50 | 51 | # Compiled files 52 | dist 53 | 54 | # Dependency directories 55 | node_modules/ 56 | jspm_packages/ 57 | 58 | # TypeScript v1 declaration files 59 | typings/ 60 | 61 | # Optional npm cache directory 62 | .npm 63 | 64 | # Optional eslint cache 65 | .eslintcache 66 | 67 | # Optional REPL history 68 | .node_repl_history 69 | 70 | # Output of 'npm pack' 71 | *.tgz 72 | 73 | # Yarn Integrity file 74 | .yarn-integrity 75 | 76 | # dotenv environment variables file 77 | .env 78 | 79 | # parcel-bundler cache (https://parceljs.org/) 80 | .cache 81 | 82 | # next.js build output 83 | .next 84 | 85 | # nuxt.js build output 86 | .nuxt 87 | 88 | # vuepress build output 89 | .vuepress/dist 90 | 91 | # Serverless directories 92 | .serverless 93 | 94 | # Test directory 95 | test 96 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2019 思伟 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # vuepress-plugin-mygitalk 2 | 3 | ``` 4 | .___ ___. ____ ____ _______ __ .___________. ___ __ __ ___ 5 | | \/ | \ \ / / / _____|| | | | / \ | | | |/ / 6 | | \ / | \ \/ / | | __ | | `---| |----` / ^ \ | | | ' / 7 | | |\/| | \_ _/ | | |_ | | | | | / /_\ \ | | | < 8 | | | | | | | | |__| | | | | | / _____ \ | `----.| . \ 9 | |__| |__| |__| \______| |__| |__| /__/ \__\ |_______||__|\__\ 10 | ``` 11 | 12 | [](https://www.npmjs.com/package/vuepress-plugin-mygitalk) 13 | 14 | [](https://www.npmjs.com/package/vuepress-plugin-mygitalk) 15 | [](https://www.npmjs.com/package/vuepress-plugin-mygitalk) 16 | [](https://www.npmjs.com/package/vuepress-plugin-mygitalk) 17 |  18 |  19 |  20 |  21 | [](https://zhousiwei.gitee.io "Author") 22 | [](https://v1.vuepress.vuejs.org/zh/) 23 | [](https://github.com/JoeyBling/vuepress-theme-yilia-plus) 24 | [](https://jq.qq.com/?_wv=1027&k=58Ypj9z "博客搭建交流群") 25 | 26 | ------------------ 27 | 28 | > **欢迎使用和Star支持,如使用过程中碰到问题,可以提出[Issue](https://github.com/JoeyBling/vuepress-plugin-mygitalk/issues),我会尽力完善** 29 | 30 | ## 介绍 31 | **VuePress集成[Gitalk](https://github.com/gitalk/gitalk). | [Gitalk](https://github.com/gitalk/gitalk) plugin for VuePress.** 32 | 33 | - 功能还很少,欢迎各位给我提意见和建议~ 34 | - [vuepress-plugin-mygitalk](https://github.com/JoeyBling/vuepress-plugin-mygitalk) 是为 [VuePress](https://v1.vuepress.vuejs.org/zh/) `1.0.0+`制作的插件。 35 | - [Gitalk文档](https://github.com/gitalk/gitalk/blob/master/readme-cn.md#%E8%AE%BE%E7%BD%AE) 36 | - 关于申请并配置第三方应用请查看 ➡️ [https://www.jianshu.com/p/ac7658cc912f](https://www.jianshu.com/p/ac7658cc912f) 37 | 38 | ## 线上预览 39 | 40 | > **预览 ➡️ [https://zhousiwei.gitee.io/ibooks](https://zhousiwei.gitee.io/ibooks)** 41 | 42 | ## 推荐一款VuePress主题 43 | > **一款简洁优雅的VuePress主题 ➡️ [https://github.com/JoeyBling/vuepress-theme-yilia-plus](https://github.com/JoeyBling/vuepress-theme-yilia-plus)** 44 | 45 | ## 效果截图 46 | 47 |  48 | 49 | ## 安装 50 | 51 | ```bash 52 | yarn add vuepress-plugin-mygitalk 53 | # or 54 | npm install vuepress-plugin-mygitalk --save 55 | ``` 56 | 57 | ------------ 58 | 59 | ## 开始使用 60 | 61 | ### 引入该插件 62 | 63 | 在配置文件中引入 `vuepress-plugin-mygitalk` 64 | 65 | > 查看 [官方文档](https://v1.vuepress.vuejs.org/zh/plugin/using-a-plugin.html)。 66 | 67 | ```javascript 68 | module.exports = { 69 | plugins: [ 70 | [ 71 | 'vuepress-plugin-mygitalk' 72 | ], 73 | ], 74 | } 75 | ``` 76 | 77 | ### 插件配置 78 | 79 | ```javascript 80 | module.exports = { 81 | plugins: [ 82 | [ 83 | 'vuepress-plugin-mygitalk', { 84 | // 是否启用(关闭请设置为false)(default: true) 85 | enable: true, 86 | // 是否开启首页评论(default: true)。是否为首页是通过frontmatter中名为home的配置项来识别的,而非路由 87 | home: true, 88 | // Gitalk配置 89 | gitalk: { 90 | // GitHub Application Client ID. 91 | clientID: '', 92 | // GitHub Application Client Secret. 93 | clientSecret: '', 94 | // GitHub repository. 存储评论的 repo 95 | repo: '', 96 | // GitHub repository 所有者,可以是个人或者组织。 97 | owner: '', 98 | // GitHub repository 的所有者和合作者 (对这个 repository 有写权限的用户)。(不配置默认是owner配置) 99 | admin: [''], 100 | // 设置语言(default: zh-CN) 101 | language: 'zh-CN', 102 | } 103 | } 104 | ], 105 | ], 106 | } 107 | ``` 108 | 109 | ## 其他项目支持 110 | 111 | - ### 一款简洁优雅的hexo主题:[hexo-theme-yilia-plus](https://github.com/JoeyBling/hexo-theme-yilia-plus) 112 | - ### 一款简洁优雅的VuePress主题:[vuepress-theme-yilia-plus](https://github.com/JoeyBling/vuepress-theme-yilia-plus) 113 | - ### VuePress集成Live2D看板娘:[vuepress-plugin-helper-live2d](https://github.com/JoeyBling/vuepress-plugin-helper-live2d) 114 | - ### VuePress集成Gitalk:[vuepress-plugin-mygitalk](https://github.com/JoeyBling/vuepress-plugin-mygitalk) 115 | - ### VuePress回到页首插件Plus:[vuepress-plugin-gotop-plus](https://github.com/JoeyBling/vuepress-plugin-gotop-plus) 116 | 117 | ## 捐赠 118 | **如果感觉对您有帮助,请作者喝杯咖啡吧,请注明您的名字或者昵称,方便作者感谢o(* ̄︶ ̄*)o** 119 | 120 | | 微信 | 支付宝 | 121 | | :---: | :---: | 122 | |  |  | 123 | 124 | ## 关于我 125 | - [个人博客](https://zhousiwei.gitee.io/) 126 | - [技术笔记](https://zhousiwei.gitee.io/ibooks/) 127 | - [GitHub](https://github.com/JoeyBling) 128 | - [码云](https://gitee.com/zhousiwei) 129 | - [简书](https://www.jianshu.com/u/02cbf31a043a) 130 | - [CSDN](https://blog.csdn.net/qq_30930805) 131 | - [知乎](https://www.zhihu.com/people/joeybling) 132 | - [微博](http://weibo.com/jayinfo) 133 | - **主要涉及技术:`Java后端开发`、`聚合支付`、`公众号开发`、`开源爱好者`、`Linux`** 134 | 135 | ## LICENSE 136 | 137 | [](./LICENSE "LICENSE") -------------------------------------------------------------------------------- /default_plugin_config.js: -------------------------------------------------------------------------------- 1 | const config = require('./package.json'); 2 | 3 | /* 全局默认配置(插件定义的常量) */ 4 | module.exports = { 5 | // 全局开启是否打印控制台日志 6 | log: true, 7 | // 插件名称 8 | pluginName: config.name, 9 | // 是否启用(关闭请设置为false)(default: true) 10 | enable: true, 11 | 12 | // 默认插件配置(此处插件配置可更改) 13 | 14 | // 渲染的DOM元素id 15 | elementName: "my-gitalk-container", 16 | // 最大重试次数 17 | maxRetryCount: 5, 18 | // 500毫秒执行一次check 19 | defaultCheckMinutes: 500, 20 | // 是否开启首页评论 21 | home: true, 22 | // Gitalk配置 23 | gitalk: { 24 | // clientID: '', 25 | // // come from github development 26 | // clientSecret: '', 27 | // repo: '', 28 | // owner: '', 29 | // admin: [], 30 | language: 'zh-CN', 31 | }, 32 | 33 | }; 34 | -------------------------------------------------------------------------------- /dev/.vuepress/config.js: -------------------------------------------------------------------------------- 1 | // .vuepress/config.js 2 | module.exports = { 3 | /* 使用插件 */ 4 | plugins: [ 5 | [ 6 | require('../../vuepress-plugin-mygitalk/index'), { 7 | // 是否启用(关闭请设置为false)(default: true) 8 | enable: true, 9 | // 日志启用(调试用)(default: true) 10 | log: true, 11 | // 是否开启首页评论(default: true) 12 | home: true, 13 | // Gitalk配置 14 | gitalk: { 15 | // GitHub Application Client ID. 16 | clientID: '071b084546d9f5bd6306', 17 | // GitHub Application Client Secret. 18 | clientSecret: 'a19c22f6b78dd87a731a192afca81cf63e57c5d5', 19 | // GitHub repository. 存储评论的 repo 20 | repo: 'ibooks', 21 | // GitHub repository 所有者,可以是个人或者组织。 22 | owner: 'JoeyBling', 23 | // GitHub repository 的所有者和合作者 (对这个 repository 有写权限的用户)。 24 | admin: ['JoeyBling'], 25 | // 设置语言(default: zh-CN) 26 | language: 'zh-CN', 27 | } 28 | } 29 | ], 30 | ], 31 | themeConfig: { 32 | nav: [{ 33 | text: 'Home', 34 | link: '/' 35 | }], 36 | }, 37 | } 38 | -------------------------------------------------------------------------------- /dev/README.md: -------------------------------------------------------------------------------- 1 | # vuepress-plugin-mygitalk 2 | 3 | ``` 4 | .___ ___. ____ ____ _______ __ .___________. ___ __ __ ___ 5 | | \/ | \ \ / / / _____|| | | | / \ | | | |/ / 6 | | \ / | \ \/ / | | __ | | `---| |----` / ^ \ | | | ' / 7 | | |\/| | \_ _/ | | |_ | | | | | / /_\ \ | | | < 8 | | | | | | | | |__| | | | | | / _____ \ | `----.| . \ 9 | |__| |__| |__| \______| |__| |__| /__/ \__\ |_______||__|\__\ 10 | ``` 11 | 12 | [](https://www.npmjs.com/package/vuepress-plugin-mygitalk) 13 | 14 | [](https://www.npmjs.com/package/vuepress-plugin-mygitalk) 15 | [](https://www.npmjs.com/package/vuepress-plugin-mygitalk) 16 | [](https://www.npmjs.com/package/vuepress-plugin-mygitalk) 17 |  18 |  19 |  20 |  21 | [](https://zhousiwei.gitee.io "Author") 22 | [](https://v1.vuepress.vuejs.org/zh/) 23 | [](https://github.com/JoeyBling/vuepress-theme-yilia-plus) 24 | [](https://jq.qq.com/?_wv=1027&k=58Ypj9z "博客搭建交流群") 25 | 26 | ------------------ 27 | 28 | > **欢迎使用和Star支持,如使用过程中碰到问题,可以提出[Issue](https://github.com/JoeyBling/vuepress-plugin-mygitalk/issues),我会尽力完善** 29 | 30 | ## 介绍 31 | **VuePress集成[Gitalk](https://github.com/gitalk/gitalk). | [Gitalk](https://github.com/gitalk/gitalk) plugin for VuePress.** 32 | 33 | - 功能还很少,欢迎各位给我提意见和建议~ 34 | - [vuepress-plugin-mygitalk](https://github.com/JoeyBling/vuepress-plugin-mygitalk) 是为 [VuePress](https://v1.vuepress.vuejs.org/zh/) `1.0.0+`制作的插件。 35 | - [Gitalk文档](https://github.com/gitalk/gitalk/blob/master/readme-cn.md#%E8%AE%BE%E7%BD%AE) 36 | - 关于申请并配置第三方应用请查看 ➡️ [https://www.jianshu.com/p/ac7658cc912f](https://www.jianshu.com/p/ac7658cc912f) 37 | 38 | ## 线上预览 39 | 40 | > **预览 ➡️ [https://zhousiwei.gitee.io/ibooks](https://zhousiwei.gitee.io/ibooks)** 41 | 42 | ## 推荐一款VuePress主题 43 | > **一款简洁优雅的VuePress主题 ➡️ [https://github.com/JoeyBling/vuepress-theme-yilia-plus](https://github.com/JoeyBling/vuepress-theme-yilia-plus)** 44 | 45 | ## 效果截图 46 | 47 |  48 | 49 | ## 安装 50 | 51 | ```bash 52 | yarn add vuepress-plugin-mygitalk 53 | # or 54 | npm install vuepress-plugin-mygitalk --save 55 | ``` 56 | 57 | ------------ 58 | 59 | ## 开始使用 60 | 61 | ### 引入该插件 62 | 63 | 在配置文件中引入 `vuepress-plugin-mygitalk` 64 | 65 | > 查看 [官方文档](https://v1.vuepress.vuejs.org/zh/plugin/using-a-plugin.html)。 66 | 67 | ```javascript 68 | module.exports = { 69 | plugins: [ 70 | [ 71 | 'vuepress-plugin-mygitalk' 72 | ], 73 | ], 74 | } 75 | ``` 76 | 77 | ### 插件配置 78 | 79 | ```javascript 80 | module.exports = { 81 | plugins: [ 82 | [ 83 | 'vuepress-plugin-mygitalk', { 84 | // 是否启用(关闭请设置为false)(default: true) 85 | enable: true, 86 | // 是否开启首页评论(default: true) 87 | home: true, 88 | // Gitalk配置 89 | gitalk: { 90 | // GitHub Application Client ID. 91 | clientID: '', 92 | // GitHub Application Client Secret. 93 | clientSecret: '', 94 | // GitHub repository. 存储评论的 repo 95 | repo: '', 96 | // GitHub repository 所有者,可以是个人或者组织。 97 | owner: '', 98 | // GitHub repository 的所有者和合作者 (对这个 repository 有写权限的用户)。(不配置默认是owner配置) 99 | admin: [''], 100 | // 设置语言(default: zh-CN) 101 | language: 'zh-CN', 102 | } 103 | } 104 | ], 105 | ], 106 | } 107 | ``` 108 | 109 | ## 其他项目支持 110 | 111 | - ### 一款简洁优雅的hexo主题:[hexo-theme-yilia-plus](https://github.com/JoeyBling/hexo-theme-yilia-plus) 112 | - ### 一款简洁优雅的VuePress主题:[vuepress-theme-yilia-plus](https://github.com/JoeyBling/vuepress-theme-yilia-plus) 113 | - ### VuePress集成Live2D看板娘:[vuepress-plugin-helper-live2d](https://github.com/JoeyBling/vuepress-plugin-helper-live2d) 114 | - ### VuePress集成Gitalk:[vuepress-plugin-mygitalk](https://github.com/JoeyBling/vuepress-plugin-mygitalk) 115 | - ### VuePress回到页首插件Plus:[vuepress-plugin-gotop-plus](https://github.com/JoeyBling/vuepress-plugin-gotop-plus) 116 | 117 | ## 捐赠 118 | **如果感觉对您有帮助,请作者喝杯咖啡吧,请注明您的名字或者昵称,方便作者感谢o(* ̄︶ ̄*)o** 119 | 120 | | 微信 | 支付宝 | 121 | | :---: | :---: | 122 | |  |  | 123 | 124 | ## 关于我 125 | - [个人博客](https://zhousiwei.gitee.io/) 126 | - [技术笔记](https://zhousiwei.gitee.io/ibooks/) 127 | - [GitHub](https://github.com/JoeyBling) 128 | - [码云](https://gitee.com/zhousiwei) 129 | - [简书](https://www.jianshu.com/u/02cbf31a043a) 130 | - [CSDN](https://blog.csdn.net/qq_30930805) 131 | - [知乎](https://www.zhihu.com/people/joeybling) 132 | - [微博](http://weibo.com/jayinfo) 133 | - **主要涉及技术:`Java后端开发`、`聚合支付`、`公众号开发`、`开源爱好者`、`Linux`** 134 | 135 | ## LICENSE 136 | 137 | [](./LICENSE "LICENSE") -------------------------------------------------------------------------------- /examples/images/alipay.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JoeyBling/vuepress-plugin-mygitalk/46f44adc69dd7bcf0d704cdd87651cc363aabee6/examples/images/alipay.jpeg -------------------------------------------------------------------------------- /examples/images/web.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JoeyBling/vuepress-plugin-mygitalk/46f44adc69dd7bcf0d704cdd87651cc363aabee6/examples/images/web.png -------------------------------------------------------------------------------- /examples/images/web_mini.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JoeyBling/vuepress-plugin-mygitalk/46f44adc69dd7bcf0d704cdd87651cc363aabee6/examples/images/web_mini.png -------------------------------------------------------------------------------- /examples/images/weixin.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JoeyBling/vuepress-plugin-mygitalk/46f44adc69dd7bcf0d704cdd87651cc363aabee6/examples/images/weixin.png -------------------------------------------------------------------------------- /examples/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |
5 | 6 | 8 | 9 |