Skip to content

Commit f71821f

Browse files
ice6ArgoZhang
andauthored
feat(llms): add cli tools for llms (#7461)
* feat(llmstxt): code init * feat(ComponentAnalyzer): simplify type name handling and add regex for Nullable<T> * fix: sync the llmstxt outputs * feat(DocsGenerator): add check for index file freshness against component sources * fix(typo): multiple typos fixed * refactor(ComponentAnalyzer): simplify GetClassName method by removing unnecessary checks * feat: 添加 LlmsDocsGenerator 的中文文档 * refactor: 更改文件夹名称为 llms * chore: 更新忽略文件 * chore: 增加 llms 工具项目 * chore: 移除 llms 静态文件 * revert: 撤销 build action 更改 * revert: 撤销 docker action 更改 * revert: 撤销 dockerfile 更新 * fix(DocsGenerator): 修复获取最新组件源文件时间戳的逻辑 * fix(DocsGenerator): 使用组件的最后修改时间替代源文件时间戳计算最新组件时间 * feat(DocsGenerator): 确保输出目录存在以避免文件写入错误 * feat(DocsGenerator): 添加 CLI 工具配置和使用说明 * chore: 更新字典增加 llms 单词 * doc: 更新 readme 文档 * chore: 增加 llms-docs 自动化脚本 临时使用 build 事件调试成功后使用发布事件 * typo * fix: 修正 llmsdocsgenerator 的包名和命令行工具名称 * chore: 更新依赖到最新 # Conflicts: # tools/LlmsDocsGenerator/LlmsDocsGenerator.csproj * refactor: 重构代码防止参数为空 * refactor: 修正生成文件目标位置逻辑 * refactor: 代码格式化 * chore: 更新 dotnet tool cli * feat: 增加 --root 参数适配 cli * feat: 增加调试信息输出配置 * feat: 重构文档生成逻辑,支持每个组件单独生成文档文件 * chore: remove project into extensions lib * revert: 撤销更改 * revert: 撤销更改 --------- Co-authored-by: Argo Zhang <argo@live.ca>
1 parent d1601d6 commit f71821f

4 files changed

Lines changed: 23 additions & 0 deletions

File tree

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -379,3 +379,9 @@ src/**/wwwroot/**/uploader
379379

380380
# css
381381
**/BootstrapBlazor/wwwroot/css/bootstrap.blazor.bundle.*.css
382+
383+
# Code Agents
384+
.claude
385+
386+
# llms
387+
**/wwwroot/llms

dotnet-tools.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,13 @@
88
"css-bundler"
99
],
1010
"rollForward": false
11+
},
12+
"bootstrapblazor.llmsdocsgenerator": {
13+
"version": "10.0.0",
14+
"commands": [
15+
"llms-docs"
16+
],
17+
"rollForward": false
1118
}
1219
}
1320
}

exclusion.dic

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,3 +123,4 @@ Protocol
123123
vditor
124124
alertdialog
125125
blazorbootstrap
126+
llms
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<Project>
2+
3+
<Target Name="LLMs" AfterTargets="Build" Condition="'$(TargetFramework)' == '$(RunTargetFramework)'">
4+
<Message Text="LLMs documentation generating ..." Importance="high"></Message>
5+
<Exec Command="dotnet tool restore"></Exec>
6+
<Exec Command="dotnet llms-docs --root=$(MSBuildThisFileDirectory) --debug"></Exec>
7+
</Target>
8+
9+
</Project>

0 commit comments

Comments
 (0)