2014-12-21 18:38:47 +01:00
|
|
|
@echo off
|
2014-12-22 14:44:09 +01:00
|
|
|
setlocal EnableDelayedExpansion
|
|
|
|
|
2016-12-20 20:32:59 +01:00
|
|
|
"%~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
|
|
|
|
:: ------------------------------------------
|
|
|
|
|
2014-12-21 18:38:47 +01:00
|
|
|
for %%i in ("%~dp0\..\..\doc\*.md") do (
|
|
|
|
echo PANDOC: %%~nxi
|
2017-03-25 13:52:58 +01:00
|
|
|
"%~dp0\..\..\..\Prerequisites\Pandoc\pandoc.exe" --from markdown_github+pandoc_title_block+header_attributes+implicit_figures --to html5 --toc -N --standalone -H "%~dp0\..\..\..\Prerequisites\Pandoc\css\github-pandoc.inc" "%%~i" | "%JAVA_HOME%\bin\java.exe" -jar "%~dp0\..\..\..\Prerequisites\HTMLCompressor\bin\htmlcompressor-1.5.3.jar" --compress-css -o "%%~dpni.html"
|
|
|
|
::"%~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"
|
2014-12-22 23:38:23 +01:00
|
|
|
if not "!ERRORLEVEL!"=="0" (
|
2016-12-20 20:32:59 +01:00
|
|
|
"%~dp0\..\..\..\Prerequisites\CEcho\cecho.exe" red "\nSomething went wrong^^!\n"
|
2014-12-23 00:23:41 +01:00
|
|
|
pause && exit
|
2014-12-22 22:40:20 +01:00
|
|
|
)
|
2014-12-21 18:38:47 +01:00
|
|
|
)
|
2014-12-22 14:44:09 +01:00
|
|
|
|
|
|
|
echo.
|