/
z_mkdocs.bat
44 lines (35 loc) · 1.06 KB
/
z_mkdocs.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
@echo off
setlocal EnableDelayedExpansion
:: ------------------------------------------
:: Setup Paths
:: ------------------------------------------
set "PATH_PANDOC=C:\Program Files\Pandoc"
set "PATH_DOXYGN=%~dp0\..\Prerequisites\Doxygen\doxygen.exe"
:: ------------------------------------------
:: Create Documents
:: ------------------------------------------
echo ===========================================================================
echo Building software documentation..."
echo ===========================================================================
echo.
pushd "%~dp0"
for %%i in ("%~dp0\*.md") do (
echo PANDOC: %%~nxi
"%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"
if not "!ERRORLEVEL!"=="0" (
echo.
echo Something went wrong^^!
echo.
pause && exit
)
)
echo DOXYGEN: Doxyfile
"%PATH_DOXYGN%" "%~dp0\Doxyfile"
if not "!ERRORLEVEL!"=="0" (
echo.
echo Something went wrong^^!
echo.
pause && exit
)
echo.
pause