Skip to content

Commit 9aca7c6

Browse files
authored
Merge pull request #218 from nhsuk/download-link
changed download link to version
2 parents 46e8bd6 + 0371ddd commit 9aca7c6

File tree

8 files changed

+22
-7
lines changed

8 files changed

+22
-7
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# NHS.UK prototype kit Changelog
22

3+
## 4.7.1 - 12 October 2021
4+
5+
:wrench: **Fixes**
6+
7+
- Update download link for the prototype-kit to use the latest release instead of the master branch
8+
9+
310
## 4.7.0 - 22 September 2021
411

512
:new: **New features**

docs/documentation_routes.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// External dependencies
22
const express = require('express');
3+
const packageJson = require('../package.json');
34

45
const router = express.Router();
56

@@ -33,6 +34,13 @@ router.post('/install/mac', (req, res) => {
3334
}
3435
});
3536

37+
router.get('/download', (req, res) => {
38+
const { version } = packageJson;
39+
res.redirect(
40+
`https://github.com/nhsuk/nhsuk-prototype-kit/archive/refs/tags/v${version}.zip`,
41+
);
42+
});
43+
3644
// Branching example
3745
router.post('/examples/branching/answer', (req, res) => {
3846
// Make a variable and give it the value from 'know-nhs-number'

docs/views/install/download-zip.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ <h1>
2828

2929
<h2>Zip file</h2>
3030

31-
<p>The simplest way to get the kit is to <a href="https://github.com/nhsuk/nhsuk-prototype-kit/archive/master.zip" data-link="download">download it as a zip</a>.</p>
31+
<p>The simplest way to get the kit is to <a href="/docs/download" data-link="download">download it as a zip</a>.</p>
3232

3333
<h2>GitHub</h2>
3434

docs/views/install/download.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,13 @@ <h2>1. Create a folder</h2>
3434

3535
<h2>2. Download the kit</h2>
3636

37-
<p>The simplest way to get the kit is to <a href="https://github.com/nhsuk/nhsuk-prototype-kit/archive/master.zip" data-link="download">download it as a zip</a>.</p>
37+
<p>The simplest way to get the kit is to <a href="/docs/download" data-link="download">download it as a zip</a>.</p>
3838

3939
<p>You'll use a new copy of the kit for each new prototype you make. That way your prototypes don’t interfere with each other.</p>
4040

4141
<h2>3. Unzip the kit</h2>
4242

43-
<p>Unzip the kit you downloaded - you should end up with a folder called <strong>nhsuk-prototype-kit-master</strong>.</p>
43+
<p>Unzip the kit you downloaded - you should end up with a folder called <strong>nhsuk-prototype-kit</strong> followed by the version number.</p>
4444

4545
{% block branchingContentTwo %}
4646
{% endblock %}

docs/views/install/where-to-keep.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ <h2>Unzip the kit and move it</h2>
3636

3737
<h3>1. Unzip the kit</h3>
3838

39-
<p>Unzip the kit you downloaded - you should end up with a folder called <strong>nhsuk-prototype-kit-master</strong>.</p>
39+
<p>Unzip the kit you downloaded - you should end up with a folder called <strong>nhsuk-prototype-kit</strong> followed by the version number.</p>
4040

4141
<h3>2. Rename the folder</h3>
4242

docs/views/install/windows/download.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
{% block branchingContentTwo %}
1010
<img class="app-img-guide nhsuk-u-margin-top-3 nhsuk-u-margin-bottom-6" alt="Screenshot of the downloaded zip file" src="/images/windows/download-unzip.png" />
1111

12-
<p>Open that folder by double clicking on it. You should then see another folder named <strong>nhsuk-prototype-kit-master</strong>.</p>
12+
<p>Open that folder by double clicking on it. You should then see another folder named <strong>nhsuk-prototype-kit</strong> followed by the version number.</p>
1313

1414
<img class="app-img-guide nhsuk-u-margin-top-3 nhsuk-u-margin-bottom-6" alt="Screenshot of the downloaded zip file" src="/images/windows/download-unzip-open.png" />
1515
{% endblock %}

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "nhsuk-prototype-kit",
3-
"version": "4.6.4",
3+
"version": "4.7.1",
44
"description": "Rapidly create HTML prototypes of NHS websites and services.",
55
"main": "app.js",
66
"scripts": {

0 commit comments

Comments
 (0)