From e7499f6a91c2df453f984c59fe9e3cd4ce56c488 Mon Sep 17 00:00:00 2001 From: Marie Date: Tue, 10 Sep 2024 00:00:27 +0200 Subject: [PATCH] start on some project pages --- build.mb | 5 ++++- data/index.sad | 14 +++++++------- data/projects/fpc-sitegen.sad | 20 ++++++++++++++++++++ data/projects/sad.sad | 30 ++++++++++++++++++++++++++++++ data/template.sgt | 4 ++-- 5 files changed, 63 insertions(+), 10 deletions(-) create mode 100644 data/projects/fpc-sitegen.sad create mode 100644 data/projects/sad.sad diff --git a/build.mb b/build.mb index 0c872ee..37eb4eb 100644 --- a/build.mb +++ b/build.mb @@ -15,11 +15,14 @@ end sector c_rules section sites - list str input 'index' + list str input 'index', 'projects/fpc-sitegen', 'projects/sad' 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 -i $(%input%) -o $(%output%) diff --git a/data/index.sad b/data/index.sad index d86be8a..619d878 100644 --- a/data/index.sad +++ b/data/index.sad @@ -25,23 +25,23 @@ template this also looks like shit :) {$begin-section} c {$sub-head} c -* mariebuild[github]
+* mariebuild[github]
  A customary buildsystem written in C.
-* mcfg_2[github]
+* mcfg_2[github]
  Library to parse the Marie-Configuration/2 file format.
-* mawim[github]
+* mawim[github]
  Simple and not fully functional X11 Window Manager.
-* libfwbt[github]
+* libfwbt[github]
  A Library to parse Fixed-Width-Binary-Tables.
{$end-section} {$begin-section} freepascal {$sub-head} freepascal -* fpc-sitegen[github]
+* fpc-sitegen[github]
  A simple static-site-generator.
-* sad[github]
+* sad[github]
  The Simple-Ansi-Document file format suite.
-* pasfetch[github]
+* pasfetch [github]
  My system information fetcher.
{$end-section} {$end-section} diff --git a/data/projects/fpc-sitegen.sad b/data/projects/fpc-sitegen.sad new file mode 100644 index 0000000..963f8eb --- /dev/null +++ b/data/projects/fpc-sitegen.sad @@ -0,0 +1,20 @@ +{$start} +{$title} fpc-sitegen + +{$begin-section} about +{$head} about fpc-sitegen + +fpc-sitegen is a simple tool I use to convert SAD +files to, in this case, static HTML pages. + +It comes with a very simple format for creating templates, for an example see here.
+ +fpc-sitegen is, as the name suggest, written in 100% freepascal. It is licensed +under the BSD 3-Clause license. + +{$begin-section} links +{$sub-head} links +* Source Code on GitHub +{$end-section} +{$end-section} diff --git a/data/projects/sad.sad b/data/projects/sad.sad new file mode 100644 index 0000000..5417d00 --- /dev/null +++ b/data/projects/sad.sad @@ -0,0 +1,30 @@ +{$start} +{$title} sad + +{$begin-section} about +{$head} about sad (simple ansi documents) +sad is a custom document file format I initially inteded for note-taking and +terminal based documents, but I also began using it for school work and now for +my website. + +

+ +It is a very simple document format bringing support for only this small feature set:
+* Sectioning
+* Styling / Coloring
+ +

+ +Due to personal preferences, all the sad specific things in documents are +controlled using "switches" similar to freepascal compiler switches. + +

+ +The sadsuite is implemented in 100% freepascal. It is licensed under the BSD 3-Clause license. + +{$begin-section} links +{$sub-head} links +* The sadsuite on GitHub
+* The sadsuite in the AUR
+{$end-section} +{$end-section} diff --git a/data/template.sgt b/data/template.sgt index 4ef2c66..b0e0984 100644 --- a/data/template.sgt +++ b/data/template.sgt @@ -18,8 +18,8 @@ output-format: $$DOCUMENT_TITLE$$ - - + +