- 入门
- 介绍
- 体系结构
- 更新日志
21.3.0 - 升级到 21.0 版本
- AI
- LLMs.txt
新增
- 开发
- 如何开始
- 新增页面
- 新增业务组件
- 和服务端进行交互
- 使用第三方类库
- 构建和发布
- 升级脚手架
- 全局配置项
- 服务端渲染(SSR)
- 进阶
- 主题系统
- 图表
- 国际化
- 用户认证
- ACL
- Mock
- 缓存
- 优化
- 编码规范建议
- 其他
- 命令行工具
- 常见问题
- 模块注册指导原则
- 贡献指南
本指南介绍如何让 AI 工具更好地理解 NG-ALAIN 组件库。
我们支持通过 LLMs.txt 文件向大语言模型(LLMs)提供 NG-ALAIN 文档。此功能可帮助 AI 工具更好地理解我们的组件库、API 及使用模式。
我们提供多个聚合文件来帮助 AI 工具访问文档:
| 文件 | 说明 |
|---|---|
| llms.txt | 导航文件,包含所有文档和组件的链接 |
| llms-full.txt | 完整的组件文档(英文),包含实现细节和示例 |
| llms-full-cn.txt | 完整的组件文档(中文) |
通过 .md 后缀直接访问单个组件文档:
https://ng-alain.com/llms/components/auto-focus.en.md(英文)https://ng-alain.com/llms/components/auto-focus.cn.md(中文)| 工具 | 说明 | 提示词 |
|---|---|---|
| Cursor | 使用 @Docs 功能引入 LLMs.txt,或添加提示词到 .cursor/rules。文档 | 阅读 https://ng-alain.com/llms-full-cn.txt 并理解 @delon/* 组件库,在编写 @delon/* 代码时使用这些知识。 |
| Windsurf | 添加提示词到 .windsurf/rules 或使用 cascade memories。文档 | 阅读 https://ng-alain.com/llms-full-cn.txt 并理解 @delon/* 组件库,在编写 @delon/* 代码时使用这些知识。 |
| Claude Code | 添加到 CLAUDE.md 或使用 /memory 持久化。文档 | 阅读 https://ng-alain.com/llms-full-cn.txt 并理解 @delon/* 组件库,在编写 @delon/* 代码时使用这些知识。 |
| GitHub Copilot | 添加到 .github/copilot-instructions.md。文档 | 阅读 https://ng-alain.com/llms-full-cn.txt 并理解 @delon/* 组件库,在编写 @delon/* 代码时使用这些知识。 |
| Codex | 添加到 .codex/settings.json 或 AGENTS.md。文档 | 阅读 https://ng-alain.com/llms-full-cn.txt 并理解 @delon/* 组件库,在编写 @delon/* 代码时使用这些知识。 |
| Gemini CLI | 使用 --context 参数或添加到 .gemini/config.json。文档 | 阅读 https://ng-alain.com/llms-full-cn.txt 并理解 @delon/* 组件库,在编写 @delon/* 代码时使用这些知识。 |
| Trae | 添加到项目的知识源设置中。文档 | 阅读 https://ng-alain.com/llms-full-cn.txt 并理解 @delon/* 组件库,在编写 @delon/* 代码时使用这些知识。 |
| Qoder | 添加到 .qoder/config.yml 或在对话中使用 @docs。文档 | 阅读 https://ng-alain.com/llms-full-cn.txt 并理解 @delon/* 组件库,在编写 @delon/* 代码时使用这些知识。 |
| Neovate Code | 运行 neovate 并使用提示词描述任务。文档 | 阅读 https://ng-alain.com/llms-full-cn.txt 并理解 @delon/* 组件库,在编写 @delon/* 代码时使用这些知识。 |