mirror of
https://github.com/dotMorten/NmeaParser.git
synced 2026-01-29 20:04:18 +01:00
Remove powershell script
This commit is contained in:
parent
b8547baf78
commit
634cc86efc
1
.github/workflows/ghpages.yml
vendored
1
.github/workflows/ghpages.yml
vendored
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -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\
|
||||
|
|
@ -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
|
||||
Loading…
Reference in a new issue