From 7be4a9578ae55692f936f57a1cdbdcd2360d5a4c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?ChangJoo=20Park=28=EB=B0=95=EC=B0=BD=EC=A3=BC=29?= Date: Tue, 13 May 2025 18:03:49 +0900 Subject: [PATCH] chore: update sidebars --- .vscode/settings.json | 6 ++ astro.config.mjs | 90 ++++++++++++++----- package-lock.json | 2 +- package.json | 5 +- .../docs/guides/monorepo_with_melos.md | 6 ++ .../docs/introduction/getting-started.md | 6 ++ src/content/docs/introduction/introduction.md | 6 ++ src/content/docs/tutorials/1_counter.md | 6 ++ src/content/docs/tutorials/2_todo_list.md | 6 ++ 9 files changed, 109 insertions(+), 24 deletions(-) create mode 100644 .vscode/settings.json create mode 100644 src/content/docs/guides/monorepo_with_melos.md create mode 100644 src/content/docs/introduction/getting-started.md create mode 100644 src/content/docs/introduction/introduction.md create mode 100644 src/content/docs/tutorials/1_counter.md create mode 100644 src/content/docs/tutorials/2_todo_list.md diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..a60a4a1 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,6 @@ +{ + "dart.flutterSdkPath": "/Users/changjoopark/.local/share/mise/installs/flutter/3.29.3-stable", + "debug.javascript.defaultRuntimeExecutable": { + "pwa-node": "/Users/changjoopark/.local/share/mise/shims/node" + } +} diff --git a/astro.config.mjs b/astro.config.mjs index 9a25601..5e15cf5 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -1,26 +1,74 @@ // @ts-check -import { defineConfig } from 'astro/config'; -import starlight from '@astrojs/starlight'; +import { defineConfig } from "astro/config"; +import starlight from "@astrojs/starlight"; // https://astro.build/config export default defineConfig({ - integrations: [ - starlight({ - title: 'My Docs', - social: [{ icon: 'github', label: 'GitHub', href: 'https://github.com/withastro/starlight' }], - sidebar: [ - { - label: 'Guides', - items: [ - // Each item here is one entry in the navigation menu. - { label: 'Example Guide', slug: 'guides/example' }, - ], - }, - { - label: 'Reference', - autogenerate: { directory: 'reference' }, - }, - ], - }), - ], + compressHTML: true, + prefetch: true, + trailingSlash: "always", + integrations: [ + starlight({ + title: "My Own Flutter Book", + social: [ + { + icon: "github", + label: "GitHub", + href: "https://github.com/withastro/starlight", + }, + ], + sidebar: [ + { + label: "안내", + items: [ + { label: "소개", slug: "introduction/introduction" }, + { label: "시작하기", slug: "introduction/getting-started" }, + ], + }, + { + label: "튜토리얼", + items: [ + { label: "프로젝트 1. 카운터", slug: "tutorials/1_counter" }, + { + label: "프로젝트 2. TodoList", + slug: "tutorials/2_todo_list", + }, + ], + }, + { + label: "개발 가이드", + items: [ + { label: "프로젝트 1. 카운터", slug: "tutorials/1_counter" }, + { + label: "프로젝트 2. TodoList", + slug: "tutorials/2_todo_list", + }, + ], + }, + { + label: "주요 컴포넌트", + items: [ + { label: "프로젝트 1. 카운터", slug: "tutorials/1_counter" }, + { + label: "프로젝트 2. TodoList", + slug: "tutorials/2_todo_list", + }, + ], + }, + { + label: "참조", + autogenerate: { directory: "reference" }, + }, + { + label: "리소스", + items: [ + { + label: "프로젝트 2. TodoList", + slug: "tutorials/2_todo_list", + }, + ], + }, + ], + }), + ], }); diff --git a/package-lock.json b/package-lock.json index e4c909b..0af7748 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,7 +9,7 @@ "version": "0.0.1", "dependencies": { "@astrojs/starlight": "^0.34.3", - "astro": "^5.6.1", + "astro": "^5.7.12", "sharp": "^0.32.5" } }, diff --git a/package.json b/package.json index 505a97f..bb25a90 100644 --- a/package.json +++ b/package.json @@ -7,11 +7,12 @@ "start": "astro dev", "build": "astro build", "preview": "astro preview", + "upgrade": "npx @astrojs/upgrade", "astro": "astro" }, "dependencies": { "@astrojs/starlight": "^0.34.3", - "astro": "^5.6.1", + "astro": "^5.7.12", "sharp": "^0.32.5" } -} \ No newline at end of file +} diff --git a/src/content/docs/guides/monorepo_with_melos.md b/src/content/docs/guides/monorepo_with_melos.md new file mode 100644 index 0000000..29edec5 --- /dev/null +++ b/src/content/docs/guides/monorepo_with_melos.md @@ -0,0 +1,6 @@ +--- +title: Melos를 이용한 모노레포 구성 +description: Starlight로 구축된 이 문서 사이트에서 내 프로젝트에 대해 자세히 알아보세요. +--- + +내 프로젝트에 오신 것을 환영합니다! diff --git a/src/content/docs/introduction/getting-started.md b/src/content/docs/introduction/getting-started.md new file mode 100644 index 0000000..d2acaee --- /dev/null +++ b/src/content/docs/introduction/getting-started.md @@ -0,0 +1,6 @@ +--- +title: 시작하기 +description: Starlight로 구축된 이 문서 사이트에서 내 프로젝트에 대해 자세히 알아보세요. +--- + +내 프로젝트에 오신 것을 환영합니다! diff --git a/src/content/docs/introduction/introduction.md b/src/content/docs/introduction/introduction.md new file mode 100644 index 0000000..d2acaee --- /dev/null +++ b/src/content/docs/introduction/introduction.md @@ -0,0 +1,6 @@ +--- +title: 시작하기 +description: Starlight로 구축된 이 문서 사이트에서 내 프로젝트에 대해 자세히 알아보세요. +--- + +내 프로젝트에 오신 것을 환영합니다! diff --git a/src/content/docs/tutorials/1_counter.md b/src/content/docs/tutorials/1_counter.md new file mode 100644 index 0000000..06d7655 --- /dev/null +++ b/src/content/docs/tutorials/1_counter.md @@ -0,0 +1,6 @@ +--- +title: 카운터 앱 +description: Starlight로 구축된 이 문서 사이트에서 내 프로젝트에 대해 자세히 알아보세요. +--- + +내 프로젝트에 오신 것을 환영합니다! diff --git a/src/content/docs/tutorials/2_todo_list.md b/src/content/docs/tutorials/2_todo_list.md new file mode 100644 index 0000000..d73981f --- /dev/null +++ b/src/content/docs/tutorials/2_todo_list.md @@ -0,0 +1,6 @@ +--- +title: 할일 목록 앱 +description: Starlight로 구축된 이 문서 사이트에서 내 프로젝트에 대해 자세히 알아보세요. +--- + +내 프로젝트에 오신 것을 환영합니다!