Remove powershell script

This commit is contained in:
Morten Nielsen 2020-06-25 15:40:17 -07:00
parent b8547baf78
commit 634cc86efc
3 changed files with 0 additions and 17 deletions

View file

@ -40,7 +40,6 @@ jobs:
run: |
nuget install memberpage -Version 2.48.1 -OutputDirectory docs
.tools/docfx/docfx.exe docs/docfx.json
powershell -ExecutionPolicy ByPass -command "docs\FixApiRefLinks" -Path artifacts\docs_site\api\
- name: Publish Documentation
env:

View file

@ -23,7 +23,5 @@ mkdir %~dp0../artifacts/docs/api
%~dp0..\.tools\nuget install memberpage -Version 2.48.1 -OutputDirectory %~dp0
REM Build the output site (HTML) from the generated metadata and input files (uses configuration in docfx.json in this folder)
%DocFxFolder%\v%DocFXVersion%\docfx.exe %~dp0\docfx.json
ECHO Fixing API Reference Links
REM powershell -ExecutionPolicy ByPass -command "%~dp0FixApiRefLinks.ps1" -Path %~dp0..\artifacts\docs_site\api\
start http://localhost:8080
%DocFxFolder%\v%DocFXVersion%\docfx.exe serve %~dp0..\artifacts\docs_site\

View file

@ -1,14 +0,0 @@
[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