From 634cc86efcd25c90f76bd808b165883c61c867c8 Mon Sep 17 00:00:00 2001 From: Morten Nielsen Date: Thu, 25 Jun 2020 15:40:17 -0700 Subject: [PATCH] Remove powershell script --- .github/workflows/ghpages.yml | 1 - docs/BuildDoc.cmd | 2 -- docs/FixApiRefLinks.ps1 | 14 -------------- 3 files changed, 17 deletions(-) delete mode 100644 docs/FixApiRefLinks.ps1 diff --git a/.github/workflows/ghpages.yml b/.github/workflows/ghpages.yml index 4eceacd..029d4e6 100644 --- a/.github/workflows/ghpages.yml +++ b/.github/workflows/ghpages.yml @@ -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: diff --git a/docs/BuildDoc.cmd b/docs/BuildDoc.cmd index 3a319b9..a047c72 100644 --- a/docs/BuildDoc.cmd +++ b/docs/BuildDoc.cmd @@ -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\ \ No newline at end of file diff --git a/docs/FixApiRefLinks.ps1 b/docs/FixApiRefLinks.ps1 deleted file mode 100644 index e3949a9..0000000 --- a/docs/FixApiRefLinks.ps1 +++ /dev/null @@ -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 \ No newline at end of file