3 ms·
I use make to pre-compile markdown into HTML for a static website.
by yabadabadoo 9y ago
I use make to pre-compile markdown into HTML for a static website.
- stephenr 9y agoI'm doing something similar. I'm building a static(ish) site generator, that features a built-in "configure" command to generate a makefile, so that only changed files and their dependents need to be rebuilt. That's also part of why it's called a 'static-ish' site generator - it can render stuff into pure static html, but it can also use things like SSI or ESI to embed common things, so e.g. a nav bar/footer could be injected using SSI or ESI, and then when that changes, not every page needs to be re-built. Edit: s/script/command/
- JdeBP 9y agoI use redo to build the menus for a GOPHER site. It's the same principle. Make changes; run redo; menus get updated automatically. I also use it to rebuild the indexes for package repositories after making changes. See gopher://jdebp.info/1/Repository/freebsd/ under "how this site is built" and gopher://jdebp.info/1/Repository/debian/dists/ . See also gopher://jdebp.info/h/Softwares/djbwares/guide/gopherd.html .