Improved docs gen scripts.

This commit is contained in:
Revar Desmera 2019-04-24 03:32:38 -07:00
parent b1408da342
commit 827395d4c5
2 changed files with 7 additions and 2 deletions

View file

@ -116,7 +116,7 @@ class ImageProcessing(object):
imgsizes = ["800,600", "400x300"]
elif "Big" in extype:
imgsizes = ["1280,960", "640x480"]
elif "distribute" in script:
elif "distribute" in script or "show_anchors" in script:
print(script)
imgsizes = ["800,600", "400x300"]
else: # Small

View file

@ -1,6 +1,10 @@
#!/bin/bash
PREVIEW_LIBS="compat attachments math arrays vectors matrices coords geometry triangulation quaternions convex_hull constants transforms primitives shapes masks paths beziers metric_screws threading involute_gears sliders joiners linear_bearings nema_steppers wiring phillips_drive torx_drive debug"
if [[ $# > 0 ]]; then
PREVIEW_LIBS="$@"
else
PREVIEW_LIBS="compat attachments math arrays vectors matrices coords geometry triangulation quaternions hull constants transforms primitives shapes masks paths beziers metric_screws threading involute_gears sliders joiners linear_bearings nema_steppers wiring phillips_drive torx_drive debug"
fi
dir="$(basename $PWD)"
if [ "$dir" = "BOSL2" ]; then
@ -12,6 +16,7 @@ fi
rm -f tmpscad*.scad
for lib in $PREVIEW_LIBS; do
lib="$(basename $lib .scad)"
mkdir -p images/$lib
rm -f images/$lib/*.png images/$lib/*.gif
echo ../scripts/docs_gen.py ../$lib.scad -o $lib.scad.md -c -i -I images/$lib/