Script to create index.MD for open

for dir in $(find . -type d -not -path “./.*”); do
file=”$dir/index.md”
if [ ! -f “$file” ]; then
name=$(basename “$dir”)
cat < “$file”
# $name

Welcome to the **$name** module of OpenClaw.

## Navigation
– [Home](/)
– [Up One Level](../)

## Contents
This section will expand as this module grows.
EOF
fi
done

Leave a comment