How to add a new service
A guide for our teams on how to add their service or team to the design history
Posts in this design history are grouped by the service or team they relate to. Before you can start publishing posts, you need to add your service. You only need to do this once.
You may want to look at an existing pull request to see the files you need to update.
You will need to create some files and folders based on the name of your service, using lowercase and hypens. For example, for Manage breast screening
you would use manage-breast-screening
.
You’ll need to:
- create a Markdown file in
app/posts/
, for exampleapp/posts/your-service-name.md
. Copy an existing example and update any references to match your service. - create a folder for your service in
app/images/
, for exampleapp/images/your-service-name/
. - create a folder for your service in
app/posts/
, for exampleapp/posts/your-service-name/
. - inside your service’s post folder, ceate a json file
your-service-name.json
, for exampleapp/posts/your-service-name/your-service-name.json
. Copy an existing example for what to put in it. - update
eleventy.config.js
to add the name of the service, for example"your-service-name"
, within the list of services under the// Service collections
line. - note: you will need to add a post before the service can be found in the navigation.
- open a pull request with your changes.