https://github.com/longshilin/docsify-giscus-new
https://github.com/longshilin/docsify-giscus-new
Last synced: 6 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/longshilin/docsify-giscus-new
- Owner: longshilin
- License: mit
- Created: 2023-07-28T12:58:47.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2023-07-28T14:27:15.000Z (about 2 years ago)
- Last Synced: 2025-03-15T05:37:11.181Z (7 months ago)
- Language: JavaScript
- Size: 295 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# docsify-giscus-new
docsify giscus plugin,集成giscus评论插件](https://www.npmjs.com/package/docsify-giscus-new)

## Usage
1. [Applay giscus](https://giscus.app/zh-CN) ,申请 giscus2. Configure docsify-giscus:(配置值详情请参考 https://giscus.app/zh-CN )
```html
window.$docsify = {
giscus:{
repo: "longshilin/w",
repoId: "R_kgDOwvLA",
categoryId: "DIC_kwDOKAwv4CYMOU",
mapping: "pathname",
strict: "0",
reactionsEnabled: "1",
emitMetadata: "1",
inputPosition: "top",
theme: "preferred_color_scheme",
lang: "zh-CN",
loading: "lazy",
},
}
```3. Insert script into docsify document:
```html
```