From 585a2145ae2f2708f390e46da20ba480cd12ab01 Mon Sep 17 00:00:00 2001 From: David Himmelstrup Date: Fri, 29 Nov 2019 10:31:12 +0800 Subject: [PATCH] Fix gallery code and add default_cube. Former-commit-id: 9e064988a9483772cbd2cc02b3d1415ea37b0c2b --- docs/gallery.md | 38 ++++---------------------------------- docs/gen_gallery.sh | 8 ++++---- 2 files changed, 8 insertions(+), 38 deletions(-) diff --git a/docs/gallery.md b/docs/gallery.md index a0bb35d..dc5fc70 100644 --- a/docs/gallery.md +++ b/docs/gallery.md @@ -136,47 +136,17 @@ This file is auto-generated by docs/render_all.sh. DO NOT EDIT.


-## sunflower +## blender_default_cube
- View sunflower.hs + View blender_default_cube.hs

-  {!examples/sunflower.hs!}
+  {!examples/blender_default_cube.hs!}
   

- -


- -## tangent_and_normal - -
- View tangent_and_normal.hs -

-  {!examples/tangent_and_normal.hs!}
-  
-
-
- - -


- -## vector_field - -
- View vector_field.hs -

-  {!examples/vector_field.hs!}
-  
-
-
-


diff --git a/docs/gen_gallery.sh b/docs/gen_gallery.sh index 4b8a93c..4472595 100755 --- a/docs/gen_gallery.sh +++ b/docs/gen_gallery.sh @@ -2,7 +2,7 @@ ROOT=`stack path --project-root` EXAMPLES='boundingbox colormaps goo latex_basic latex_color latex_draw - latex_wheel raster sphere sunflower tangent_and_normal vector_field' + latex_wheel raster sphere blender_default_cube' WIDTH=640 HEIGHT=$((WIDTH*9/16)) @@ -10,7 +10,7 @@ FPS=30 SRC_DIR=$ROOT/examples DST_DIR=$ROOT/docs/rendered -OPTS='--fps $FPS --width $WIDTH --height $HEIGHT' +OPTS="--fps $FPS --width $WIDTH --height $HEIGHT" cat << EOF > $ROOT/docs/gallery.md # Gallery @@ -37,8 +37,8 @@ for e in $EXAMPLES; do EOF - SRC_FILE=./$SRC_DIR/$e.hs - DST_FILE=./$DST_DIR/$e.mp4 + SRC_FILE=$SRC_DIR/$e.hs + DST_FILE=$DST_DIR/$e.mp4 if [[ "$SRC_FILE" -nt "$DST_FILE" ]]; then stack $SRC_FILE render --compile -o $DST_FILE $OPTS fi