NmeaParser/build/GenerateDoc.cmd
2020-01-20 20:28:59 -08:00

21 lines
816 B
Batchfile

@ECHO OFF
SET DocFXVersion=2.48.1
SET DocFxFolder=%~dp0\..\artifacts\toolset
REM Download DocFx
powershell -ExecutionPolicy ByPass -command "%~dp0/DownloadDocFX.ps1" -Version %DocFXVersion% -Folder %DocFxFolder%
REM Build metadata for all platforms (uses configuration in docfx.json in this folder)
%DocFxFolder%\v%DocFXVersion%\docfx.exe %~dp0..\docs\docfx.json metadata
REM Merge output (not implemented)
REM %DocFxFolder%\v%DocFXVersion%\docfx.exe merge
REM Generate OMD
dotnet tool install --global dotMorten.OmdGenerator
generateomd /source=%~dp0../src/NmeaParser /output=%~dp0../artifacts/docs/api/omd.html
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..\docs\docfx.json build