LameXP/etc/Deployment/_mkdocs.bat

28 lines
1.0 KiB
Batchfile
Raw Normal View History

@echo off
2014-12-22 14:44:09 +01:00
setlocal EnableDelayedExpansion
"%~dp0\..\..\..\Prerequisites\CEcho\cecho.exe" cyan "\n==========================================================================="
"%~dp0\..\..\..\Prerequisites\CEcho\cecho.exe" cyan "Building software documentation..."
"%~dp0\..\..\..\Prerequisites\CEcho\cecho.exe" cyan "===========================================================================\n"
2014-12-22 22:40:20 +01:00
2014-12-22 14:44:09 +01:00
:: ------------------------------------------
:: Setup Paths
:: ------------------------------------------
call "%~dp0\_paths.bat"
:: ------------------------------------------
:: Create Documents
:: ------------------------------------------
for %%i in ("%~dp0\..\..\doc\*.md") do (
echo PANDOC: %%~nxi
"%~dp0\..\..\..\Prerequisites\Pandoc\pandoc.exe" --from markdown_github+pandoc_title_block+header_attributes --to html5 --toc -N --standalone -H "%~dp0\..\Style\style.css" "%%~i" --output "%%~dpni.html"
if not "!ERRORLEVEL!"=="0" (
"%~dp0\..\..\..\Prerequisites\CEcho\cecho.exe" red "\nSomething went wrong^^!\n"
pause && exit
2014-12-22 22:40:20 +01:00
)
)
2014-12-22 14:44:09 +01:00
echo.