From 8e5c7fe90b2cb3ab45856719a6f22e91a2b49cca Mon Sep 17 00:00:00 2001 From: glx22 Date: Sat, 12 Dec 2020 21:30:56 +0100 Subject: [PATCH] Fix: [release-docs] support for cmake docs target --- release-docs/files/run.sh | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/release-docs/files/run.sh b/release-docs/files/run.sh index 8605a81..49a655d 100755 --- a/release-docs/files/run.sh +++ b/release-docs/files/run.sh @@ -15,25 +15,26 @@ echo "Creating docs" echo " Source: ${BASENAME}" echo "" -mkdir -p objs -VERSION=${VERSION} doxygen - if [ -e "CMakeLists.txt" ]; then ( mkdir build cd build cmake .. - make script_window || true + make docs || true + ) + mv build/docs/source docs/source + mv build/docs/ai-api docs/aidocs + mv build/docs/gs-api docs/gamedocs +else + mkdir -p objs + VERSION=${VERSION} doxygen + ( + cd src/script/api + VERSION=${VERSION} doxygen Doxyfile_AI + VERSION=${VERSION} doxygen Doxyfile_Game ) - GENERATED_API_DIR=$(pwd)/build/generated/script/api fi -( - cd src/script/api - VERSION=${VERSION} GENERATED_API_DIR=${GENERATED_API_DIR} doxygen Doxyfile_AI - VERSION=${VERSION} GENERATED_API_DIR=${GENERATED_API_DIR} doxygen Doxyfile_Game -) - # Fixing a bug in a Debian patch on Doxygen # https://bugs.launchpad.net/ubuntu/+source/doxygen/+bug/1631169 cp docs/source/html/dynsections.js docs/aidocs/html/