build(docfx): 更新文档生成配置

- 修改内容文件匹配规则,将api/index.md从通用匹配中分离
- 添加资源文件配置,支持图片资源(png、jpg、jpeg、gif、svg)的处理
- 集成material模板以增强文档外观
- 调整文件路径匹配模式,使用**/*.md替代**.md以确保正确匹配
This commit is contained in:
GeWuYou 2026-02-03 15:26:52 +08:00
parent 6e4d8d99e1
commit c27c02a027

View File

@ -22,15 +22,18 @@
],
"build": {
"content": [
{ "files": [ "index.md" ] },
{ "files": [ "api/**.yml", "api/index.md" ] },
{
"files": [ "**.md", "**/toc.yml" ],
"src": "../docs"
}
],
"dest": "_site",
"template": [ "default" ],
{ "files": [ "index.md" ] },
{ "files": [ "api/**.yml" ] },
{
"files": [ "**/*.md", "**/toc.yml" ],
"src": "../docs"
}
],
"resource": [
{ "files": [ "images/**", "**/*.png", "**/*.jpg", "**/*.jpeg", "**/*.gif", "**/*.svg" ] }
],
"dest": "_site",
"template": [ "default", "templates/material" ],
"globalMetadata": {
"_appTitle": "GFramework Documentation",
"_enableSearch": true,
@ -41,4 +44,4 @@
"https://learn.microsoft.com/en-us/dotnet/.xrefmap.json"
]
}
}
}