Skip to content

A programming framework for agentic AI

Check for missing dependencies before building the website (#1678)

Gunnar Kudrjavetsbf3cc0f0efda
diff --git a/website/build_website.sh b/website/build_website.sh
old mode 100644
new mode 100755
index 92b39844c..9295b0906
--- a/website/build_website.sh
+++ b/website/build_website.sh
@@ -1,8 +1,29 @@
+#!/bin/bash
#
# This script generates documentation using pydoc-markdown and renders the website using Quarto.
#
-# Usage: bash build_website.sh
+
+missing_deps=false
+
#
+# Check for missing dependencies, report them, and exit when building the
+# website is likely to fail.
+#
+for dependency in node pydoc-markdown quarto python yarn npm
+do
+ if ! command -v "$dependency" &> /dev/null
+ then
+ echo "Command '$dependency' not found."
+ missing_deps=true
+ fi
+done
+
+if [ "$missing_deps" = true ]
+then
+ echo -e "\nSome of the dependencies are missing."
+ echo "Please install them to build the website."
+ exit 1
+fi
# Generate documentation using pydoc-markdown
pydoc-markdown