mirror of
https://github.com/ChangJoo-Park/learn-flutter.git
synced 2025-06-07 21:23:07 +00:00
feat: Update llms.txt setup
This commit is contained in:
parent
03804955dd
commit
0795f6e536
5 changed files with 111 additions and 1 deletions
|
@ -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,
|
||||
|
|
13
package-lock.json
generated
13
package-lock.json
generated
|
@ -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",
|
||||
|
|
|
@ -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" },
|
||||
],
|
||||
|
|
13
src/content/docs/part1/changelog.md
Normal file
13
src/content/docs/part1/changelog.md
Normal file
|
@ -0,0 +1,13 @@
|
|||
---
|
||||
title: 변경사항
|
||||
---
|
||||
|
||||
|
||||
### 2025년 05월 15일
|
||||
|
||||
- 1. 시작하기에 **LLM 설정** 추가
|
||||
- 1. 시작하기에 **변경사항** 추가
|
||||
|
||||
### 2025년 05월 14일
|
||||
|
||||
초안 공개
|
79
src/content/docs/part1/llms.mdx
Normal file
79
src/content/docs/part1/llms.mdx
Normal file
|
@ -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 를 입력한 후 추가된 문서를 선택합니다.
|
Loading…
Add table
Reference in a new issue