Git Product home page Git Product logo

govuk-content-best-practices's Introduction

GOV.UK Content Best Practices

This repository hosts snapshots of gov.uk pages acting as examples of pages using content best practices.

Adding new pages manually

  • Navigate to the /snapshots dir and create a new file, here's how
  • The new file name should be <words-separated-with-hyphens>.html eg example-content.html
  • Paste the contents of the template file there.
  • Open the original page that you want to take a snapshot of and copy either <div id='whitehall-wrapper'> or <div id='whitehall-wrapper'> tag with its contents. You can do it by finding those elements via developer tools.
  • Replace <div id="placeholder">REPLACE THIS WHOLE DIV WITH PASTED CONTENT</div> with everything you've copied in the step above.
  • Open a pull request with the new file explaining the changes
  • Someone will review the changes and merge them to the gh-pages branch, which will make the new page available at http://alphagov.github.io/govuk-content-best-practices/snapshots/{your-file-name}.html

Adding new pages automatically

  • Update the list of links in exec/crawl.rb
  • run ruby exec/crawl.rb

Alternatively you can use the Crawler class in ruby:

Crawler.new(["https://gov.uk/something"], persist_to: '/tmp').run

govuk-content-best-practices's People

Contributors

benjanecke avatar bradwright avatar brenetic avatar erikse avatar erkde avatar keithiopia avatar paulastephenson avatar reverend-al avatar rosiecowling avatar tadast avatar thomasjhughes avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

govuk-content-best-practices's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.