This repository hosts snapshots of gov.uk pages acting as examples of pages using content best practices.
- Navigate to the /snapshots dir and create a new file, here's how
- The new file name should be
<words-separated-with-hyphens>.html
egexample-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
- 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