OSDN Git Service

Bump version.
[mutilities/MUtilities.git] / z_mkdocs.bat
index c8d7561..7452390 100644 (file)
@@ -5,7 +5,8 @@ setlocal EnableDelayedExpansion
 :: Setup Paths
 :: ------------------------------------------
 
-set "PATH_PANDOC=C:\Program Files (x86)\Pandoc"
+set "PATH_PANDOC=C:\Program Files\Pandoc"
+set "PATH_DOXYGN=%~dp0\..\Prerequisites\Doxygen\doxygen.exe"
 
 :: ------------------------------------------
 :: Create Documents
@@ -16,6 +17,8 @@ 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"
@@ -27,4 +30,15 @@ for %%i in ("%~dp0\*.md") do (
        )
 )
 
+echo DOXYGEN: Doxyfile
+"%PATH_DOXYGN%" "%~dp0\Doxyfile"
+if not "!ERRORLEVEL!"=="0" (
+       echo.
+       echo Something went wrong^^!
+       echo.
+       pause && exit
+)
+
 echo.
+
+pause
\ No newline at end of file