azure-docs-sdk-java/update_toc.ps1

10 строки
432 B
PowerShell
Исходник Обычный вид История

2020-03-19 06:48:02 +03:00
# converted for main repo
Param(
[string]$TargetFolder
)
$results = Get-Content "$TargetFolder/docs-ref-autogen/toc.yml","legacy-docs-toc-merge/toc.yml"
# separate operations otherwise pshell leaves the file open and the set-content fails
2020-03-19 06:48:02 +03:00
$results | Set-Content "$TargetFolder/docs-ref-autogen/toc.yml"
Copy-Item -Path "$TargetFolder/legacy-docs-toc-merge/*" -Exclude @("toc.yml") -Destination "$TargetFolder/docs-ref-autogen"