Skip to content

Commit 14451f0

Browse files
committed
Improve documentation build script with error handling and Sphinx integration
1 parent 2a14ddf commit 14451f0

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

ci/docs.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,16 @@ sudo make
1919

2020
# make documentation
2121
show-green "Building documentation"
22+
2223
if [ ! -d "doc" ]; then
2324
echo "Error: doc directory does not exist."
2425
exit 1
2526
fi
27+
2628
cd doc
27-
make html
29+
sphinx-build -b html -d _build/doctrees . _build/html
2830
cd ..
29-
mkdir deploy
31+
mkdir -p deploy
3032
cp -r doc/_build/html deploy/sugar3
3133
touch deploy/.nojekyll
3234
# create an index.html so that users don't become confused

0 commit comments

Comments
 (0)