mirror of
https://github.com/Effect-TS/effect.git
synced 2026-11-27 02:25:36 +08:00
AI docs
LLMS.md is generated from ai-docs/src.
Add content
- Add or update markdown in
ai-docs/src/**/index.mdfor section intro text. - Add examples as
.tsfiles in the same folder. - Run
pnpm ai-docgento regenerateLLMS.md.
Source file conventions
- Use numeric filename prefixes to control ordering (
10_,20_, etc). Avoid starting with0unless explicity requested to do so. - Use a top JSDoc block with
@titleand optional description to control rendered title/description.
Example guidelines
Before writing an example, look at the existing examples in ai-docs/src to
learn the style and conventions used in this project.
All code examples should be well commented explaining the how and why of the code, not just what the code is doing. The goal is to teach users how to use the API.
Code must represent real world usage and best practices. Do not include toy examples that are not representative of how the API should be used in practice.
Pull requests with only ai documentation changes DO NOT need a changeset.
Regeneration
- One-shot:
pnpm ai-docgen - Watch mode:
pnpm ai-docgen:watch
pnpm ai-docgen regenerates LLMS.md files from content in ai-docs/src.