commit 68873493bbe7a42a0daada030b1b387f92428ace Author: danb Date: Tue Oct 22 01:16:54 2024 +0200 Initial commit diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..2d19fc7 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +*.html diff --git a/README.txt b/README.txt new file mode 100644 index 0000000..24a2573 --- /dev/null +++ b/README.txt @@ -0,0 +1,3 @@ +how-to generate: + +$ bin/mb diff --git a/bin/fpc-sitegen b/bin/fpc-sitegen new file mode 100755 index 0000000..389f510 Binary files /dev/null and b/bin/fpc-sitegen differ diff --git a/bin/mb b/bin/mb new file mode 100755 index 0000000..530e294 Binary files /dev/null and b/bin/mb differ diff --git a/build.mb b/build.mb new file mode 100644 index 0000000..57715df --- /dev/null +++ b/build.mb @@ -0,0 +1,41 @@ +sector config + section mariebuild + str build_type 'incremental' + + list str targets 'static' + str default 'static' + end +end + +sector targets + section static + list str c_rules 'sites' + end +end + +sector c_rules + section sites + list str input 'index' + str input_format 'data/$(%element%).sad' + str output_format '$(%element%).html' + + str exec '#!/usr/bin/env bash +set -e + +mkdir -p \$(dirname $(%output%)) + +bin/fpc-sitegen -a el -i $(%input%) -o $(%output%) + +COMMIT_SHORT=\$(git rev-parse --short HEAD) +BRANCH=\$(git rev-parse --abbrev-ref HEAD) +DATE=\$(date +%d.%m.%Y) +TIME=\$(date +%H:%M:%S) + +sed -i "" -e ''s/\\\$\\\$DATE\\\$\\\$/''"\$DATE/g" $(%output%) +sed -i "" -e ''s/\\\$\\\$TIME\\\$\\\$/''"\$TIME/g" $(%output%) +sed -i "" -e ''s@\\\$\\\$BRANCH\\\$\\\$@''"\$BRANCH@g" $(%output%) +sed -i "" -e ''s@\\\$\\\$SOURCE\\\$\\\$@$(%input%)@g'' $(%output%) +sed -i "" -e ''s/\\\$\\\$COMMIT\\\$\\\$/''"\$COMMIT_SHORT/g" $(%output%) +' + end +end diff --git a/data/.gitignore b/data/.gitignore new file mode 100644 index 0000000..2d19fc7 --- /dev/null +++ b/data/.gitignore @@ -0,0 +1 @@ +*.html diff --git a/data/index.sad b/data/index.sad new file mode 100644 index 0000000..ce2810c --- /dev/null +++ b/data/index.sad @@ -0,0 +1,52 @@ +{$start} +{$title} my 4k exegfx + +{$begin-section} Katalognummer_65709.jpg +Katalognummer_65709.jpg
+Deadline 2024 +{$end-section} + +{$begin-section} HEL +HEL
+Xenium 2024 +{$end-section} + +{$begin-section} Not_Your_Tomato_Soup,_Andy! +Not Your Tomato Soup, Andy!
+Evoke 2024 +{$end-section} + +{$begin-section} House_Blocks +▄█▄█▄▄
+Black Valley 2024 +{$end-section} + +{$begin-section} Goddess_of_the_Wired +ワイヤードの女神
+NOVA 2024 +{$end-section} + +{$begin-section} Have_a_seat_(and_make_us_a_demo) +Have a seat (and make us a demo)
+Outline 2024 +{$end-section} + +{$begin-section} Chromatic_North +Chromatic North
+Revision 2024 +{$end-section} + +{$begin-section} Hey_TRSAC! +Hey TRSAC!
+TRSAC 2023 +{$end-section} + +{$begin-section} Wan_Shi_Tongs_visitor_files +Wan Shi Tong's visitor files
+Deadline 2023 +{$end-section} + +{$begin-section} Baellebad +Bällebad
+Revision 2022 +{$end-section} diff --git a/data/template.sgt b/data/template.sgt new file mode 100644 index 0000000..780ff86 --- /dev/null +++ b/data/template.sgt @@ -0,0 +1,163 @@ +# fpc-sitegen example template +# labels (e.g. head-format) can be taken as plain-text when prefixed with a back-slash + +title-format: +$$CONTENT$$ +head-format: +$$CONTENT$$ +sub-head-format: +$$CONTENT$$ +text-format: +$$CONTENT$$ +section-format: +
+
+ +
+
+ $$CONTENT$$ +
+
+root-section-format: +
+ $$CONTENT$$ +
+output-format: + + + + $$DOCUMENT_TITLE$$ + + + + +
+ + + + my 4k exegfx + + + +
+ + $$CONTENT$$ + + + + diff --git a/img/Baellebad.png b/img/Baellebad.png new file mode 100644 index 0000000..4be9abe Binary files /dev/null and b/img/Baellebad.png differ diff --git a/img/Chromatic_North.png b/img/Chromatic_North.png new file mode 100644 index 0000000..c0e90bc Binary files /dev/null and b/img/Chromatic_North.png differ diff --git a/img/Goddess_of_the_Wired.png b/img/Goddess_of_the_Wired.png new file mode 100644 index 0000000..5e53eee Binary files /dev/null and b/img/Goddess_of_the_Wired.png differ diff --git a/img/HEL.png b/img/HEL.png new file mode 100644 index 0000000..c7764ad Binary files /dev/null and b/img/HEL.png differ diff --git a/img/Have_a_seat_(and_make_us_a_demo).png b/img/Have_a_seat_(and_make_us_a_demo).png new file mode 100644 index 0000000..c5e920c Binary files /dev/null and b/img/Have_a_seat_(and_make_us_a_demo).png differ diff --git a/img/Hey_TRSAC!.png b/img/Hey_TRSAC!.png new file mode 100644 index 0000000..e466e2c Binary files /dev/null and b/img/Hey_TRSAC!.png differ diff --git a/img/House_Blocks.png b/img/House_Blocks.png new file mode 100644 index 0000000..e89e287 Binary files /dev/null and b/img/House_Blocks.png differ diff --git a/img/Katalognummer_65709.jpg.png b/img/Katalognummer_65709.jpg.png new file mode 100644 index 0000000..0fb258b Binary files /dev/null and b/img/Katalognummer_65709.jpg.png differ diff --git a/img/Not_Your_Tomato_Soup,_Andy!.png b/img/Not_Your_Tomato_Soup,_Andy!.png new file mode 100644 index 0000000..1669e30 Binary files /dev/null and b/img/Not_Your_Tomato_Soup,_Andy!.png differ diff --git a/img/Wan_Shi_Tongs_visitor_files.png b/img/Wan_Shi_Tongs_visitor_files.png new file mode 100644 index 0000000..60e94fb Binary files /dev/null and b/img/Wan_Shi_Tongs_visitor_files.png differ diff --git a/pics/background.png b/pics/background.png new file mode 100644 index 0000000..cbdcd0e Binary files /dev/null and b/pics/background.png differ diff --git a/pics/cat-spinning.gif b/pics/cat-spinning.gif new file mode 100644 index 0000000..9455cbc Binary files /dev/null and b/pics/cat-spinning.gif differ diff --git a/pics/peachcat.gif b/pics/peachcat.gif new file mode 100644 index 0000000..e1f3d77 Binary files /dev/null and b/pics/peachcat.gif differ diff --git a/pics/spiral.gif b/pics/spiral.gif new file mode 100644 index 0000000..7bdfb4b Binary files /dev/null and b/pics/spiral.gif differ