From 3e3845103320edfe91bb953d85ca8bad0c545167 Mon Sep 17 00:00:00 2001 From: Revar Desmera Date: Sun, 12 May 2019 03:46:14 -0700 Subject: [PATCH] Docs gen fixes. --- scripts/docs_gen.py | 3 ++- scripts/make_all_docs.sh | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/docs_gen.py b/scripts/docs_gen.py index 3c178db..292b4b9 100755 --- a/scripts/docs_gen.py +++ b/scripts/docs_gen.py @@ -415,7 +415,8 @@ class LeafNode(object): out.append(" " + line) out.append("") san_name = re.sub(r"[^A-Za-z0-9_]", "", self.name) - imgfile = "{0}{1}.{2}".format( + imgfile = "{}{}{}.{}".format( + "f_" if self.leaftype == "Function" else "", san_name, ("_%d" % exnum) if exnum > 1 else "", "gif" if "Spin" in extype else "png" diff --git a/scripts/make_all_docs.sh b/scripts/make_all_docs.sh index 1b2bded..7546fef 100755 --- a/scripts/make_all_docs.sh +++ b/scripts/make_all_docs.sh @@ -3,7 +3,7 @@ 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 walls metric_screws threading involute_gears sliders joiners linear_bearings nema_steppers wiring phillips_drive torx_drive polyhedra debug" + PREVIEW_LIBS="compat attachments math arrays vectors matrices coords geometry triangulation quaternions hull constants transforms primitives shapes masks shapes2d paths beziers walls metric_screws threading involute_gears sliders joiners linear_bearings nema_steppers wiring phillips_drive torx_drive polyhedra debug" fi dir="$(basename $PWD)"