Skip to content

Commit

Permalink
build doc in venv
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelb committed Jul 27, 2023
1 parent 99e5c68 commit 8cc72bc
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion doc/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ set -e
apt-get update
apt-get -y install git rsync python3-pip

python3 -m pip install myst-parser==1.0.0 docutils==0.18 sphinx-rtd-theme==1.2.0 sphinx==5.0
python3 -m venv venv
source venv/bin/activate
pip install myst-parser==1.0.0 docutils==0.18 sphinx-rtd-theme==1.2.0 sphinx==5.0

pwd ls -lah
git config --global --add safe.directory /__w/sniprun/sniprun
Expand All @@ -23,6 +25,8 @@ cd doc
make clean
make html

deactivate

#######################
# Update GitHub Pages #
#######################
Expand Down Expand Up @@ -66,6 +70,7 @@ git commit -am "${msg}"
git push deploy gh-pages --force

popd # return to main repo sandbox root


# exit cleanly
exit 0

0 comments on commit 8cc72bc

Please sign in to comment.