From 0795f6e5362791114f563c0ef205ab1ee123111a 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: Thu, 15 May 2025 09:57:21 +0900 Subject: [PATCH] feat: Update llms.txt setup --- astro.config.mjs | 5 +- package-lock.json | 13 +++++ sidebar.config.mjs | 2 + src/content/docs/part1/changelog.md | 13 +++++ src/content/docs/part1/llms.mdx | 79 +++++++++++++++++++++++++++++ 5 files changed, 111 insertions(+), 1 deletion(-) create mode 100644 src/content/docs/part1/changelog.md create mode 100644 src/content/docs/part1/llms.mdx diff --git a/astro.config.mjs b/astro.config.mjs index ab4d110..feb9c66 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -1,6 +1,7 @@ import { rehypeMermaid } from "@beoe/rehype-mermaid"; import { getCache } from "@beoe/cache"; import starlightGiscus from 'starlight-giscus' + const googleAnalyticsId = 'G-FTYYK8J5MY' const cache = await getCache(); @@ -25,7 +26,9 @@ export default defineConfig({ sitemap(), astroExpressiveCode({ themes: ["dracula"], - plugins: [pluginLineNumbers()], + plugins: [ + pluginLineNumbers(), + ], }), starlight({ credits: true, diff --git a/package-lock.json b/package-lock.json index 24052ba..f397a6d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -19,6 +19,7 @@ "rehype-mermaid": "^3.0.0", "sharp": "^0.32.5", "starlight-giscus": "^0.6.1", + "starlight-kbd": "^0.2.0", "starlight-llms-txt": "^0.5.1" } }, @@ -8109,6 +8110,18 @@ "@astrojs/starlight": ">=0.32.0" } }, + "node_modules/starlight-kbd": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/starlight-kbd/-/starlight-kbd-0.2.0.tgz", + "integrity": "sha512-KcOFeX8UhwTx6PCy+ldb0HdHBKLxST15ktwHafO7xzVzJG6b1qC7s8rFgH/8C/s6pQiYZJekuRExwZrxMZ/Uhg==", + "license": "MIT", + "engines": { + "node": ">=18.17.1" + }, + "peerDependencies": { + "@astrojs/starlight": ">=0.32.0" + } + }, "node_modules/starlight-llms-txt": { "version": "0.5.1", "resolved": "https://registry.npmjs.org/starlight-llms-txt/-/starlight-llms-txt-0.5.1.tgz", diff --git a/sidebar.config.mjs b/sidebar.config.mjs index eef831e..3f97f56 100644 --- a/sidebar.config.mjs +++ b/sidebar.config.mjs @@ -3,7 +3,9 @@ export const sidebars = [ label: "πŸ“¦ 1. μ‹œμž‘ν•˜κΈ°", items: [ { label: "μ†Œκ°œ", slug: "part1/introduction" }, + { label: "변경사항", slug: "part1/changelog" }, { label: "개발 ν™˜κ²½ ꡬ성", slug: "part1/setup" }, + { label: "LLM μ„€μ •", slug: "part1/llms", badge: 'new' }, { label: "첫 ν”„λ‘œμ νŠΈ 생성 및 μ‹€ν–‰", slug: "part1/first-project" }, { label: "Flutter ν”„λ‘œμ νŠΈ ꡬ쑰 이해", slug: "part1/project-structure" }, ], diff --git a/src/content/docs/part1/changelog.md b/src/content/docs/part1/changelog.md new file mode 100644 index 0000000..21c00b2 --- /dev/null +++ b/src/content/docs/part1/changelog.md @@ -0,0 +1,13 @@ +--- +title: 변경사항 +--- + + +### 2025λ…„ 05μ›” 15일 + +- 1. μ‹œμž‘ν•˜κΈ°μ— **LLM μ„€μ •** μΆ”κ°€ +- 1. μ‹œμž‘ν•˜κΈ°μ— **변경사항** μΆ”κ°€ + +### 2025λ…„ 05μ›” 14일 + +μ΄ˆμ•ˆ 곡개 diff --git a/src/content/docs/part1/llms.mdx b/src/content/docs/part1/llms.mdx new file mode 100644 index 0000000..19facf2 --- /dev/null +++ b/src/content/docs/part1/llms.mdx @@ -0,0 +1,79 @@ +--- +title: LLM μ„€μ • +--- + +이 λ¬Έμ„œλŠ” μ½”λ“œ 에디터λ₯Ό μœ„ν•œ llms.txt νŒŒμΌμ„ μ§€μ›ν•©λ‹ˆλ‹€. + +λ‹€μŒ 경둜λ₯Ό μ‚¬μš©ν•˜λŠ” 에디터에 μ μš©ν•˜μ‹œλ©΄ 이 λ¬Έμ„œλ₯Ό κΈ°μ€€μœΌλ‘œ ν”„λ‘œμ νŠΈλ₯Ό μ§„ν–‰ν•˜μ‹€ 수 μžˆμŠ΅λ‹ˆλ‹€. + + +루트 llms.txt + +``` +https://changjoo-park.github.io/learn-flutter/llms.txt +``` + + +κ°„μ†Œν™” 버전 + +``` +https://changjoo-park.github.io/learn-flutter/llms-small.txt +``` + +전체 버전 + +``` +https://changjoo-park.github.io/learn-flutter/llms-full.txt +``` + + + +## Visual Studio Code + +ν”„λ‘¬ν”„νŠΈμ— λ‹€μŒκ³Ό 같이 μž…λ ₯ν•©λ‹ˆλ‹€. + +```text +#fetch https://changjoo-park.github.io/learn-flutter/llms-full.txt +``` + +ν”„λ‘œμ νŠΈ λ ˆλ²¨μ—μ„œ μ΄μš©ν•˜λ €λ©΄ + +1. ν„°λ―Έλ„μ—μ„œ ν”„λ‘œμ νŠΈ 경둜둜 이동 ν›„ λ‹€μŒκ³Ό 같이 μž…λ ₯ν•©λ‹ˆλ‹€. + +```sh +curl -L https://changjoo-park.github.io/learn-flutter/llms-full.txt --create-dirs -o .vscode/learn_flutter.md +``` + +2. `.vscode/settings.json` 에 λ‹€μŒμ„ μž…λ ₯ν•©λ‹ˆλ‹€. + +```json title=".vscode/settings.json" +{ + "github.copilot.chat.codeGeneration.instructions": [ + { + "file": "./.vscode/learn_flutter.md" + } + ] +} +``` + + + +## Cursor + +ν”„λ‘¬ν”„νŠΈμ— λ‹€μŒκ³Ό 같이 μž…λ ₯ν•©λ‹ˆλ‹€. + +```text +@web https://changjoo-park.github.io/learn-flutter/llms-full.txt +``` + +계속 μ‚¬μš©ν•˜λ €λ©΄ + +1. `CMD` + `Shift` + `P` λ₯Ό 눌러 λͺ…λ Ή νŒ”λ ˆνŠΈλ₯Ό μ—½λ‹ˆλ‹€. +2. `Add new custom docs` λ₯Ό μž…λ ₯ν•©λ‹ˆλ‹€. +3. μ•„λž˜ λ‚΄μš©μ„ μž…λ ₯ν•©λ‹ˆλ‹€. + +```text +https://changjoo-park.github.io/learn-flutter/llms-full.txt +``` + +4. μ±„νŒ… UIμ—μ„œ @docs λ₯Ό μž…λ ₯ν•œ ν›„ μΆ”κ°€λœ λ¬Έμ„œλ₯Ό μ„ νƒν•©λ‹ˆλ‹€.