mirror of
https://github.com/mihakralj/QuanTAlib.git
synced 2026-11-02 07:26:12 +00:00
GenerateNuGetReadme.ps1 now rewrites perf/ relative links to full GitHub URLs.
19 lines
828 B
PowerShell
19 lines
828 B
PowerShell
param(
|
|
[Parameter(Mandatory = $true)]
|
|
[string]$Output
|
|
)
|
|
|
|
$source = Join-Path (Join-Path $PSScriptRoot '..') 'README.md'
|
|
$content = Get-Content -Raw -Path $source
|
|
$content = $content -replace '\]\(docs/', '](https://github.com/mihakralj/QuanTAlib/blob/main/docs/'
|
|
$content = $content -replace '\]\(lib/', '](https://github.com/mihakralj/QuanTAlib/blob/main/lib/'
|
|
$content = $content -replace '\]\(perf/', '](https://github.com/mihakralj/QuanTAlib/blob/main/perf/'
|
|
$content = $content -replace '\]\(LICENSE\)', '](https://github.com/mihakralj/QuanTAlib/blob/main/LICENSE)'
|
|
|
|
$dir = Split-Path -Parent $Output
|
|
if ($dir -and -not (Test-Path -LiteralPath $dir)) {
|
|
New-Item -ItemType Directory -Path $dir -Force | Out-Null
|
|
}
|
|
|
|
[System.IO.File]::WriteAllText($Output, $content, (New-Object System.Text.UTF8Encoding($false)))
|