@echo off
echo Installing required packages...
pip install grip

echo Creating directories...
if not exist "pdf" mkdir pdf

echo Starting local server...
start "" "http://localhost:6419"
grip --title="Documentation" --export SUMMARY.md SUMMARY.html

echo Documents have been converted to HTML format.
echo Please:
echo 1. Open the generated SUMMARY.html file in your browser
echo 2. Use browser's print function (Ctrl+P)
echo 3. Select "Save as PDF" option
echo 4. Save the file in the 'pdf' folder

pause
