Skip to content

Commit

Permalink
fix docs build script for linux
Browse files Browse the repository at this point in the history
  • Loading branch information
cg505 committed Oct 24, 2024
1 parent 0853d04 commit d88945e
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion docs/build.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
#!/bin/bash

rm -rf build docs
script -q /tmp/build_docs.txt bash -c "make html"

# MacOS and GNU `script` have different usages
if [ "$(uname -s)" = "Linux" ]; then
script -q /tmp/build_docs.txt -c "make html"
else
# Assume MacOS (uname -s = Darwin)
script -q /tmp/build_docs.txt bash -c "make html"
fi

# Check if the output contains "ERROR:" or "WARNING:"
if grep -q -E "ERROR:|WARNING:" /tmp/build_docs.txt; then
Expand Down

0 comments on commit d88945e

Please sign in to comment.