NmeaParser/docs/FixApiRefLinks.ps1
2020-02-01 11:39:34 -08:00

14 lines
387 B
PowerShell

[cmdletbinding()]
param([string]$Path)
function FixApiLinks([string]$path)
{
$files = Get-ChildItem -Path $path -Recurse -Include *.html
foreach ($file in $files)
{
$content = Get-Content -Path $file
$newContent = $content -replace "../(android|ios|uwp|netcore|netstd|netfx)/", ''
$newContent | Set-Content -Path $file
}
}
FixApiLinks -path $Path