diff --git a/math.scad b/math.scad index 784bb59..842157f 100644 --- a/math.scad +++ b/math.scad @@ -137,7 +137,7 @@ function modrange(x, y, m, step=1) = function sqr(x) = x*x; -// Function: rand_int(min,max,N,seed) +// Function: rand_int() // Usage: // rand_int(min,max,N,[seed]); // Description: diff --git a/scripts/genindex.sh b/scripts/genindex.sh index 1ae94b5..e124990 100755 --- a/scripts/genindex.sh +++ b/scripts/genindex.sh @@ -14,7 +14,7 @@ function lcase function mkindex { TMPFILE=$(mktemp -t $(basename $0)) || exit 1 - sed 's/[^a-zA-Z0-9_.:$]//g' | awk -F ':' '{printf "- [%s](%s#%s)\n", $3, $1, $3}' | sort -d -f -u >> $TMPFILE + sed 's/([^)]*)//g' | sed 's/[^a-zA-Z0-9_.:$]//g' | awk -F ':' '{printf "- [%s](%s#%s)\n", $3, $1, $3}' | sort -d -f -u >> $TMPFILE alpha="A B C D E F G H I J K L M N O P Q R S T U V W X Y Z" for a in $alpha; do echo -n "[$a](#$(lcase "$a")) " @@ -34,7 +34,7 @@ function mkindex ( - echo "# Belfry OpenScad Library Index" + echo "## Belfry OpenScad Library Index" ( grep 'Constant: ' *.scad grep 'Function: ' *.scad