Skip to content

Commit

Permalink
update valine
Browse files Browse the repository at this point in the history
  • Loading branch information
wangwei1237 committed Feb 15, 2023
1 parent a9b66c4 commit ac6df22
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
- name: Build the book
working-directory: ${{ github.workspace }}
run: |
mkdir node_modules && cd node_modules && npm install gitbook-plugin-sitemap-general && npm install gitbook-plugin-valine-17 && cd ..
mkdir node_modules && cd node_modules && npm install gitbook-plugin-sitemap-general && cd ..
gitbook install
cp -r misc/gitbook-plugin-hints/* node_modules/gitbook-plugin-hints/
cp misc/tbfed-pagefooter_index.js node_modules/gitbook-plugin-tbfed-pagefooter/index.js
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,9 @@ jobs:
- name: Build the book
working-directory: ${{ github.workspace }}
run: |
mkdir node_modules && cd node_modules && npm install gitbook-plugin-sitemap-general && npm install gitbook-plugin-valine-17 && cd ..
mkdir node_modules && cd node_modules && npm install gitbook-plugin-sitemap-general && cd ..
gitbook install
cp misc/tbfed-pagefooter_index.js node_modules/gitbook-plugin-tbfed-pagefooter/index.js
cp -r misc/gitbook-plugin-hints/* node_modules/gitbook-plugin-hints/
gitbook build
- name: package the book
Expand Down
4 changes: 0 additions & 4 deletions book.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,6 @@
"repo": "wangwei1237/monolith-to-microservices",
"types": ["star"],
"size": "small"
},
"valine": {
"appId": "ppRS6IT7xMHmCl54L7ynIC2Z-gzGzoHsz",
"appKey": "qEmM49ZlU6LOwXCHjzMUECKu"
}
},
"title": "Monolith to Microservices",
Expand Down
6 changes: 3 additions & 3 deletions misc/tbfed-pagefooter_index.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ module.exports = {
'\n\n<div id="gitalk-container" class="page-footer"></div>' +
'\n\n<script src="https://wangwei1237.gitee.io/gittalk-config.js"></script>';
*/
/*

var strComment = '\n\n<script src="//unpkg.com/valine/dist/Valine.min.js"></script>' +
'\n\n<div id="vcomments"></div>' +
'\n\n<script> new Valine({el: "#vcomments",appId: "ppRS6IT7xMHmCl54L7ynIC2Z-gzGzoHsz",appKey: "qEmM49ZlU6LOwXCHjzMUECKu"})</script>';
*/
'\n\n<script> new Valine({el: "#vcomments",appId: "ppRS6IT7xMHmCl54L7ynIC2Z-gzGzoHsz",appKey: "qEmM49ZlU6LOwXCHjzMUECKu", path: window.location.pathname, avatar: "mp", placeholder: "快来评论吧~", recordIP: true,visitor: true,})</script>';

var strComment = '';
page.content = page.content + strComment + str;
return page;
Expand Down

0 comments on commit ac6df22

Please sign in to comment.