OSDN Git Service

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