4 ms·
I use GNU make and obsidian. Write content in markdown, feed it to https://github.com/commonmark/cmark https://github.com/commonmark/cmark to create html. I int
by JonChesterfield 3y ago
I use GNU make and obsidian. Write content in markdown, feed it to https://github.com/commonmark/cmark https://github.com/commonmark/cmark to create html. I intended to splice files together using xslt but echo and cat written in the makefile sufficed.
Plumbing is a bit obfuscated, not sure I've written it down anywhere. I write/edit files in obsidian or emacs. The obsidian sync feature copies those to a pi5 which also runs obsidian. That stashes whatever is in the directory into a fossil repo as a backup / sync to other machines mechanism. Something runs make periodically to rebuild the site which gets copied back into obsidian and thus ends up back on whatever device I'm using to edit the files.
A simpler setup would involve committing markdown to a github repo and having a cron/make somewhere pull from that, rebuild the site, commit to the same or a different github repo.