This is an automated email from the ASF dual-hosted git repository.

rbowen pushed a commit to branch rbowen-buildsite
in repository https://gitbox.apache.org/repos/asf/steve.git

commit c1c853f583d6cb12bd3aef96c949574fbbeb2dbe
Author: Rich Bowen <[email protected]>
AuthorDate: Fri Oct 10 09:39:02 2025 -0400

    Make test-build run to completion.
---
 site/test-build.sh | 30 +++++++++++++++++-------------
 1 file changed, 17 insertions(+), 13 deletions(-)

diff --git a/site/test-build.sh b/site/test-build.sh
index c1d84ae..450110e 100755
--- a/site/test-build.sh
+++ b/site/test-build.sh
@@ -2,25 +2,29 @@
 #
 # Run a local Pelican build of the site, for dev/test.
 #
-# REQUIRED ENV VARS:
-#
-#   BUILDSITE=/path/to/infrastructure-pelican/bin/buildsite.py
-#   LIBCMARKDIR=/path/to/cmark-gfm.0.28.3.gfm.12/lib
-#
-# ### DOCCO on using infra-pel/bin/build-cmark.sh for the lib/
-#
-# ALSO NEEDED
-#   $ pip3 install ezt pelican
+# REQUIRED ENV VARS. FIX THESE.
 #
+# You will need to clone the repo 
https://github.com/apache/infrastructure-pelican
+# for these tools
+# Use infrastructure-pelican/bin/build-cmark.sh to build the cmark-gfm
+# library.
+export BUILDSITE="../../infrastructure-pelican/bin/buildsite.py"
+export 
LIBCMARKDIR="../../infrastructure-pelican/bin/cmark-gfm-0.28.3.gfm.12/lib"
 
 THIS_SCRIPT=`realpath "$0"`
 SITE_DIR=`dirname "$THIS_SCRIPT"`
 ROOT_DIR=`dirname "$SITE_DIR"`
-#echo $ROOT_DIR
+VENV_DIR="$SITE_DIR/.venv"
 
-cd "$SITE_DIR"
+# Create and activate virtual environment
+if [ ! -d "$VENV_DIR" ]; then
+    python3 -m venv "$VENV_DIR"
+fi
+source "$VENV_DIR/bin/activate"
+
+# Install dependencies
+pip install ezt pelican PyYAML markdown gfm
 
-# export BUILDSITE=~/src/asf/infra-pelican/bin/buildsite.py
-# export LIBCMARKDIR=~/src/asf/infra/tools/bintray/cmark-gfm.0.28.3.gfm.12-libs
+cd "$SITE_DIR"
 
 $BUILDSITE dir --output=/tmp/steve-site.$$ "--yaml-dir=$ROOT_DIR" 
"--content-dir=$SITE_DIR"

Reply via email to