I blogged earlier today about Saul Cozens and his ‘v0.1 alpha’ WordPress plugin for embedding gov.uk content via WordPress shortcode.
The great news is, Saul has uploaded it to a public repo at Github, meaning it’s now:
- dead easy for you to download, and keep up to date
- possible for you to fix, enhance and generally improve it
Saul has very foolishly kindly given me commit privileges on it, and I’ve done a bit of work on it this evening – a bit of error handling / prevention, adding basic parsing of gov.uk’s multi-page ‘guide’ content (including any videos!), and general housekeeping.
In other words, it’s now less likely to simply fail on your page. It’s likely to fail in more complicated ways instead. ๐
There’s one substantial catch: and this is an appeal for help.
The platform’s content is marked up, so it turns out, using an extension of the Markdown language, which they’re calling govspeak.
It adds a number of extra formatting options, to create things like information and warning ‘callout’ boxes. And whilst there are PHP based libraries for Markdown, which we can bolt on easily, there’s nothing instantly WordPress-friendly for this new govspeak.
Yet. If you know a bit of ruby, if you’ve got a bit of spare time, and if you want to help expand the reach of govuk’s content to charities, community groups, local government, etc etc… now’s your chance.
If you fancied one of those ยฃ73,000pa developer jobs, I bet it would look great on your application. ๐
Responses
Sorry, can’t help with that – but I wish someone would make PHP versions of most of their code. I’d love to get my hands on a PHP version of the need-a-tron.
Looks like there could be good news on the horizon. In a comment on this blog post, GDS’s James Stewart says the Markdown / Govspeak output was an oversight on their part. ‘Switching the API to return HTML is definitely high on the to do list,’ he assures us. Good.
Although James then warns: ‘no promises on timing.’