decadv_2024_03

2024-12-03

Previous: [decadv_2024_02]

It is technically the fourth as i'm writing this...

So, during the night of the 3rd, i ended up making a funky choice.. considering that I was already using a rust-based tool that had a native rust interface for converting markdown to HTML, the new path of least resistance ends up being.. Rust.

Last time I tried it, it didn't end up going as well as I would have hoped, but i felt eager to give Rust another shot.

And i did, I can only assume that it was age that gave me this new impression, before I felt hindered by the borrow checker, but now i felt like I was developing this SSG as if i were on rails. Few languages manage to do away with the frustration of doing something wrong and not knowing what went wrong. Heck, the worst languages don't even tell you that you have done something wrong in the first place.

Anyways, After about 24 hours since the inception of the idea, i now have most of the static site generator implemented. Takes in markdown, as one would expect, renders out an HTML document, and renders out a navigation tree.

I/O is CLI argument based. I.e. i give it an input dir, an output dir, and a path to an HTML template file and it does the rest. Rust had a surprisingly robust library for this.

All I need to do on the writing end is just type out # publish (space added)

That being said, I still have a few things left to do, namely: