Skip to content

Puffbox

Simon Dickson's gov-tech blog, active 2005-14. Because permalinks.

2014 | 2013 | 2012 | 2011 | 2010 | 2009 | 2008 | 2007 | 2006 | 2005

Code For The People company e-government news politics technology Uncategorised

api award barackobama barcampukgovweb bbc bis blogging blogs bonanza borisjohnson branding broaderbenefits buddypress budget cabinetoffice careandsupport chrischant civilservice coi commentariat commons conservatives consultation coveritlive crimemapping dailymail datasharing datastandards davidcameron defra democracy dfid directgov dius downingstreet drupal engagement facebook flickr foi foreignoffice francismaude freedata gds google gordonbrown governanceofbritain govuk guardian guidofawkes health hosting innovation internetexplorer labourparty libdems liveblog lynnefeatherstone maps marthalanefox mashup microsoft MPs mysociety nhs onepolitics opensource ordnancesurvey ournhs parliament petitions politics powerofinformation pressoffice puffbox rationalisation reshuffle rss simonwheatley skunkworks skynews statistics stephenhale stephgray telegraph toldyouso tomloosemore tomwatson transparency transport treasury twitter typepad video walesoffice wordcamp wordcampuk wordpress wordupwhitehall youtube

Privacy Policy

  • X
  • Link
  • LinkedIn
  • 7 Feb 2012
    e-government, technology
    api, gds, govuk, saulcozens

    Saul's gov.uk plugin now on Github; anyone know Ruby?

    Saul's plugin: 24 hours later

    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

    1. Stephen Cronin
      8 Feb 2012

      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.

    2. Simon
      12 Feb 2012

      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.

    3. Simon
      12 Feb 2012

      Although James then warns: ‘no promises on timing.’

Proudly Powered by WordPress