mirror of
https://github.com/revarbat/BOSL2.git
synced 2025-08-06 17:26:46 +02:00
Improved docs gen scripts.
This commit is contained in:
@@ -116,7 +116,7 @@ class ImageProcessing(object):
|
|||||||
imgsizes = ["800,600", "400x300"]
|
imgsizes = ["800,600", "400x300"]
|
||||||
elif "Big" in extype:
|
elif "Big" in extype:
|
||||||
imgsizes = ["1280,960", "640x480"]
|
imgsizes = ["1280,960", "640x480"]
|
||||||
elif "distribute" in script:
|
elif "distribute" in script or "show_anchors" in script:
|
||||||
print(script)
|
print(script)
|
||||||
imgsizes = ["800,600", "400x300"]
|
imgsizes = ["800,600", "400x300"]
|
||||||
else: # Small
|
else: # Small
|
||||||
|
@@ -1,6 +1,10 @@
|
|||||||
#!/bin/bash
|
#!/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)"
|
dir="$(basename $PWD)"
|
||||||
if [ "$dir" = "BOSL2" ]; then
|
if [ "$dir" = "BOSL2" ]; then
|
||||||
@@ -12,6 +16,7 @@ fi
|
|||||||
|
|
||||||
rm -f tmpscad*.scad
|
rm -f tmpscad*.scad
|
||||||
for lib in $PREVIEW_LIBS; do
|
for lib in $PREVIEW_LIBS; do
|
||||||
|
lib="$(basename $lib .scad)"
|
||||||
mkdir -p images/$lib
|
mkdir -p images/$lib
|
||||||
rm -f images/$lib/*.png images/$lib/*.gif
|
rm -f images/$lib/*.png images/$lib/*.gif
|
||||||
echo ../scripts/docs_gen.py ../$lib.scad -o $lib.scad.md -c -i -I images/$lib/
|
echo ../scripts/docs_gen.py ../$lib.scad -o $lib.scad.md -c -i -I images/$lib/
|
||||||
|
Reference in New Issue
Block a user