Skip to content

Commit ee56295

Browse files
authored
Merge pull request #150 from OpenZeppelin/introduce-llms-txt
feat: Introduce llms.txt file and script for creating it
2 parents 9bdd1fe + 7f0b962 commit ee56295

4 files changed

Lines changed: 886 additions & 0 deletions

File tree

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,14 @@ In the case you want to setup an automated GitHub workflow to create these API d
114114
3. Follow existing directory structure for consistency
115115
4. Update navigation if adding new product categories
116116

117+
### Updating `llms.txt`
118+
119+
The `public/llms.txt` file is generated from the navigation tree and MDX frontmatter. Run the generator whenever you add, remove, rename, or reorder navigation items, or when you update page descriptions that should appear in `llms.txt`.
120+
121+
```bash
122+
pnpm run generate:llms-txt
123+
```
124+
117125
### Versioning
118126

119127
- Version-specific content in numbered subdirectories (e.g., `contracts/4.x/`)

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
"lint:fix": "biome lint --write src/",
1515
"format": "biome format src/",
1616
"format:fix": "biome format --write src/",
17+
"generate:llms-txt": "tsx scripts/generate-llms-txt.ts",
1718
"check": "biome check src/ && pnpm run lint:links",
1819
"check:fix": "biome check --write src/"
1920
},

0 commit comments

Comments
 (0)