Compare commits

...
2 changed files with 13 additions and 7 deletions
+5 -1
View File
@@ -215,7 +215,7 @@ stages:
inputs:
targetType: inline
script: |
choco install docfx --version=2.59.4 -y
dotnet tool update -g docfx
if ($lastexitcode -ne 0){
throw ("Error installing DocFX")
}
@@ -224,10 +224,14 @@ stages:
inputs:
targetType: inline
script: |
# Using .cs files directly instead of .csproj to avoid MSBuild/NBGV hangs on Azure DevOps
# See: https://github.com/dotnet/docfx/issues/10144
Write-Host "Starting docfx metadata generation from source files..."
docfx metadata "$(Build.SourcesDirectory)/build/csharp-docs/docfx.json"
if ($lastexitcode -ne 0){
throw ("Error generating metadata.")
}
timeoutInMinutes: 30
- task: PowerShell@2
displayName: Generate documentation
inputs:
+8 -6
View File
@@ -5,20 +5,22 @@
{
"src": "../../src",
"files": [
"**/*.csproj"
"**/*.cs"
],
"exclude": [
"**/obj/**",
"**/bin/**",
"**/Umbraco.Web.csproj",
"**/Umbraco.Web.UI.csproj",
"**/Umbraco.Cms.StaticAssets.csproj",
"**/JsonSchema.csproj"
"**/Umbraco.Web.UI/**",
"**/Umbraco.Cms.StaticAssets/**",
"**/Umbraco.Cms/**",
"**/Umbraco.Cms.Targets/**"
]
}
],
"dest": "api",
"filter": "docfx.filter.yml"
"filter": "docfx.filter.yml",
"disableGitFeatures": true,
"maxParallelism": 1
}
],
"build": {