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