GitHub Issues Comments
Use GitHub issues as a lightweight commenting system via Utterances.
npm install vitepress-plugin-utterancesyarn add vitepress-plugin-utterancespnpm add vitepress-plugin-utterancesbun install vitepress-plugin-utterancesimport VPUtterances from 'vitepress-plugin-utterances'
import DefaultTheme from 'vitepress/theme'
export default {
extends: DefaultTheme,
enhanceApp({ app }) {
app.use(VPUtterances, {
// componentName: 'Utterances', // Optionally, customize the component name.
})
},
}Add the <Utterances /> component to your markdown files.
# My Page
<Utterances repo="utterance/utterances" issue-term="homepage" />repo (required): "owner/repo" of the repository where issues will be created/read.issueTerm: "pathname" | "url" | "title" | "og:title" | string. Default: "pathname".label: optional label for created issues.theme: Utterances theme (e.g. "github-light", "github-dark").crossorigin: "anonymous" (default) | "use-credentials".Visit the Utterances website for more details:
<Utterances repo="enzonotario/vitepress-plugin-utterances" issue-term="homepage" />