diff --git a/docs/scripts/build.sh b/docs/scripts/build.sh index e06ae5f2aa99..cd3bb48f35b9 100755 --- a/docs/scripts/build.sh +++ b/docs/scripts/build.sh @@ -10,6 +10,11 @@ build_package() { (cd "yarn-project/$package_name" && $build_command) } +bootstrap_barretenberg() { + echo "Bootstrapping barretenberg and building bb.js..." + (cd barretenberg && ./bootstrap.sh) +} + # Build script. If run on Netlify, first it needs to compile all yarn-projects # that are involved in typedoc in order to generate their type information. if [ -n "$NETLIFY" ]; then @@ -17,6 +22,9 @@ if [ -n "$NETLIFY" ]; then cd .. echo Working dir $(pwd) + # Build bb.js + bootstrap_barretenberg + # Make sure the latest tag is available for loading code snippets from it LAST_TAG="aztec-packages-v$(jq -r '.["."]' .release-please-manifest.json)" echo Fetching latest released tag $LAST_TAG...