Skip to content

Commit

Permalink
Move venv activate line to make it clear what needs it
Browse files Browse the repository at this point in the history
  • Loading branch information
tossy310 authored and vmcj committed Sep 21, 2023
1 parent cc9ad12 commit 138ab77
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions docker/domserver/build.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
#!/bin/sh -eu

# Use venv to use latest Sphinx. 6.1.0 or higher is required to build DOMjudge docs.
# shellcheck source=/dev/null
. /venv/bin/activate

cd /domjudge-src/domjudge*
chown -R domjudge: .
# If we used a local source tarball, it might not have been built yet
Expand All @@ -30,4 +26,7 @@ then
fi

sudo -u domjudge sh -c '. /venv/bin/activate && make docs'
# Use Python venv to use the latest Sphinx to build DOMjudge docs.
# shellcheck source=/dev/null
. /venv/bin/activate
make install-docs

0 comments on commit 138ab77

Please sign in to comment.