feat: add giscuss

This commit is contained in:
ChangJoo Park(박창주) 2025-05-14 15:28:14 +09:00
parent 75482f684d
commit 81049c3148
3 changed files with 31 additions and 0 deletions

View file

@ -1,5 +1,6 @@
import { rehypeMermaid } from "@beoe/rehype-mermaid"; import { rehypeMermaid } from "@beoe/rehype-mermaid";
import { getCache } from "@beoe/cache"; import { getCache } from "@beoe/cache";
import starlightGiscus from 'starlight-giscus'
const googleAnalyticsId = 'G-FTYYK8J5MY' const googleAnalyticsId = 'G-FTYYK8J5MY'
const cache = await getCache(); const cache = await getCache();
@ -27,7 +28,11 @@ export default defineConfig({
plugins: [pluginLineNumbers()], plugins: [pluginLineNumbers()],
}), }),
starlight({ starlight({
credits: true,
title: "Flutter 배우기", title: "Flutter 배우기",
customCss: [
'./src/styles/custom.css',
],
head: [ head: [
// Adding google analytics // Adding google analytics
{ {
@ -64,6 +69,18 @@ export default defineConfig({
starlightLlmsTxt({ starlightLlmsTxt({
projectName: "Flutter 배우기", projectName: "Flutter 배우기",
}), }),
starlightGiscus({
repo: 'changjoo-park/learn-flutter',
repoId: 'R_kgDOOpJgKQ',
category: 'Q&A',
categoryId: 'DIC_kwDOOpJgKc4CqIHA',
inputPosition: 'top',
mapping: 'pathname',
reactionsEnabled: true,
emitMetadata: true,
theme: 'preferred_color_scheme',
lang: 'ko',
})
], ],
}), }),
], ],

13
package-lock.json generated
View file

@ -18,6 +18,7 @@
"playwright": "^1.52.0", "playwright": "^1.52.0",
"rehype-mermaid": "^3.0.0", "rehype-mermaid": "^3.0.0",
"sharp": "^0.32.5", "sharp": "^0.32.5",
"starlight-giscus": "^0.6.1",
"starlight-llms-txt": "^0.5.1" "starlight-llms-txt": "^0.5.1"
} }
}, },
@ -8096,6 +8097,18 @@
"url": "https://github.com/sponsors/wooorm" "url": "https://github.com/sponsors/wooorm"
} }
}, },
"node_modules/starlight-giscus": {
"version": "0.6.1",
"resolved": "https://registry.npmjs.org/starlight-giscus/-/starlight-giscus-0.6.1.tgz",
"integrity": "sha512-5vwNb06slZW+UwVBrva3gARYoIegr2t5sowfmQ7x5+W1eFv4VlHmIy/XJO7tvdizWlShiRGsgRcQORqrkcemLg==",
"license": "MIT",
"engines": {
"node": "^18.17.1 || ^20.3.0 || >=21.0.0"
},
"peerDependencies": {
"@astrojs/starlight": ">=0.32.0"
}
},
"node_modules/starlight-llms-txt": { "node_modules/starlight-llms-txt": {
"version": "0.5.1", "version": "0.5.1",
"resolved": "https://registry.npmjs.org/starlight-llms-txt/-/starlight-llms-txt-0.5.1.tgz", "resolved": "https://registry.npmjs.org/starlight-llms-txt/-/starlight-llms-txt-0.5.1.tgz",

View file

@ -21,6 +21,7 @@
"playwright": "^1.52.0", "playwright": "^1.52.0",
"rehype-mermaid": "^3.0.0", "rehype-mermaid": "^3.0.0",
"sharp": "^0.32.5", "sharp": "^0.32.5",
"starlight-giscus": "^0.6.1",
"starlight-llms-txt": "^0.5.1" "starlight-llms-txt": "^0.5.1"
} }
} }