Skip to content

Commit 45d9244

Browse files
committed
Improved make_all_docs script to allow specifying file to work on.
1 parent 0ec7303 commit 45d9244

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

scripts/make_all_docs.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
#!/bin/bash
22

3-
PREVIEW_LIBS="constants compat transforms shapes masks paths beziers math metric_screws threading involute_gears sliders joiners linear_bearings nema_steppers wiring triangulation quaternions phillips_drive torx_drive debug"
3+
if [[ $# > 0 ]]; then
4+
PREVIEW_LIBS="$@"
5+
else
6+
PREVIEW_LIBS="constants compat transforms shapes masks paths beziers math metric_screws threading involute_gears sliders joiners linear_bearings nema_steppers wiring triangulation quaternions phillips_drive torx_drive debug"
7+
fi
48

59
dir="$(basename $PWD)"
610
if [ "$dir" = "BOSL" ]; then
@@ -12,6 +16,7 @@ fi
1216

1317
rm -f tmpscad*.scad
1418
for lib in $PREVIEW_LIBS; do
19+
lib="$(basename $lib .scad)"
1520
mkdir -p images/$lib
1621
rm -f images/$lib/*.png images/$lib/*.gif
1722
echo ../scripts/docs_gen.py ../$lib.scad -o $lib.scad.md -c -i -I images/$lib/

0 commit comments

Comments
 (0)