From 827395d4c57a7d03173a186b24220f6033e08e66 Mon Sep 17 00:00:00 2001 From: Revar Desmera Date: Wed, 24 Apr 2019 03:32:38 -0700 Subject: [PATCH] Improved docs gen scripts. --- scripts/docs_gen.py | 2 +- scripts/make_all_docs.sh | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/scripts/docs_gen.py b/scripts/docs_gen.py index 25c68c43..26aa307c 100755 --- a/scripts/docs_gen.py +++ b/scripts/docs_gen.py @@ -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 diff --git a/scripts/make_all_docs.sh b/scripts/make_all_docs.sh index f4d1e3ae..8563cddd 100755 --- a/scripts/make_all_docs.sh +++ b/scripts/make_all_docs.sh @@ -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/