Skip to content

Commit 9bafc49

Browse files
Add alpha post and fix generation script (#30)
* Fix generation script and update readme * Add first alpha prototype post
1 parent 6dff0ce commit 9bafc49

14 files changed

+87
-29
lines changed

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,17 @@ You have two choices for adding a post:
3030
4. If you have images, add them to a folder in `app/images/[service-name]/YYYY/MM/[post-name]/`
3131
5. Make a PR with your changes and get it reviewed
3232

33+
### Add a post using the generation scripts
34+
35+
[View more details on the scripts here.](https://x-govuk.github.io/govuk-design-history/generate-a-page-of-screenshots/)
36+
37+
1. Use a PNG optimiser [like TinyPNG](https://tinypng.com/) to reduce the file size of your images.
38+
2. Create a folder for your images and them in `app/images/[service-name]/YYYY/MM/[post-name]/`
39+
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.
40+
4. The script will generate a post linking to each image.
41+
5. You should check the title text for each image and ammend as needed.
42+
6. The script will prepend the post filename with the current date but you can delete this if you like.
43+
3344
## Deploying and publishing
3445

3546
Once you have a post you want to publish, make a PR on this repo with your suggested change.
342 KB
Loading
80.7 KB
Loading
140 KB
Loading
210 KB
Loading
86.7 KB
Loading
64.8 KB
Loading
93.1 KB
Loading
90 KB
Loading
62 KB
Loading

0 commit comments

Comments
 (0)