LameXP/etc/Deployment/_mkdocs.bat

31 lines
827 B
Batchfile

@echo off
setlocal EnableDelayedExpansion
echo.
echo ----------------------------------------------------------------
echo Building software documentation
echo ----------------------------------------------------------------
echo.
:: ------------------------------------------
:: Setup Paths
:: ------------------------------------------
call "%~dp0\_paths.bat"
:: ------------------------------------------
:: Create Documents
:: ------------------------------------------
for %%i in ("%~dp0\..\..\doc\*.md") do (
echo PANDOC: %%~nxi
"%PATH_PANDOC%\pandoc.exe" --from markdown_github+pandoc_title_block --to html5 --toc -N --standalone -H "%~dp0\..\Style\style.css" "%%~i" --output "%%~dpni.html"
echo.
if "!ERRORLEVEL!"=="0" (
echo. && echo Creating the document has failed^^!
echo. && pause && exit
)
)
echo.