vitepress-plugin-comment-with-giscus
Advanced tools
Comparing version 1.1.1 to 1.1.2
{ | ||
"name": "vitepress-plugin-comment-with-giscus", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"description": "vitepress comment plugin based on giscus", | ||
@@ -5,0 +5,0 @@ "workspaces": [ |
@@ -15,5 +15,5 @@ # README | ||
// npm | ||
npm i vitepress-plugin-comment-with-giscus | ||
npm i vitepress-plugin-comment-with-giscus @giscus/vue | ||
// yarn | ||
yarn add vitepress-plugin-comment-with-giscus | ||
yarn add vitepress-plugin-comment-with-giscus @giscus/vue | ||
``` | ||
@@ -28,2 +28,3 @@ | ||
import { useData, useRoute } from 'vitepress'; | ||
export default { | ||
@@ -39,3 +40,4 @@ ...DefaultTheme, | ||
const route = useRoute(); | ||
// Comment component | ||
// Obtain configuration from: https://giscus.app/ | ||
giscusTalk({ | ||
@@ -45,3 +47,5 @@ repo: 'your github repository', | ||
categoryId: 'your category id', | ||
mapping: 'pathname' | ||
mapping: 'pathname', | ||
reactionsEnabled: '1', | ||
lang: 'en' | ||
}, { | ||
@@ -48,0 +52,0 @@ frontmatter, route |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
9576
65