We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aea5bed commit bf3cc0fCopy full SHA for bf3cc0f
website/build_website.sh
100644
100755
@@ -1,8 +1,29 @@
1
+#!/bin/bash
2
#
3
# This script generates documentation using pydoc-markdown and renders the website using Quarto.
4
-# Usage: bash build_website.sh
5
+
6
+missing_deps=false
7
8
9
+# Check for missing dependencies, report them, and exit when building the
10
+# website is likely to fail.
11
+#
12
+for dependency in node pydoc-markdown quarto python yarn npm
13
+do
14
+ if ! command -v "$dependency" &> /dev/null
15
+ then
16
+ echo "Command '$dependency' not found."
17
+ missing_deps=true
18
+ fi
19
+done
20
21
+if [ "$missing_deps" = true ]
22
+then
23
+ echo -e "\nSome of the dependencies are missing."
24
+ echo "Please install them to build the website."
25
+ exit 1
26
+fi
27
28
# Generate documentation using pydoc-markdown
29
pydoc-markdown
0 commit comments