Files
virtual-controller/plugin-reaper-realearn/regenerate-doc-diagrams.sh
T
Paul Lipscomb e58f06d9fa Vendor helgoboss/helgobox (ReaLearn) as basis for custom UI fork
Stripped upstream git history; starting point for replacing the native
SWELL/Win32 mapping UI with something more suited to bulk editing.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-15 17:38:29 -04:00

15 lines
470 B
Bash

#!/bin/sh
# This regenerates the D2 diagrams in the Antora documentations (requires d2 executable in path)
process_files() {
local DIR="$1"
for FILE in "$DIR"/*.d2; do
if [ -f "$FILE" ]; then
FILE_NAME=$(basename "$FILE")
echo "Processing $FILE_NAME"
FILE_NAME_NO_EXT="${FILE_NAME%.*}"
d2 --sketch "$FILE" "$DIR/target/$FILE_NAME_NO_EXT.svg"
fi
done
}
process_files "doc/realearn/modules/ROOT/images/realearn/diagrams/control-flow"