From c27c02a0277d313bd22e005c113bc8fab7ecf286 Mon Sep 17 00:00:00 2001 From: GeWuYou <95328647+GeWuYou@users.noreply.github.com> Date: Tue, 3 Feb 2026 15:26:52 +0800 Subject: [PATCH] =?UTF-8?q?build(docfx):=20=E6=9B=B4=E6=96=B0=E6=96=87?= =?UTF-8?q?=E6=A1=A3=E7=94=9F=E6=88=90=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 修改内容文件匹配规则,将api/index.md从通用匹配中分离 - 添加资源文件配置,支持图片资源(png、jpg、jpeg、gif、svg)的处理 - 集成material模板以增强文档外观 - 调整文件路径匹配模式,使用**/*.md替代**.md以确保正确匹配 --- docfx/docfx.json | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/docfx/docfx.json b/docfx/docfx.json index 98445bc..453829e 100644 --- a/docfx/docfx.json +++ b/docfx/docfx.json @@ -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" ] } -} +} \ No newline at end of file