From dfbf1293cb1a7c2a60c8655a6d39a60650c1ede9 Mon Sep 17 00:00:00 2001 From: Oliver Date: Tue, 10 Aug 2021 20:32:49 +1000 Subject: [PATCH] Simpler gallery - use splide.js - iterate though a directory automatically --- __pycache__/main.cpython-38.pyc | Bin 0 -> 912 bytes _includes/app_carousel.html | 61 ------------------ _includes/carousel.html | 27 ++++++++ _includes/carousel_end.html | 14 ---- _includes/carousel_start.html | 14 ---- _includes/index_carousel.html | 49 -------------- .../{carousel_img.html => splide_image.html} | 6 +- docs/app/app.md | 4 +- .../screenshots => appgallery}/screen_1.jpg | Bin .../screenshots => appgallery}/screen_10.jpg | Bin .../screenshots => appgallery}/screen_11.jpg | Bin .../screenshots => appgallery}/screen_12.jpg | Bin .../screenshots => appgallery}/screen_13.jpg | Bin .../screenshots => appgallery}/screen_14.jpg | Bin .../screenshots => appgallery}/screen_2.jpg | Bin .../screenshots => appgallery}/screen_3.jpg | Bin .../screenshots => appgallery}/screen_4.jpg | Bin .../screenshots => appgallery}/screen_5.jpg | Bin .../screenshots => appgallery}/screen_6.jpg | Bin .../screenshots => appgallery}/screen_7.jpg | Bin .../screenshots => appgallery}/screen_8.jpg | Bin .../screenshots => appgallery}/screen_9.jpg | Bin .../{index => indexgallery}/bom_add_item.png | Bin .../{index => indexgallery}/build_details.png | Bin .../{index => indexgallery}/build_outputs.png | Bin .../category_params.png | Bin .../category_subcats.png | Bin .../{index => indexgallery}/part_admin.png | Bin .../{index => indexgallery}/part_category.png | Bin .../{index => indexgallery}/part_stock.png | Bin .../part_suppliers.png | Bin .../{index => indexgallery}/stock_item.png | Bin .../stock_location.png | Bin .../stock_location_2.png | Bin .../{index => indexgallery}/suppliers.png | Bin docs/index.md | 4 +- main.py | 28 ++++++++ mkdocs.yml | 4 +- 38 files changed, 67 insertions(+), 144 deletions(-) create mode 100644 __pycache__/main.cpython-38.pyc delete mode 100644 _includes/app_carousel.html create mode 100644 _includes/carousel.html delete mode 100644 _includes/carousel_end.html delete mode 100644 _includes/carousel_start.html delete mode 100644 _includes/index_carousel.html rename _includes/{carousel_img.html => splide_image.html} (50%) rename docs/assets/images/{app/screenshots => appgallery}/screen_1.jpg (100%) rename docs/assets/images/{app/screenshots => appgallery}/screen_10.jpg (100%) rename docs/assets/images/{app/screenshots => appgallery}/screen_11.jpg (100%) rename docs/assets/images/{app/screenshots => appgallery}/screen_12.jpg (100%) rename docs/assets/images/{app/screenshots => appgallery}/screen_13.jpg (100%) rename docs/assets/images/{app/screenshots => appgallery}/screen_14.jpg (100%) rename docs/assets/images/{app/screenshots => appgallery}/screen_2.jpg (100%) rename docs/assets/images/{app/screenshots => appgallery}/screen_3.jpg (100%) rename docs/assets/images/{app/screenshots => appgallery}/screen_4.jpg (100%) rename docs/assets/images/{app/screenshots => appgallery}/screen_5.jpg (100%) rename docs/assets/images/{app/screenshots => appgallery}/screen_6.jpg (100%) rename docs/assets/images/{app/screenshots => appgallery}/screen_7.jpg (100%) rename docs/assets/images/{app/screenshots => appgallery}/screen_8.jpg (100%) rename docs/assets/images/{app/screenshots => appgallery}/screen_9.jpg (100%) rename docs/assets/images/{index => indexgallery}/bom_add_item.png (100%) rename docs/assets/images/{index => indexgallery}/build_details.png (100%) rename docs/assets/images/{index => indexgallery}/build_outputs.png (100%) rename docs/assets/images/{index => indexgallery}/category_params.png (100%) rename docs/assets/images/{index => indexgallery}/category_subcats.png (100%) rename docs/assets/images/{index => indexgallery}/part_admin.png (100%) rename docs/assets/images/{index => indexgallery}/part_category.png (100%) rename docs/assets/images/{index => indexgallery}/part_stock.png (100%) rename docs/assets/images/{index => indexgallery}/part_suppliers.png (100%) rename docs/assets/images/{index => indexgallery}/stock_item.png (100%) rename docs/assets/images/{index => indexgallery}/stock_location.png (100%) rename docs/assets/images/{index => indexgallery}/stock_location_2.png (100%) rename docs/assets/images/{index => indexgallery}/suppliers.png (100%) create mode 100644 main.py diff --git a/__pycache__/main.cpython-38.pyc b/__pycache__/main.cpython-38.pyc new file mode 100644 index 0000000000000000000000000000000000000000..00b6e4b4fba7fa4f15cce274ec1c5ae5827ec03d GIT binary patch literal 912 zcmaJ=v2NQi5Is_qEE`FNG;om)g;ozWiVhu$APA6*MTQz(j0A>i(lQN+Qb^fJ40(!y zrepuW9`j3FJM|Yj6g?_NoGd-yj^gR=-Mt6t>+Ws~(8At+oKb*Z?(*C)2Pfzz!oY!( z6#DL@DamM`65t+ZOXz!?^q}Ma#ws}P5ZmBVt2h%w;xZd^U>^D@y4lB2!2}^WUBVq% z5Dp08oxf=Dv8sXo%C$@|lrSMHT6$}2sGnIy90d0&So;f_zydeoenJH93RJ z?hhz~?=T`f;EiQiu`?WbNA$&Q5>bxlu{*8 zK8oTrjbdX&8I5ErOe9rQjzv`Hd?vZzk(qu&6`mk02Wf}# z=kWB?g;X=4N-e}Yx5q^mOVurIZR^NU8s=GXe2ArnVF-Z2`~w#wsl-62S@$T-hjD6- zyEXlK@ojDk&v$d`5Isx9z0R{+m=mBLOCG;=z_h_56>HO{g zxuAr877ulf`gzD#zeb$LVNSlyuq}pLsul_;Bl->AI!y22VVgy6 +
+
    + {% for img in listimages(directory) %} + {% with src=img %} + {% include "splide_image.html" %} + {% endwith %} + {% endfor %} +
+
+ + + \ No newline at end of file diff --git a/_includes/carousel_end.html b/_includes/carousel_end.html deleted file mode 100644 index c0319df..0000000 --- a/_includes/carousel_end.html +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - - Previous - - - - Next - - - \ No newline at end of file diff --git a/_includes/carousel_start.html b/_includes/carousel_start.html deleted file mode 100644 index a1368d2..0000000 --- a/_includes/carousel_start.html +++ /dev/null @@ -1,14 +0,0 @@ -