-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathGenerate-Documentation.ps1
More file actions
23 lines (17 loc) · 1023 Bytes
/
Generate-Documentation.ps1
File metadata and controls
23 lines (17 loc) · 1023 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Param (
[Parameter(Mandatory=$false)]
[string]$BuildFlavor = "Release"
)
$buildFolderPath = $PSScriptRoot
if($env:APPVEYOR_BUILD_FOLDER -ne $null)
{
$buildFolderPath = $env:APPVEYOR_BUILD_FOLDER
}
Write-Host "Build dir : $buildFolderPath"
$computeClientXmlPath = Join-Path $buildFolderPath "ComputeClient\Compute.Client\bin\$BuildFlavor\DD.CBU.Compute.Api.Client.xml"
$computeClientContractsXmlPath = Join-Path $buildFolderPath "ComputeClient\Compute.Contracts\bin\$BuildFlavor\DD.CBU.Compute.Api.Contracts.xml"
$xmlDocXslPath = Join-Path $buildFolderPath "xmldoc2md\xmldoc2md.xsl"
$computeClientMdPath = Join-Path $buildFolderPath "docs\DD.CBU.Compute.Api.Client.md"
$computeClientContractsMdPath = Join-Path $buildFolderPath "docs\DD.CBU.Compute.Api.Contracts.md"
.\xmldoc2md\xmldoc2md.ps1 -xml $computeClientXmlPath -xsl $xmlDocXslPath -output $computeClientMdPath
.\xmldoc2md\xmldoc2md.ps1 -xml $computeClientContractsXmlPath -xsl $xmlDocXslPath -output $computeClientContractsMdPath