A place for services within screening to document their design decisions and research learnings.
- Clone the repo to a folder on your computer
- In your terminal,
cd
to the folder - Run
npm install
to install pre-requisites - Run
npm run start
to build the design history site and serve it - View the site locally at
localhost:8080
For new services in screening, follow this guide to get yourself added.
You have two choices for adding a post:
- Draft your design history post - it's often easiest to do this in Sharepoint
- Create a new markdown file in
app/posts/[service-name]/YYYY/MM/[post-name].md
-
- It's often easier to duplicate an existing post as that will have the headers you need
- Edit the post with your content - make sure it has a title, subtitle, and date
- If you have images, add them to a folder in
app/images/[service-name]/YYYY/MM/[post-name]/
- Make a PR with your changes and get it reviewed
View more details on the scripts here.
- Use a PNG optimiser like TinyPNG to reduce the file size of your images.
- Create a folder for your images and put them in
app/images/[service-name]/YYYY/MM/[post-name]/
- From the terminal, run
node scripts/generate.js [path]
wherepath
is the full path to the folder of images. The easiest way to do this is to typenode scripts/generate.js
and then drag the folder from Finder on to your terminal to fill in the path. - The script will generate a new post linking to each image and place it in
app/posts/[service-name]/YYYY/MM/[post-name].md
. - You should check the title text for each image and amend as needed.
- The script will prepend the post filename with the current date but you can delete this if you like.
Once you have a post you want to publish, make a PR on this repo with your suggested change.
Once it is merged the updated design history will automatically deploy with your post.
For issues relating to the NHS Screening design history, contact Ed Horsford.
The GOV.UK design history project is maintained by a small number of volunteers working across government.
For questions about using a design history for your service, bug reports or feedback, submit a new issue.
The design history uses the GOV.UK Design System and the Eleventy static site generator with the GOV.UK Eleventy Plugin.