mirror of
https://github.com/ChangJoo-Park/learn-flutter.git
synced 2025-06-07 21:23:07 +00:00
feat: add giscuss
This commit is contained in:
parent
75482f684d
commit
81049c3148
3 changed files with 31 additions and 0 deletions
|
@ -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
13
package-lock.json
generated
|
@ -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",
|
||||||
|
|
|
@ -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"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue