mirror of
https://github.com/BelfrySCAD/BOSL2.git
synced 2024-12-29 16:29:40 +00:00
22 lines
773 B
Bash
Executable file
22 lines
773 B
Bash
Executable file
#!/bin/bash
|
|
|
|
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"
|
|
|
|
dir="$(basename $PWD)"
|
|
if [ "$dir" = "BOSL2" ]; then
|
|
cd BOSL2.wiki
|
|
elif [ "$dir" != "BOSL2.wiki" ]; then
|
|
echo "Must run this script from the BOSL2 or BOSL2/BOSL2.wiki directories."
|
|
exit 1
|
|
fi
|
|
|
|
rm -f tmpscad*.scad
|
|
for lib in $PREVIEW_LIBS; do
|
|
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/
|
|
../scripts/docs_gen.py ../$lib.scad -o $lib.scad.md -c -i -I images/$lib/ || exit 1
|
|
open -a Typora $lib.scad.md
|
|
done
|
|
|
|
|