From 70712969e78c5d75fb60e860d3b80daf56c8d0bd Mon Sep 17 00:00:00 2001 From: Hsu Still <341464@gmail.com> Date: Mon, 26 Mar 2018 16:30:18 +0800 Subject: [PATCH] Add workaround for merging framework targets --- docs/docfx.json | 184 +++++++++++++++++++++++++++++++----------------- 1 file changed, 121 insertions(+), 63 deletions(-) diff --git a/docs/docfx.json b/docs/docfx.json index 03de34ee6..d76ee7613 100644 --- a/docs/docfx.json +++ b/docs/docfx.json @@ -1,69 +1,127 @@ { - "metadata": [ - { - "src": [ - { - "src": "../src", - "files": [ - "**.csproj" - ], - "exclude": [ - "**/bin/**", - "**/obj/**" - ] - } - ], - "dest": "api", - "filter": "filterConfig.yml", - "properties":{ - "TargetFramework": "netstandard1.1" - } - } - ], - "build": { - "content": [ + "metadata":[ { - "files": [ - "api/**.yml", - "api/index.md" - ] + "src":[ + { + "src":"../src", + "files":[ + "**.csproj" + ] + } + ], + "dest":"temp/api/netstandard1.1", + "filter":"filterConfig.yml", + "properties":{ + "TargetFramework":"netstandard1.1" + } }, { - "files": [ - "guides/**.md", - "guides/**/toc.yml", - "faq/**.md", - "faq/**/toc.yml", - "toc.yml", - "*.md" - ], - "exclude": [ - "obj/**", - "_site/**" - ] - } - ], - "resource": [ + "src":[ + { + "src":"../src", + "files":[ + "**.csproj" + ] + } + ], + "dest":"temp/api/netstandard1.3", + "filter":"filterConfig.yml", + "properties":{ + "TargetFramework":"netstandard1.3" + } + }, { - "files": [ - "**/images/**", - "**/samples/**" - ], - "exclude": [ - "obj/**", - "_site/**" - ] + "src":[ + { + "src":"../src", + "files":[ + "**.csproj" + ] + } + ], + "dest":"temp/api/net45", + "filter":"filterConfig.yml", + "properties":{ + "TargetFramework":"net45" + } } - ], - "dest": "_site", - "template": [ - "default" - ], - "globalMetadata": { - "_appFooter": "Discord.Net (c) 2015-2018", - "_enableSearch": true - }, - "noLangKeyword": false, - "xrefService": [ "https://xref.docs.microsoft.com/query?uid={uid}" ] - } -} + ], + "merge":{ + "content":[ + { + "files":"*.yml", + "src":"temp/api/netstandard1.1" + }, + { + "files":"*.yml", + "src":"temp/api/netstandard1.3" + }, + { + "files":"*.yml", + "src":"temp/api/net45" + } + ], + "fileMetadata":{ + "platform":{ + "temp/api/netstandard1.3/*.yml":[ + "netstandard1.3" + ], + "temp/api/netstandard1.1/*.yml":[ + "netstandard1.1" + ], + "temp/api/net46/*.yml":[ + "net46" + ] + } + }, + "dest":"api" + }, + "build":{ + "content":[ + { + "files":[ + "api/**.yml", + "api/index.md" + ] + }, + { + "files":[ + "guides/**.md", + "guides/**/toc.yml", + "faq/**.md", + "faq/**/toc.yml", + "toc.yml", + "*.md" + ], + "exclude":[ + "obj/**", + "_site/**" + ] + } + ], + "resource":[ + { + "files":[ + "**/images/**", + "**/samples/**" + ], + "exclude":[ + "obj/**", + "_site/**" + ] + } + ], + "dest":"_site", + "template":[ + "default" + ], + "globalMetadata":{ + "_appFooter":"Discord.Net (c) 2015-2018", + "_enableSearch":true + }, + "noLangKeyword":false, + "xrefService":[ + "https://xref.docs.microsoft.com/query?uid={uid}" + ] + } +} \ No newline at end of file