Skip to content

Commit 7474ce7

Browse files
committed
fixes
1 parent a428bcb commit 7474ce7

File tree

1 file changed

+11
-19
lines changed

1 file changed

+11
-19
lines changed
Lines changed: 11 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,26 @@
11
#!/bin/bash
22

3-
# Script to build Doxygen documentation and copy to Docusaurus static directory
4-
53
set -e
64

75
echo "Building Doxygen documentation..."
8-
9-
# Navigate to the C++ root directory so paths in Doxyfile are correct
106
cd "$(dirname "$0")/../../cpp"
11-
12-
# Build the documentation using Doxygen from the docs subdirectory
13-
doxygen docs/Doxyfile
7+
doxygen -q docs/Doxyfile
148

159
echo "Copying Doxygen HTML to Docusaurus static directory..."
1610

17-
# Create the static/api directory if it doesn't exist
18-
mkdir -p "../docs/static/api"
19-
20-
# Copy the built documentation from the correct path
21-
if [ -d "docs/build" ]; then
22-
# First, clean the destination to avoid any leftover files
23-
rm -rf ../docs/static/api/*
24-
25-
# Copy the built documentation
26-
cp -R docs/build/* ../docs/static/api/
27-
28-
else
11+
if ! [ -d "docs/build" ]; then
2912
echo "Error: docs/build directory not found!"
3013
exit 1
3114
fi
15+
# First, clean the destination to avoid any leftover files
16+
rm -rf ../docs/static/api/*
17+
18+
# Copy the built documentation
19+
mkdir -p ../docs/static/api/
20+
cp -R docs/build/* ../docs/static/api/
21+
22+
# NOTE(AD): hack - but was blocked and couldn't figure out why we had two examples for something called 'if' with different casing.
23+
rm ../docs/static/api/if-example.html
3224

3325
echo "Doxygen documentation successfully built and copied to Docusaurus!"
3426
echo "You can now build and serve the Docusaurus site to view the integrated documentation."

0 commit comments

Comments
 (0)