mirror of
https://github.com/microsoft/autogen.git
synced 2026-04-20 03:02:16 -04:00
Check for missing dependencies before building the website (#1678)
- Add an executable permission to the file. - Check for dependencies before the build starts. - Output a list of missing dependencies.
This commit is contained in:
committed by
GitHub
parent
aea5bedf26
commit
bf3cc0f0ef
23
website/build_website.sh
Normal file → Executable file
23
website/build_website.sh
Normal file → Executable file
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user