commit 9a788d5e9f31c541af8d580161f3033c6b4d41c1
Author: Hiltjo Posthuma <hiltjo_AT_codemadness.org>
Date: Sat Jan 13 12:36:08 2024 +0100
Revert "rocks: add blog-gen"
This reverts commit b234e805d75c0245f2bcaf1b19e0a2ecf1904190.
Remove from rocks for now.
Reason: code quality (at the moment).
Some feedback:
* Make sure to fclose() file descriptors/streams in main.c tag().
* Check for errors, for example when fopen() fails and write a clear error
message to the user (using perror() or strerror(errno) or whatever).
* Check for NULL pointers: to fix: strchr(text,'
')[0] = ' * Change this for opendir() too.
* Check for path truncations (snprintf()).
* Separate checking file stream for errors or EOF (ferror()) and feof()).
* Do not allocate everything on the stack (stack space is not infinite).
* In main() do not return -1 but return a code between 0 and 255.
* Use PATH_MAX (not 16384) or query filesystem limits.
With best intentions,
diff --git a/suckless.org/rocks/index.md b/suckless.org/rocks/index.md
index 3f6447cf..eaed7eba 100644
--- a/suckless.org/rocks/index.md
+++ b/suckless.org/rocks/index.md
_AT_@ -233,7 +233,6 @@ This covers most console-based programs and programs from
* [md4c](
https://github.com/mity/md4c) - markdown to html converter. Fast,
[CommonMark](
https://commonmark.org/) compliant, offers extensions which can
be switched on/off via cli args.
-* [blog-gen](
https://git.dravenmonti.dev/blog-gen/about/) - output HTML logs from a directory, supports tagging
### Utilities / miscellaneous
Received on Sat Jan 13 2024 - 12:49:27 CET