pyenv-virtualenv for Windows 1.2
A 'pyenv' plugin to manage Python virtual environments, depending on different Python versions, for various Python projects.
Loading...
Searching...
No Matches
build_doxygen_docs.bat
Go to the documentation of this file.
1@echo off
2setlocal
3REM Windows Command Line Script (Batch) to build the documentation.
4REM
5REM Dependencies:
6REM * Doxygen 1.13+
7REM * ..\docs.doxyfile
8REM
9REM © 2025 Michael Paul Korthals. All rights reserved.
10REM For legal details see documentation.
11REM
12REM 2025-07-10
13REM
14REM This script is located in the subfolder "docs"
15REM in the project main directory.
16REM
17REM Simply open it in Windows Explorer or call it by path
18REM in the Windows CMD terminal.
19REM
20REM The HTML documentation will appear as subfolder ".\html".
21REM
22REM The script returns RC = 0 or another value in case of
23REM compilation errors.
24
25REM Show what is going on here
26echo Updating documentation ...
27REM Remember the original directory
28cd > ".cwd.~"
29set /p ORI_DIR=<".cwd.~"
30del ".cwd.~"
31REM Change to the drive and directory of this script
32cd /d "%~dp0"
33REM Change to the project root directory
34REM in which the "docs" folder is located.
35cd ..
36REM Determine the Doxygen configuration file path
37cd > ".cwd.~"
38set /p CWD=<".cwd.~"
39del ".cwd.~"
40set "CONFIG_PATH=%CWD%\docs.doxyfile"
41echo Configuring Doxygen by file:
42echo %CONFIG_PATH%
43REM Compile the documentation
44echo Compiling. This could take a while ...
45echo.
46doxygen %CONFIG_PATH%
47set /a RC=%ERRORLEVEL%
48if %RC% neq 0 goto finish
49REM Pack the Doxygen HTML documentation into '%~dp0\doxygen.zip'.
50for %%I in (.) do set "BASENAME=%%~nxI"
51echo.
52echo Archiving into 'doxygen_%BASENAME%.zip'. This could take a while ...
53cd /d "%~dp0"
54if exist doxygen_%BASENAME%.zip del doxygen_%BASENAME%.zip
557z a -r doxygen_%BASENAME%.zip .\html\*.*
56set /a RC=%ERRORLEVEL%
57:finish
58REM Check an output return code
59echo.
60if %RC% neq 0 goto else1
61 REM Display success
62 echo ␛[92mSUCCESS (RC = %RC%).␛[0m
63 echo ␛[37mINFO But, be aware of ␛[93mwarnings␛[0m in the console log.␛[0m
64 goto endif1
65:else1
66 REM Display failure
67 echo ␛[91mERROR (RC = %RC%).␛[0m
68 echo ␛[95mNOTICE Check Doxygen console logging and repair.␛[0m
69 goto endif1
70:endif1
71echo.
72REM Pause and exit
73pause
74REM Change to the original drive and directory
75if defined ORI_DIR cd /d %ORI_DIR%
76exit /b %RC%