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
Copy file name to clipboardExpand all lines: README.md
+19-16Lines changed: 19 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,56 +7,59 @@ A place for services within digital prevention services to document their design
7
7
1. Clone the repo to a folder on your computer
8
8
2. In your terminal, `cd` to the folder
9
9
3. Run `npm install` to install pre-requisites
10
-
4. Run `npm run start` to build the design history site and serve it
10
+
4. Run `npm start` to build the design history site and serve it
11
11
5. View the site locally at `localhost:8080`
12
12
13
13
## Adding a new service
14
14
15
15
To add a new service, there is some set up involved.
16
16
17
-
You will need to create some files and folders based on the name of your service, using lowercase and hypens. For example `your-service-name`.
17
+
You will need to create some files and folders based on the name of your service, using lowercase and hyphens. For example `your-service-name`.
18
18
19
19
You’ll need to:
20
20
21
-
* create a folder for your service within `app/posts/`, for example `app/posts/your-service-name/`
22
-
* create a folder with the same name in `app/images/`, for example `app/images/your-service-name/`
23
-
* create a `your-service-name.json` file within `app/posts/` that adds the eleventyNavigation parent name as the name of your service (copy an existing example)
24
-
* create a Markdown file in `app/posts/`, for example `app/posts/your-service-name.md`. Copy an existing example and update any references to match your service.
25
-
* update `eleventy.config.js` to create a new 'collection' for your service (copy one of the existing examples)
26
-
* update `app/_layouts/_product.njk` to list your new service in the `sections` variable
21
+
- create a Markdown file in `app/posts/`, for example `app/posts/your-service-name.md`. Copy an existing example and update any references to match your service.
22
+
- create a folder for your service in `app/images/`, for example `app/images/your-service-name/`
23
+
- create a folder for your service in `app/posts/`, for example `app/posts/your-service-name/`
24
+
- inside your service’s post folder, create a JSON file `your-service-name.json`, for example `app/posts/your-service-name/your-service-name.json`. Copy an existing example for what to put in it.
25
+
- update `eleventy.config.js` to create a new ‘collection’ for your service (copy one of the existing examples)
26
+
- update `app/_layouts/_product.njk` to list your new service in the sections variable
27
+
- open a pull request with your changes
27
28
28
29
See [Divide a design history into different sections](https://x-govuk.github.io/govuk-design-history/divide-a-design-history-into-sections/).
29
30
30
31
## Adding a new post
31
32
32
33
You have two choices for adding a post:
33
34
34
-
*[Add a post manually](#add-a-post-manually)
35
-
*[Use the post generation scripts](https://x-govuk.github.io/govuk-design-history/generate-a-page-of-screenshots/)
35
+
-[Add a post manually](#add-a-post-manually)
36
+
-[Use the post generation scripts](https://x-govuk.github.io/govuk-design-history/generate-a-page-of-screenshots/)
36
37
37
38
### Add a post manually
38
39
39
-
1. Draft your design history post - it's often easiest to do this in Sharepoint
40
-
1. Create a new markdown file in `app/posts/[service-name]/YYYY/MM/[post-name].md`
41
-
** It's often easier to duplicate an existing post as that will have the headers you need
40
+
1. Draft your design history post - it’s often easiest to do this in SharePoint
41
+
2. Create a new markdown file in `app/posts/[service-name]/YYYY/MM/[post-name].md`
42
+
43
+
> It’s often easier to duplicate an existing post as that will have the headers you need
44
+
42
45
3. Edit the post with your content - make sure it has a title, subtitle, and date
43
46
4. If you have images, add them to a folder in `app/images/[service-name]/YYYY/MM/[post-name]/`
44
-
5. Make a PR with your changes and get it reviewed
47
+
5. Make a pull request with your changes and get it reviewed
45
48
46
49
### Add a post using the generation scripts
47
50
48
51
[View more details on the scripts here.](https://x-govuk.github.io/govuk-design-history/generate-a-page-of-screenshots/)
49
52
50
53
1. Use a PNG optimiser [like TinyPNG](https://tinypng.com/) to reduce the file size of your images.
51
54
2. Create a folder for your images and put them in `app/images/[service-name]/YYYY/MM/[post-name]/`
52
-
3. From the terminal, run `node scripts/generate.js [path]` where `path` is the full path to the folder of images. The easiest way to do this is to type `node scripts/generate.js` and then drag the folder from Finder on to your terminal to fill in the path.
55
+
3. From the terminal, run `node scripts/generate.js [path]` where `path` is the full path to the folder of images. The easiest way to do this is to type `node scripts/generate.js` and then drag the folder from Finder on to your terminal to fill in the path.
53
56
4. The script will generate a new post linking to each image and place it in `app/posts/[service-name]/YYYY/MM/[post-name].md`.
54
57
5. You should check the title text for each image and amend as needed.
55
58
6. The script will prepend the post filename with the current date but you can delete this if you like.
56
59
57
60
## Deploying and publishing
58
61
59
-
Once you have a post you want to publish, make a PR on this repo with your suggested change.
62
+
Once you have a post you want to publish, make a pull request on this repo with your suggested change.
60
63
61
64
Once it is merged the updated design history will automatically deploy with your post.
Copy file name to clipboardExpand all lines: app/guide/how-to-add-a-new-service.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,10 +14,10 @@ You will need to create some files and folders based on the name of your service
14
14
15
15
You’ll need to:
16
16
17
-
* create a folder for your service within `app/posts/`, for example `app/posts/your-service-name/`
18
-
* create a folder with the same name in `app/images/`, for example `app/images/your-service-name/`
19
-
* create a `your-service-name.json` file within `app/posts/` that adds the eleventyNavigation parent name as the name of your service (copy an existing example)
20
17
* create a Markdown file in `app/posts/`, for example `app/posts/your-service-name.md`. Copy an existing example and update any references to match your service.
18
+
* create a folder for your service in `app/images/`, for example `app/images/your-service-name/`
19
+
* create a folder for your service in `app/posts/`, for example `app/posts/your-service-name/`
20
+
* inside your service’s post folder, ceate a json file `your-service-name.json`, for exampole `app/posts/your-service-name/your-service-name.json`. Copy an existing example for what to put in it.
21
21
* update `eleventy.config.js` to create a new 'collection' for your service (copy one of the existing examples)
22
22
* update `app/_layouts/_product.njk` to list your new service in the sections variable
Copy file name to clipboardExpand all lines: app/posts/hpv-self-sampling/2025/03/2025-03-31-hpv-self-sampling-context.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,6 +7,7 @@ tags:
7
7
- hpv self sampling
8
8
- nhs ambitions
9
9
---
10
+
10
11
> The UKNSC is consulting on introducing self sampling for cervical screening. Find out more: [UK NSC consults on offering HPV self-sampling option to under-screened people in cervical screening programme – UK National Screening Committee.](https://nationalscreening.blog.gov.uk/2024/12/04/uk-nsc-consults-on-offering-hpv-self-sampling-option-to-under-screened-people-in-cervical-screening-programme/)
11
12
**We are running discovery and alpha in parallel to this consultation, to prepare for potential implementation in future.**
0 commit comments