From e1c7fd0ba21cdb887c97db76aa0600e264e66503 Mon Sep 17 00:00:00 2001 From: kat Date: Tue, 24 Jan 2023 15:24:33 -0500 Subject: Attempt to prevent bad C++ docs from being shipped again --- api-docs/cppdocs/build_min_docs.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'api-docs/cppdocs/build_min_docs.py') diff --git a/api-docs/cppdocs/build_min_docs.py b/api-docs/cppdocs/build_min_docs.py index 455c1376..92fde5fc 100644 --- a/api-docs/cppdocs/build_min_docs.py +++ b/api-docs/cppdocs/build_min_docs.py @@ -126,14 +126,17 @@ def minifier(): def build_doxygen(): - if not os.path.exists('./Doxyfile'): + if not os.path.exists('./USEBUILDMINDOCS'): print('No Doxyfile found. Are you in the right directory?') sys.exit(1) _, vers, _ = system_with_output("doxygen -V") if __DOXYGEN_REQUIRED_VERSION__ not in vers.strip(): + print(f'Please use Doxygen {__DOXYGEN_REQUIRED_VERSION__} to build documentation') print(f'Please use Doxygen {__DOXYGEN_REQUIRED_VERSION__} to build documentation') sys.exit(1) + print(f'DOXYGEN VERSION: {vers.strip()}') + if os.path.exists('./html/'): print('Clearing ./html/') try: @@ -142,7 +145,7 @@ def build_doxygen(): # doing it twice works (on macOS) ¯\_(ツ)_/¯ shutil.rmtree("./html/") print(f'Building doxygen docs...') - stat, out, err = system_with_output("doxygen Doxyfile") + stat, out, err = system_with_output("doxygen USEBUILDMINDOCS") print(f"Built Doxygen with status code {stat}") print("Output dir is ./html/") -- cgit v1.3.1