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"
|
2020-03-19 09:15:56 +03:00
|
|
|
# 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"
|
2020-03-19 09:15:56 +03:00
|
|
|
|
|
|
|
Copy-Item -Path "$TargetFolder/legacy-docs-toc-merge/*" -Exclude @("toc.yml") -Destination "$TargetFolder/docs-ref-autogen"
|