MUtilities/z_mkdocs.bat

44 lines
1.1 KiB
Batchfile
Raw Permalink Normal View History

2016-04-16 14:25:52 +02:00
@echo off
setlocal EnableDelayedExpansion
:: ------------------------------------------
:: Setup Paths
:: ------------------------------------------
set "PATH_PANDOC=C:\Program Files (x86)\Pandoc"
set "PATH_DOXYGN=%~dp0\..\Prerequisites\Doxygen\doxygen.exe"
2016-04-16 14:25:52 +02:00
:: ------------------------------------------
:: Create Documents
:: ------------------------------------------
echo ===========================================================================
echo Building software documentation..."
echo ===========================================================================
echo.
pushd "%~dp0"
2016-04-16 14:25:52 +02:00
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
)
2016-04-16 14:25:52 +02:00
echo.
pause