You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To publish a design history post, you need to use [GitHub](https://github.com) and [Markdown](/guide/using-markdown/).
9
+
If you need any help with this guidance, ask on the Slack channel – [#dpsp-design-histories](https://nhsdigitalcorporate.enterprise.slack.com/archives/C08JN2TJH2P).
10
10
11
-
If you need any help with this, ask on the Slack channel – [#dpsp-design-histories](https://nhsdigitalcorporate.enterprise.slack.com/archives/C08JN2TJH2P).
11
+
## Before you start
12
12
13
-
## How to become a contributor
13
+
You need:
14
14
15
-
You need three things to contribute:
15
+
1. A free [GitHub](https://github.com/) account
16
+
1. Join NHS Digital on GitHub – [see how to request NHS Digital access](https://nhs.sharepoint.com/sites/X26_EngineeringCOE/SitePages/GitHub-User---how-to-request-access.aspx)
17
+
1. Contributor access to this project on GitHub – ask on the Slack channel – [#dpsp-design-histories](https://nhsdigitalcorporate.enterprise.slack.com/archives/C08JN2TJH2P)
16
18
17
-
1. Create a free [GitHub](https://github.com) account
18
-
2. Join NHS Digital on GitHub – see [how to request access](https://nhs.sharepoint.com/sites/X26_EngineeringCOE/SitePages/GitHub-User---how-to-request-access.aspx)
19
-
3. Get contributor access to [this project on GitHub](http://github.com/NHSDigital/prevention-services-design-history/) – ask an existing team member to add you
19
+
## Choose a how you want to create and publish your design history entry
20
20
21
-
## How to publish a post
21
+
-[**GitHub in a browser**](#using-github-in-a-browser) – no software needed, good if you're new to GitHub or on a locked-down device
22
+
-[**GitHub Codespaces**](#using-github-codespaces) – edit in a code editor in your browser, no installation needed
23
+
-[**Local setup**](#using-a-local-version-on-your-computer) – best if you have some experience with GitHub and are comfortable running things from the terminal
22
24
23
-
1. Create a branch. The name of the branch doesn’t matter too much but you could name it after your post title.
24
-
2. Add a new markdown file in `app/[service-name]/YYYY/MM/[post-name]/index.md`. It’s often easier to duplicate an existing post. That way, you will have the headers that contain basic information that all posts need.
25
-
3. Edit the post with your content – make sure it has a title and date.
26
-
4. If you have images or PDFs, add them to the same subfolder containing the post, for example `app/[service-name]/YYYY/MM/[post-name]/`.
27
-
5. Open a pull request with your changes and ask for someone to review it. A preview will be available linked from the pull request.
28
-
6. Once it’s reviewed, you can merge the pull request and the post will appear live within a minute or so.
25
+
You also need to add your service before you can publish posts. You only need to do this once – [follow the guide on how to add a new service](/guide/how-to-add-a-new-service/).
26
+
27
+
Before you start writing, read the [sample template](/guide/a-sample-template/) to understand how to structure your post.
28
+
29
+
## Using GitHub in a browser
30
+
31
+
### Create your post
32
+
33
+
1. Go to the [DPSP design history repository on GitHub](https://github.com/NHSDigital/prevention-services-design-history) – this is the main project folder where all the files are stored
34
+
1. Click on the `app` folder and find your team's folder – note down the folder name, for example `lung-health-check`
35
+
1. Go back to the main project folder, click `app`, then `Add file` and `Create new file`
36
+
1. In the 'name your file' box, type the folder path for your post. Include your team name, year, month, a short title, and end with `index.md`. Use hyphens instead of spaces and forward slashes to separate each part – GitHub will create a new text box when you type a forward slash
37
+
38
+
For example: `lung-health-check/2026/03/designing-new-service/index.md`
39
+
40
+
1. Write your post in [Markdown](/guide/using-markdown/) in the 'Enter file contents here' box – if your content does not already include frontmatter, copy the [sample template](/guide/a-sample-template/) and update the title, date, and any other fields you need
41
+
1. Click 'Commit changes' – committing saves your changes. Select 'Create a new branch', and update the suggested name if you want something more descriptive, then click 'Propose changes'
42
+
43
+
### Add images (optional)
44
+
45
+
Before uploading, compress your images using [TinyPNG](https://tinypng.com/) to reduce file size.
46
+
47
+
1. Go to the [DPSP design history repository on GitHub](https://github.com/NHSDigital/prevention-services-design-history)
48
+
1. Click the 'main' button and select your branch – a branch is a separate copy of the files where you can make changes without affecting the main site. If you did not change the name, it should include your GitHub username
49
+
1. Navigate to your team's folder and then your new post folder
50
+
1. Click 'Add file' then 'Upload files'
51
+
1. Drag and drop your files or click 'Choose your files'
52
+
1. Click 'Commit changes'
53
+
1. Open your `index.md` file and add a reference to each image – [see the markdown guide for images](/guide/using-markdown/#images)
54
+
55
+
### Create a pull request
56
+
57
+
A pull request asks someone to review your changes before they go live on the main site.
58
+
59
+
1. Go to the [DPSP design history repository on GitHub](https://github.com/NHSDigital/prevention-services-design-history)
60
+
1. Click 'Pull requests' and find yours
61
+
1. Click 'Compare & pull request'
62
+
1. Update the title and description if needed – for example `Lung health check – designing a new service`
63
+
1. Click 'Create pull request'
64
+
65
+
### Preview your post
66
+
67
+
1. Scroll down to 'This branch was successfully deployed' and click 'Show environments'. If there is an error, it is likely to be in the frontmatter or how you have named or organised your files
68
+
1. Click 'View deployment' to preview the site and check your post appears in your team's section
69
+
1. To make changes, navigate to your file – click the branch button, select your branch, find your file and click the `...` menu, then 'Edit file'
70
+
1. Make your changes and click 'Commit changes'
71
+
1. Your entry will redeploy and you can preview the changes
72
+
73
+
### Get your post merged
74
+
75
+
Merging adds your changes to the main site and publishes your post.
76
+
77
+
1. Paste the URL of your pull request into [#dpsp-design-histories](https://nhsdigitalcorporate.enterprise.slack.com/archives/C08JN2TJH2P) and ask for a review
78
+
1. Once approved, click 'Merge pull request' or 'Squash and merge'
79
+
80
+
---
81
+
82
+
## Using GitHub Codespaces
83
+
84
+
### Set up your Codespace
85
+
86
+
1. Go to the [DPSP design history repository on GitHub](https://github.com/NHSDigital/prevention-services-design-history)
87
+
1. Click the green 'Code' button, then click the 'Codespaces' tab
88
+
1. Click 'Create codespace on main'
89
+
1. Wait for the editor to finish setting up – this may take a minute or two
90
+
1. A preview of the design history site will open automatically in a new browser tab
91
+
92
+
You only need to create a Codespace once. After that, reopen it from the same 'Codespaces' tab.
93
+
94
+
### Create your post
95
+
96
+
1. In the file explorer, find the `app` folder and your team's subfolder, for example `app/lung-health-check/`
97
+
1. Create a new folder for your post using the year, month, and a short title, for example `app/lung-health-check/2026/03/designing-new-service/`
98
+
1. Inside that folder, create a file called `index.md`
99
+
1. If your content does not already include frontmatter, copy the [sample template](/guide/a-sample-template/) into your file and update the title, date, and any other fields you need
100
+
1. Write your post content below the frontmatter
101
+
1. Save the file – the preview will update automatically
102
+
103
+
### Add images (optional)
104
+
105
+
Before adding images, compress them using [TinyPNG](https://tinypng.com/) to reduce file size.
106
+
107
+
1. Drag and drop your images into the same folder as your `index.md` file
108
+
1. Reference each image in your Markdown using the filename, for example:
109
+
110
+
```
111
+

112
+
```
113
+
114
+
### Preview your post
115
+
116
+
The preview opens automatically when your Codespace starts. You can find it again in the 'Ports' tab at the bottom of the screen – click the link next to port 8080.
117
+
118
+
### Publish your post
119
+
120
+
1. Click the 'Source Control' icon in the left sidebar
121
+
1. Click the `...` menu, select 'Branch', then 'Create branch' – a branch is a separate copy of the files where you can make changes without affecting the main site
122
+
1. Give your branch a name, for example `your-username/your-post-title`, and press Enter
123
+
1. Type a short commit message, for example `Add post: your post title` – a commit saves a snapshot of your changes
124
+
1. Click 'Commit', then 'Publish branch'
125
+
1. Go to the [DPSP design history repository on GitHub](https://github.com/NHSDigital/prevention-services-design-history) and click the prompt to open a pull request – a pull request asks someone to review your changes before they go live
126
+
1. Give your pull request a title and description that briefly explain your post
127
+
1. Click 'Create pull request'
128
+
1. Automated checks will run – you will see 'merging is blocked', this is expected
129
+
1. Scroll down to 'This branch was successfully deployed' and click 'Show environments'. If there is an error, it is likely to be in the frontmatter or how you have named or organised your files
130
+
1. Click 'View deployment' to preview the deployed version and check your post appears in your team's section
131
+
1. To make changes, find your file in the file explorer and click to open it
132
+
1. Make your changes and save the file
133
+
1. Your entry will redeploy and you can preview the changes
134
+
1. Paste the pull request URL into [#dpsp-design-histories](https://nhsdigitalcorporate.enterprise.slack.com/archives/C08JN2TJH2P) and ask for a review
135
+
1. Once approved, click 'Merge pull request' or 'Squash and merge' – this adds your changes to the main site and publishes your post
136
+
137
+
---
138
+
139
+
## Using a local version on your computer
140
+
141
+
This method assumes you have some experience with GitHub and are comfortable running things from the terminal. If you are not sure, use the GitHub in a browser or Codespaces method instead.
142
+
143
+
You also need:
144
+
145
+
- Git installed on your computer
146
+
- Node.js installed on your computer
147
+
- A code editor, for example VS Code or Sublime
148
+
149
+
### Set up the project
150
+
151
+
You only need to do this once.
152
+
153
+
1. Download a copy of the [DPSP design history project](https://github.com/NHSDigital/prevention-services-design-history) to your computer by cloning the repository
154
+
1. Open your terminal and open the project folder
155
+
1. Run `npm install` to install dependencies – the software packages the project needs to run
156
+
1. Run `npm start` to run the site locally at `http://localhost:8080`
157
+
158
+
### Create your post
159
+
160
+
1. In the `app` folder, find your team's subfolder, for example `app/lung-health-check/`
161
+
1. Create a new folder for your post using the year, month, and a short title, for example `app/lung-health-check/2026/03/designing-new-service/`
162
+
1. Inside that folder, create a file called `index.md`
163
+
1. If your content does not already include frontmatter, copy the [sample template](/guide/a-sample-template/) into your file and update the title, date, and any other fields you need
164
+
1. Write your post content below the frontmatter
165
+
1. Save the file – your local site will update automatically
166
+
167
+
### Add images (optional)
168
+
169
+
Before adding images, compress them using [TinyPNG](https://tinypng.com/) to reduce file size.
170
+
171
+
1. Save your images into the same folder as your `index.md` file
172
+
1. Reference each image in your Markdown using the filename, for example:
173
+
174
+
```
175
+

176
+
```
177
+
178
+
### Preview your post
179
+
180
+
Run `npm start` and visit `http://localhost:8080` at any point to preview locally.
181
+
182
+
### Publish your post
183
+
184
+
1. Create a branch with your changes and open a pull request on GitHub
185
+
1. Automated checks will run – you will see 'merging is blocked', this is expected
186
+
1. Scroll down to 'This branch was successfully deployed' and click 'Show environments'. If there is an error, it is likely to be in the frontmatter or how you have named or organised your files
187
+
1. Click 'View deployment' to preview the deployed version and check your post appears in your team's section
188
+
1. Paste the pull request URL into [#dpsp-design-histories](https://nhsdigitalcorporate.enterprise.slack.com/archives/C08JN2TJH2P) and ask for a review
189
+
1. Once approved, click 'Merge pull request' or 'Squash and merge' – this adds your changes to the main site and publishes your post
0 commit comments