update config.mjs

This commit is contained in:
ChangJoo Park(박창주) 2025-05-14 10:38:13 +09:00
parent 0702fad5a6
commit 708603cc5a
3 changed files with 6 additions and 3 deletions

View file

@ -5,6 +5,7 @@ const cache = await getCache();
// @ts-check // @ts-check
import { defineConfig } from "astro/config"; import { defineConfig } from "astro/config";
import sitemap from "@astrojs/sitemap";
import starlight from "@astrojs/starlight"; import starlight from "@astrojs/starlight";
import astroExpressiveCode from "astro-expressive-code"; import astroExpressiveCode from "astro-expressive-code";
import { pluginLineNumbers } from "@expressive-code/plugin-line-numbers"; import { pluginLineNumbers } from "@expressive-code/plugin-line-numbers";
@ -14,12 +15,13 @@ export default defineConfig({
compressHTML: true, compressHTML: true,
prefetch: false, prefetch: false,
integrations: [ integrations: [
sitemap(),
astroExpressiveCode({ astroExpressiveCode({
themes: ["dracula"], themes: ["dracula"],
plugins: [pluginLineNumbers()], plugins: [pluginLineNumbers()],
}), }),
starlight({ starlight({
title: "Flutter 문서", title: "Flutter 배우기",
social: [ social: [
{ {
icon: "github", icon: "github",
@ -44,5 +46,5 @@ export default defineConfig({
], ],
], ],
}, },
site: "https://changjoo-park.github.io/learn-flutter"
}); });

1
package-lock.json generated
View file

@ -9,6 +9,7 @@
"version": "0.0.1", "version": "0.0.1",
"hasInstallScript": true, "hasInstallScript": true,
"dependencies": { "dependencies": {
"@astrojs/sitemap": "^3.4.0",
"@astrojs/starlight": "^0.34.3", "@astrojs/starlight": "^0.34.3",
"@beoe/cache": "^0.1.1", "@beoe/cache": "^0.1.1",
"@beoe/rehype-mermaid": "^0.4.2", "@beoe/rehype-mermaid": "^0.4.2",

View file

@ -8,10 +8,10 @@
"build": "astro build", "build": "astro build",
"preview": "astro preview", "preview": "astro preview",
"upgrade": "npx @astrojs/upgrade", "upgrade": "npx @astrojs/upgrade",
"postinstall": "playwright install chromium",
"astro": "astro" "astro": "astro"
}, },
"dependencies": { "dependencies": {
"@astrojs/sitemap": "^3.4.0",
"@astrojs/starlight": "^0.34.3", "@astrojs/starlight": "^0.34.3",
"@beoe/cache": "^0.1.1", "@beoe/cache": "^0.1.1",
"@beoe/rehype-mermaid": "^0.4.2", "@beoe/rehype-mermaid": "^0.4.2",