OSDN Git Service

Some documentation updates.
[mutilities/MUtilities.git] / z_mkdocs.bat
1 @echo off
2 setlocal EnableDelayedExpansion
3
4 :: ------------------------------------------
5 :: Setup Paths
6 :: ------------------------------------------
7
8 set "PATH_PANDOC=C:\Program Files (x86)\Pandoc"
9 set "PATH_DOXYGN=%~dp0\..\Prerequisites\Doxygen\doxygen.exe"
10
11 :: ------------------------------------------
12 :: Create Documents
13 :: ------------------------------------------
14
15 echo ===========================================================================
16 echo Building software documentation..."
17 echo ===========================================================================
18 echo.
19
20 pushd "%~dp0"
21
22 for %%i in ("%~dp0\*.md") do (
23         echo PANDOC: %%~nxi
24         "%PATH_PANDOC%\pandoc.exe" --from markdown_github+pandoc_title_block+header_attributes --to html5 --toc -N --standalone -H "%~dp0\etc\style\style.css" "%%~i" --output "%%~dpni.html"
25         if not "!ERRORLEVEL!"=="0" (
26                 echo.
27                 echo Something went wrong^^!
28                 echo.
29                 pause && exit
30         )
31 )
32
33 echo DOXYGEN: Doxyfile
34 "%PATH_DOXYGN%" "%~dp0\Doxyfile"
35 if not "!ERRORLEVEL!"=="0" (
36         echo.
37         echo Something went wrong^^!
38         echo.
39         pause && exit
40 )
41
42 echo.
43
44 pause