Skip to content

Commit 672db57

Browse files
committed
chore: ignore .worktrees directory
1 parent db78c84 commit 672db57

File tree

3 files changed

+16
-8
lines changed

3 files changed

+16
-8
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,4 @@ pnpm-debug.log*
99
.env.production
1010
.DS_Store
1111
.idea
12+
.worktrees/

astro.config.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1+
import { readFileSync } from 'node:fs'
2+
import path from 'node:path'
3+
import { fileURLToPath } from 'node:url'
14
import vue from '@astrojs/vue'
25
import tutorialkit from '@tutorialkit/astro'
36
import { defineConfig } from 'astro/config'
4-
import { readFileSync } from 'fs'
5-
import { fileURLToPath } from 'url'
6-
import path from 'path'
77

88
// Read package version at build time
99
const __filename = fileURLToPath(import.meta.url)

docs/plans/2025-10-30-llms-txt-support-design.md

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,14 @@ public/
2424
**Vite plugin** (`src/plugins/llms-plugin.ts`) integrated into Astro config.
2525

2626
### Why Plugin Over Script?
27+
2728
- Auto-regeneration on content changes during dev
2829
- Clean integration with build process
2930
- Hot reload support
3031
- Works in both dev and build modes
3132

3233
### Plugin Behavior
34+
3335
- **Build start**: Generate all llms.txt files to `public/`
3436
- **Dev mode**: Watch `src/content/tutorial/**` for changes
3537
- **File watching**: Monitor `content.md`, `_solution/*`, `meta.md`
@@ -38,7 +40,7 @@ public/
3840

3941
### Individual Tutorial File (`/tutorial/{slug}.txt`)
4042

41-
```
43+
````
4244
# {Tutorial Title from meta.md}
4345
4446
> {Tutorial description}
@@ -52,17 +54,20 @@ public/
5254
#### index.js
5355
```js
5456
{solution code}
55-
```
57+
````
5658

5759
#### package.json
60+
5861
```json
5962
{solution package.json}
6063
```
6164

6265
---
6366

6467
## Lesson 2: {Next Lesson Title}
68+
6569
...
70+
6671
```
6772
6873
**Processing rules:**
@@ -76,6 +81,7 @@ public/
7681
### Root Index (`llms.txt`)
7782
7883
```
84+
7985
# Nimiq Tutorials
8086

8187
Learn to build on Nimiq blockchain through interactive tutorials.
@@ -84,12 +90,13 @@ Learn to build on Nimiq blockchain through interactive tutorials.
8490

8591
- [Introduction](/tutorial/introduction.txt): Get started with Nimiq
8692
- [Connecting to Network](/tutorial/connecting-to-network.txt): Blockchain connection
87-
...
93+
...
8894

8995
## Complete Documentation
9096

9197
- [All Tutorials](/llms-full.txt): Full combined documentation
92-
```
98+
99+
````
93100
94101
### Full File (`llms-full.txt`)
95102
@@ -107,7 +114,7 @@ export default defineConfig({
107114
},
108115
integrations: [tutorialkit(...), vue()]
109116
})
110-
```
117+
````
111118

112119
## Key Functions
113120

0 commit comments

Comments
 (0)