Skip to content
This repository has been archived by the owner on Dec 27, 2020. It is now read-only.

Fix: [release-docs] support for cmake docs target #47

Merged
merged 1 commit into from
Dec 12, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 12 additions & 11 deletions release-docs/files/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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/
Expand Down