Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: add template of comment system #1192

Merged
merged 2 commits into from
Jan 10, 2023

Conversation

ArtieLiu
Copy link
Contributor

@ArtieLiu ArtieLiu commented Jan 8, 2023

这个 PR 给 HowToCook 增加了基于 Giscus 的评论系统.
设置方法来源于mkdocs: adding a comment system, 参考了 cs 自学指南项目的类似实践.

当页面滑动至最底部时会显示评论框, 效果可见这个 fork 的页面.

image

由于需要仓库所有者对仓库进行特定的设置, PR 中以下三个值尚未设置:

        data-repo=""
        data-repo-id=""
        data-category-id=""

Giscus 提供了设置方法:

  1. 设置仓库
    image
  2. 设置 Discussion 分类
    image
  3. 获取变量值
    image

设置这三个值后, 评论系统应该就可以使用了🙏


  • 我确保了我的内容不涉及版权内容,并且授权它 The Unlicense 协议。

Anduin2017
Anduin2017 previously approved these changes Jan 9, 2023
Copy link
Owner

@Anduin2017 Anduin2017 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pending some update. I will update it.

@Anduin2017 Anduin2017 merged commit 9675928 into Anduin2017:master Jan 10, 2023
github-actions bot added a commit to hellopony/HowToCook that referenced this pull request Jan 10, 2023
* https://github.com/Anduin2017/HowToCook:
  [ci skip] Automatic file changes/fix
  Add footer for page.
  Update mkdocs_template.yml
  Feature: add template of comment system (Anduin2017#1192)
  修复标点和格式错误 (Anduin2017#1193)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants