When working on this site, I’ve often wanted to include a screenshot or two.
But since git doesn’t work well with binary files and I don’t want to have to deal with media hosting I’ve tended to shy away from it.
However, a lot of what I want to take a screenshot of can be rendered in a terminal.
Which is suddenly quite interesting as a terminal’s contents can be entirely described in plain(-ish) text.
Surely it must be possible to capture the contents of a terminal window and then render it as some kind of image? Perhaps an SVG?
Yes it is!
In this blog post I describe how I arrived at the workflow I used to include the above screenshot on this website.
If you have spent any time following the Emacs community, you will have likely come across the denote.el project.
denote.el defines a clever file-naming scheme and provides an associated Emacs package containing utilities for managing files which follow this naming scheme.
In this blog post I outline how I have adopted denote.el to manage the content on this site and how I’ve extended Sphinx to take advantage this.