💾 Archived View for cipay.ca › log › schini.gmi captured on 2023-07-22 at 16:20:50. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2023-04-26)

-=-=-=-=-=-=-

generating my gemini indexes with scheme

so i've been writing some scheme in the past few days. i used to generate my gemini indexes using a bash script, but i don't like being a bash person. i wanna be a scheme person! you know how it be.

i hacked away a little on "schemini", but renamed it to "schini" (pronounced "skinny" but "shiny" is also pretty cute so i'll accept it)

usage

using schini.scm in the root of your gemini capsule. you edit the first few variables of the file to suit your needs, then run it with

gauche schini.scm

it runs and completes the generation process.

keep in mind that the *main* index is not generated. it only generates indexes for subsections.

bugs

so schini is pretty strict for now. it enforces the "YYYY-MM-DD" date format, where the month and day *must* be 2 chars each. this is because i take them using a range (0 to 4 for year, 4 to 6 for month, etc). i'll fix it later (ish).

i won't be allowing other date formats though, since YYYY-MM-DD is sortable when you convert it into a long integer (YYYYMMDD), making it easy to sort my posts out programmatically.

oh, and the date must be at the last line of the file for it to work right (yes i know it's tedious lol)

links

schini.scm

schini.tar.gz (comes with example)

2023-04-26