2020-01-20 03:30:43 +01:00
|
|
|
@ECHO OFF
|
|
|
|
|
|
|
|
|
|
SET DocFXVersion=2.48.1
|
2020-01-25 23:12:27 +01:00
|
|
|
SET DocFxFolder=%~dp0\..\.tools\docfx
|
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 Merge output (not implemented)
|
|
|
|
|
REM %DocFxFolder%\v%DocFXVersion%\docfx.exe merge
|
|
|
|
|
|
|
|
|
|
REM Generate OMD
|
2020-01-25 23:12:27 +01:00
|
|
|
dotnet tool install --tool-path .tools/omd dotMorten.OmdGenerator --version 1.2.0
|
|
|
|
|
mkdir %~dp0../artifacts/docs/api
|
|
|
|
|
.tools\omd\generateomd /source=%~dp0../src/NmeaParser /output=%~dp0../artifacts/docs/api/omd.html /preprocessors=NETSTANDARD1_4;NETSTANDARD
|
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-25 23:12:27 +01:00
|
|
|
%DocFxFolder%\v%DocFXVersion%\docfx.exe %~dp0..\docs\docfx.json
|