Weeknote: Feb 7th

Paul Kiddle

We're into February now and I'm still picking up the miscelateous tasks that 2024 Paul left for me. This week started with dependency upgrades for one of our API client libraries.

Since we've started using OpenAPI to document our APIs I'd like to try autogenerating an API client from the same configuration file, but that's a task for the future.

Elsewhere, we seem to have settled on Astro as the framework for the next iteration of the digiral guide frontend.

Finally, a note on the positive side effects of using semantic HTML. The bfi.org.uk RSS feed only contains the title and summary of each article, but some RSS readers like NetNewsWire offer to fetch the full page HTML so you can read it without leaving your feed reader. We use the following markup for our images:

<figure>
	<img src='...' alt='...'>
	<figcaption>
		April (2024)
		<small>BFI Distribution</small>
	</figcaption>
</figure>

When this HTML is loaded in a reader without any CSS, we get some lovely basic formatting that indicates the attribution text as distinct from the rest of the image caption. On the website you'd see Above prefixed to the caption, but this is added with CSS, so it doesn't come through in our reader - a good thing too, since some RSS readers could well decide to put the image below the caption.

Anyway, I thought that was neat.

Media