@echo off setlocal enabledelayedexpansion REM Check dependencies where pandoc >nul 2>&1 if errorlevel 1 ( echo ERROR: Pandoc not found in PATH. exit /b 1 ) echo Generating PDF ... pandoc README.md ^ --lua-filter="./doc/tools/noexport-subtrees.lua" ^ --template="./doc/tools/eisvogel.latex" ^ --toc ^ --number-sections ^ --pdf-engine=xelatex ^ -o "./doc/build/Documentation.pdf" echo Generating HTML ... pandoc README.md ^ --lua-filter="./doc/tools/noexport-subtrees.lua" ^ --template="./doc/tools/bootstrap_menu.html" ^ --toc ^ --toc-depth=6 ^ --standalone ^ --embed-resources ^ -o "./doc/build/index.html" echo Done.