New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

vitepress-plugin-comment-with-giscus

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vitepress-plugin-comment-with-giscus - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

README_zh.md

5

package.json
{
"name": "vitepress-plugin-comment-with-giscus",
"version": "1.0.1",
"version": "1.0.2",
"description": "vitepress comment plugin based on giscus",

@@ -22,3 +22,4 @@ "workspaces": [

"dist",
"src"
"src",
"README_zh.md"
],

@@ -25,0 +26,0 @@ "repository": {

# README
EN | [中文文档](README_zh.md)
## vitepress-plugin-comment-with-giscus
![](demo.png)
> `vitepress` comment section plugin based on `giscus`
## Install
```shell
// npm
npm i vitepress-plugin-comment-with-giscus
// yarn
yarn add vitepress-plugin-comment-with-giscus
```
## Usage
```ts
// .vitepress/theme/index.js
export default {
...DefaultTheme,
enhanceApp(ctx) {
DefaultTheme.enhanceApp(ctx);
// ...
},
setup() {
// Get frontmatter
const { frontmatter } = useData();
// Comment component
giscusTalk(frontmatter, {
repo: 'your github repository',
repoId: 'your repository id',
categoryId: 'your category id',
mapping: 'pathname'
});
}
};
```
For the parameter acquisition method of `giscus`, please refer to:[giscus configuration](https://giscus.app/)
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc