Add docs and layout auto-generation
This commit is contained in:
parent
996908b729
commit
07e03b03ef
10 changed files with 604 additions and 8 deletions
layout-lens/scripts
11
layout-lens/scripts/generate-layouts.sh
Normal file
11
layout-lens/scripts/generate-layouts.sh
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue