NmeaParser/build/GenerateDoc.cmd

21 lines
816 B
Batchfile
Raw Normal View History

2020-01-20 03:30:43 +01:00
@ECHO OFF
SET DocFXVersion=2.48.1
2020-01-21 05:28:59 +01:00
SET DocFxFolder=%~dp0\..\artifacts\toolset
2020-01-20 03:30:43 +01:00
REM Download DocFx
2020-01-21 05:28:59 +01:00
powershell -ExecutionPolicy ByPass -command "%~dp0/DownloadDocFX.ps1" -Version %DocFXVersion% -Folder %DocFxFolder%
2020-01-20 03:30:43 +01:00
REM Build metadata for all platforms (uses configuration in docfx.json in this folder)
2020-01-21 05:28:59 +01:00
%DocFxFolder%\v%DocFXVersion%\docfx.exe %~dp0..\docs\docfx.json metadata
2020-01-20 03:30:43 +01:00
REM Merge output (not implemented)
REM %DocFxFolder%\v%DocFXVersion%\docfx.exe merge
REM Generate OMD
dotnet tool install --global dotMorten.OmdGenerator
2020-01-21 05:28:59 +01:00
generateomd /source=%~dp0../src/NmeaParser /output=%~dp0../artifacts/docs/api/omd.html
2020-01-20 03:30:43 +01:00
REM Build the output site (HTML) from the generated metadata and input files (uses configuration in docfx.json in this folder)
2020-01-21 05:28:59 +01:00
%DocFxFolder%\v%DocFXVersion%\docfx.exe %~dp0..\docs\docfx.json build