Skip to content

Commit 1ea2a99

Browse files
authored
Merge pull request #1016 from Srijatalamarla/feat/auto-add-giscus-comments
feat: add giscus comments to all docs automatically
2 parents e401546 + 32111a2 commit 1ea2a99

File tree

3 files changed

+54
-352
lines changed

3 files changed

+54
-352
lines changed

docusaurus.config.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { themes as prismThemes } from "prism-react-renderer";
22
import type { Config } from "@docusaurus/types";
33
import type * as Preset from "@docusaurus/preset-classic";
44
import * as dotenv from "dotenv";
5+
import giscusInjector from "./src/plugins/giscus-injector";
56
dotenv.config();
67

78
// This runs in Node.js - Don't use client-side code here (browser APIs, JSX...)
@@ -53,6 +54,7 @@ const config: Config = {
5354
sidebarPath: require.resolve("./sidebars.ts"),
5455
editUrl: ({ docPath }) =>
5556
`https://github.com/recodehive/recode-website/tree/main/docs/${docPath}`,
57+
remarkPlugins: [giscusInjector],
5658
},
5759
blog: {
5860
showReadingTime: true,

package-lock.json

Lines changed: 8 additions & 352 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)