Skip to content

Commit

Permalink
Merge pull request #218 from nhsuk/download-link
Browse files Browse the repository at this point in the history
changed download link to version
  • Loading branch information
DomBaker authored Oct 12, 2021
2 parents 46e8bd6 + 0371ddd commit 9aca7c6
Show file tree
Hide file tree
Showing 8 changed files with 22 additions and 7 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# NHS.UK prototype kit Changelog

## 4.7.1 - 12 October 2021

:wrench: **Fixes**

- Update download link for the prototype-kit to use the latest release instead of the master branch


## 4.7.0 - 22 September 2021

:new: **New features**
Expand Down
8 changes: 8 additions & 0 deletions docs/documentation_routes.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// External dependencies
const express = require('express');
const packageJson = require('../package.json');

const router = express.Router();

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

router.get('/download', (req, res) => {
const { version } = packageJson;
res.redirect(
`https://github.com/nhsuk/nhsuk-prototype-kit/archive/refs/tags/v${version}.zip`,
);
});

// Branching example
router.post('/examples/branching/answer', (req, res) => {
// Make a variable and give it the value from 'know-nhs-number'
Expand Down
2 changes: 1 addition & 1 deletion docs/views/install/download-zip.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ <h1>

<h2>Zip file</h2>

<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>
<p>The simplest way to get the kit is to <a href="/docs/download" data-link="download">download it as a zip</a>.</p>

<h2>GitHub</h2>

Expand Down
4 changes: 2 additions & 2 deletions docs/views/install/download.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,13 @@ <h2>1. Create a folder</h2>

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

<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>
<p>The simplest way to get the kit is to <a href="/docs/download" data-link="download">download it as a zip</a>.</p>

<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>

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

<p>Unzip the kit you downloaded - you should end up with a folder called <strong>nhsuk-prototype-kit-master</strong>.</p>
<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>

{% block branchingContentTwo %}
{% endblock %}
Expand Down
2 changes: 1 addition & 1 deletion docs/views/install/where-to-keep.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ <h2>Unzip the kit and move it</h2>

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

<p>Unzip the kit you downloaded - you should end up with a folder called <strong>nhsuk-prototype-kit-master</strong>.</p>
<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>

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

Expand Down
2 changes: 1 addition & 1 deletion docs/views/install/windows/download.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
{% block branchingContentTwo %}
<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" />

<p>Open that folder by double clicking on it. You should then see another folder named <strong>nhsuk-prototype-kit-master</strong>.</p>
<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>

<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" />
{% endblock %}
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "nhsuk-prototype-kit",
"version": "4.6.4",
"version": "4.7.1",
"description": "Rapidly create HTML prototypes of NHS websites and services.",
"main": "app.js",
"scripts": {
Expand Down

0 comments on commit 9aca7c6

Please sign in to comment.