mirror of
https://github.com/revarbat/BOSL2.git
synced 2025-09-26 00:29:18 +02:00
Massive reworking of documentation production.
This commit is contained in:
22
scripts/make_all_docs.sh
Executable file
22
scripts/make_all_docs.sh
Executable file
@@ -0,0 +1,22 @@
|
||||
#!/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" = "BOSL" ]; then
|
||||
cd BOSL.wiki
|
||||
elif [ "$dir" != "BOSL.wiki" ]; then
|
||||
echo "Must run this script from the BOSL or BOSL/BOSL.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
|
||||
|
||||
|
Reference in New Issue
Block a user