OSDN Git Service

37a658bf058cbaf287952591f93b17cf9c7033bb
[lamexp/LameXP.git] / etc / Deployment / _mkdocs.bat
1 @echo off
2 setlocal EnableDelayedExpansion
3
4 "%~dp0\..\Utilities\CEcho.exe" cyan "\n==========================================================================="
5 "%~dp0\..\Utilities\CEcho.exe" cyan "Building software documentation..."
6 "%~dp0\..\Utilities\CEcho.exe" cyan "===========================================================================\n"
7
8 :: ------------------------------------------
9 :: Setup Paths
10 :: ------------------------------------------
11
12 call "%~dp0\_paths.bat"
13
14 :: ------------------------------------------
15 :: Create Documents
16 :: ------------------------------------------
17
18 for %%i in ("%~dp0\..\..\doc\*.md") do (
19         echo PANDOC: %%~nxi
20         "%PATH_PANDOC%\pandoc.exe" --from markdown_github+pandoc_title_block --to html5 --toc -N --standalone -H "%~dp0\..\Style\style.css" "%%~i" --output "%%~dpni.html"
21         echo.
22         if not "!ERRORLEVEL!"=="0" (
23                 "%~dp0\..\Utilities\CEcho.exe" red "\nSomething went wrong^^!\n"
24                 pause && exit
25         )
26 )
27
28 echo.