1
Fork 0

Add docs and layout auto-generation

This commit is contained in:
Matei Adriel 2023-10-22 16:39:55 +02:00
commit 07e03b03ef
No known key found for this signature in database
10 changed files with 604 additions and 8 deletions
layout-lens/scripts

View file

@ -0,0 +1,11 @@
shopt -s globstar # Enable the globstar option to use **
for config in **/lens.json; do
# Check if the path is a regular file
if [ -f "$config" ]; then
# Replace the .txt extension with a new extension (e.g., .newext)
out="${config%.json}.svg"
# Generate preview
layout-lens "$config" "$out"
fi
done