Ensure folder initialization and add instructions for Ubuntu users

pull/1305/head
lihenggui 4 months ago
parent dac1a9e446
commit 3534a6fd0d

@ -25,7 +25,9 @@
if ! command -v dot &> /dev/null if ! command -v dot &> /dev/null
then then
echo "The 'dot' command is not found. This is required to generate SVGs from the Graphviz files." echo "The 'dot' command is not found. This is required to generate SVGs from the Graphviz files."
echo "On macOS, you can install it using Homebrew: 'brew install graphviz'" echo "Installation instructions:"
echo " - On macOS: You can install Graphviz using Homebrew with the command: 'brew install graphviz'"
echo " - On Ubuntu: You can install Graphviz using APT with the command: 'sudo apt-get install graphviz'"
exit 1 exit 1
fi fi
@ -50,6 +52,9 @@ done
# Get the module paths # Get the module paths
module_paths=$(./gradlew -q printModulePaths --no-configuration-cache) module_paths=$(./gradlew -q printModulePaths --no-configuration-cache)
# Ensure the output directory exists
mkdir -p docs/images/graphs/
# Function to check and create a README.md for modules which don't have one. # Function to check and create a README.md for modules which don't have one.
check_and_create_readme() { check_and_create_readme() {
local module_path="$1" local module_path="$1"

Loading…
Cancel
Save