File tree Expand file tree Collapse file tree 3 files changed +8
-12
lines changed
Expand file tree Collapse file tree 3 files changed +8
-12
lines changed Original file line number Diff line number Diff line change @@ -21,10 +21,10 @@ jobs:
2121 - name : Download DocFX
2222 run : |
2323 mkdir .tools/docfx
24- Invoke-WebRequest -Uri "https://github.com/dotnet/docfx/releases/download/v${env:DOCFXVERSION}/docfx.zip" -OutFile ".tools/docfx/docfx.zip"
24+ Invoke-WebRequest -Uri "https://github.com/dotnet/docfx/releases/download/v${env:DOCFXVERSION}/docfx-win-x64-v${env:DOCFXVERSION} .zip" -OutFile ".tools/docfx/docfx.zip"
2525 [System.IO.Compression.ZipFile]::ExtractToDirectory(".tools/docfx/docfx.zip", ".tools/docfx" )
2626 env :
27- DOCFXVERSION : 2.59.4
27+ DOCFXVERSION : 2.78.3
2828
2929 - name : Install .NET OMD Generator
3030 run : dotnet tool install --tool-path .tools/omd dotMorten.OmdGenerator --version 1.4.0
4141 env :
4242 DOCFX_SOURCE_BRANCH_NAME : main
4343 run : |
44- nuget install memberpage -Version 2.59.4 -OutputDirectory docs
4544 .tools/docfx/docfx.exe metadata docs/docfx.json
4645 .tools/docfx/docfx.exe build docs/docfx.json
4746
Original file line number Diff line number Diff line change 11@ ECHO OFF
22
3- SET DocFXVersion = 2.58
3+ SET DocFXVersion = 2.78.3
44SET DocFxFolder = %~dp0 ..\.tools\docfx
55
66REM Download DocFx
77
88IF NOT EXIST " %DocFxFolder% \v%DocFXVersion% \docfx.exe" (
99 MKDIR " %DocFXFolder% \v%DocFXVersion% "
10- powershell -ExecutionPolicy ByPass -command " Invoke-WebRequest -Uri " https://github.com/dotnet/docfx/releases/download/v%DocFXVersion% /docfx.zip" -OutFile '%DocFxFolder% \docfx_v%DocFXVersion% .zip'"
10+ powershell -ExecutionPolicy ByPass -command " Invoke-WebRequest -Uri ' https://github.com/dotnet/docfx/releases/download/v%DocFXVersion% /docfx-win-x64-v %DocFXVersion% .zip' -OutFile '%DocFxFolder% \docfx_v%DocFXVersion% .zip'"
1111 powershell -ExecutionPolicy ByPass -command " Expand-Archive -LiteralPath '%DocFxFolder% \docfx_v%DocFXVersion% .zip' -DestinationPath '%DocFxFolder% \v%DocFXVersion% '"
1212 DEL " %DocFxFolder% \docfx_v%DocFXVersion% .zip" /Q
1313)
14- IF NOT EXIST " ..\.tools\nuget.exe" (
15- powershell -ExecutionPolicy ByPass -command " Invoke-WebRequest -Uri " https://dist.nuget.org/win-x86-commandline/latest/nuget.exe" -OutFile '%~dp0 ..\.tools\nuget.exe'"
16- )
1714
1815REM Generate OMD
1916dotnet tool install --tool-path %~dp0 ../.tools/omd dotMorten.OmdGenerator --version 1.4.0
2017mkdir %~dp0 ../artifacts/docs/api
2118%~dp0 ..\.tools\omd\generateomd /source=%~dp0 ../src/WinUIEx/. /output=%~dp0 ../artifacts/docs/api/omd.html
2219
23- %~dp0 ..\.tools\nuget install memberpage -Version 2.58.0 -OutputDirectory %~dp0
2420REM Build the output site (HTML) from the generated metadata and input files (uses configuration in docfx.json in this folder)
2521%DocFxFolder% \v%DocFXVersion% \docfx.exe metadata %~dp0 \docfx.json
2622
Original file line number Diff line number Diff line change 1111 ],
1212 "dest" : " obj/api" ,
1313 "disableGitFeatures" : false ,
14- "disableDefaultFilter" : false
14+ "disableDefaultFilter" : false ,
15+ "memberLayout" : " separatePages"
1516 },
1617 ],
1718 "build" : {
6970 "_gitContribute" : {
7071 "branch" : " main" ,
7172 "apiSpecFolder" : " docs/api_overwrites"
72- }
73+ },
74+ "memberLayout" : " separatePages"
7375 },
7476 "dest" : " ../artifacts/docs_site" ,
7577 "globalMetadataFiles" : [],
7678 "fileMetadataFiles" : [],
7779 "template" : [
7880 " default" ,
79- " memberpage.2.58.0/content" ,
8081 " template_overrides"
8182 ],
8283 "postProcessors" : [],
You can’t perform that action at this time.
0 commit comments