From 23290399a5bd8d7743dd25edb5008b132c128c1a Mon Sep 17 00:00:00 2001 From: Jani Kraner Date: Thu, 21 Jun 2018 10:44:26 +0100 Subject: [PATCH 1/3] Update base Design System url in templates --- app/views/layouts/component.njk | 2 +- app/views/layouts/readme.njk | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/layouts/component.njk b/app/views/layouts/component.njk index 676d2a45c1..f484a8df81 100644 --- a/app/views/layouts/component.njk +++ b/app/views/layouts/component.njk @@ -9,7 +9,7 @@ {% set componentName = componentPath %} {% set componentNameHuman = componentName | replace("-", " ") | capitalize %} -{% set componentGuidanceLink = componentGuidanceLink | default('https://govuk-design-system-production.cloudapps.digital/components/' + componentName)%} +{% set componentGuidanceLink = componentGuidanceLink | default('https://design-system.service.gov.uk/components/' + componentName)%} {% set htmlMarkup %} {% include componentName +"/"+ componentName +".njk" ignore missing %} {% endset %} diff --git a/app/views/layouts/readme.njk b/app/views/layouts/readme.njk index ff7e0eb7bd..f8fdaa89c1 100644 --- a/app/views/layouts/readme.njk +++ b/app/views/layouts/readme.njk @@ -1,7 +1,7 @@ {% set nunjucksHtmlUsageMessage = '**If you’re using Nunjucks macros in production be aware that using `html` arguments, or ones ending with `Html` can be a [security risk](https://en.wikipedia.org/wiki/Cross-site_scripting). More about it in the [Nunjucks documentation](https://mozilla.github.io/nunjucks/api.html#user-defined-templates-warning).**' %} {% set componentName = componentPath %} {% set componentNameHuman = componentName | replace("-", " ") | capitalize %} -{% set componentGuidanceLink = componentGuidanceLink | default('https://govuk-design-system-production.cloudapps.digital/components/' + componentName)%} +{% set componentGuidanceLink = componentGuidanceLink | default('https://design-system.service.gov.uk/components/' + componentName)%}

{% block componentName %} {{ componentNameHuman }} From 9476691690d4ff327b421826cde53c81c0831577 Mon Sep 17 00:00:00 2001 From: Jani Kraner Date: Thu, 21 Jun 2018 10:45:17 +0100 Subject: [PATCH 2/3] Regenerate component README files --- src/components/back-link/README.md | 2 +- src/components/breadcrumbs/README.md | 2 +- src/components/button/README.md | 2 +- src/components/checkboxes/README.md | 2 +- src/components/date-input/README.md | 2 +- src/components/details/README.md | 2 +- src/components/error-message/README.md | 2 +- src/components/error-summary/README.md | 2 +- src/components/fieldset/README.md | 2 +- src/components/file-upload/README.md | 2 +- src/components/footer/README.md | 2 +- src/components/header/README.md | 2 +- src/components/panel/README.md | 2 +- src/components/phase-banner/README.md | 2 +- src/components/radios/README.md | 2 +- src/components/select/README.md | 2 +- src/components/skip-link/README.md | 2 +- src/components/table/README.md | 2 +- src/components/tabs/README.md | 2 +- src/components/tag/README.md | 2 +- src/components/textarea/README.md | 2 +- src/components/warning-text/README.md | 2 +- 22 files changed, 22 insertions(+), 22 deletions(-) diff --git a/src/components/back-link/README.md b/src/components/back-link/README.md index 462dec9103..d5e6adb3c4 100644 --- a/src/components/back-link/README.md +++ b/src/components/back-link/README.md @@ -6,7 +6,7 @@ Link back component, to go back a page. ## Guidance -Find out when to use the Back link component in your service in the [GOV.UK Design System](https://govuk-design-system-production.cloudapps.digital/components/back-link). +Find out when to use the Back link component in your service in the [GOV.UK Design System](https://design-system.service.gov.uk/components/back-link). ## Quick start examples diff --git a/src/components/breadcrumbs/README.md b/src/components/breadcrumbs/README.md index 9fe6e55dbc..1d6e128acf 100644 --- a/src/components/breadcrumbs/README.md +++ b/src/components/breadcrumbs/README.md @@ -6,7 +6,7 @@ The Breadcrumbs component helps users to understand where they are within a webs ## Guidance -Find out when to use the Breadcrumbs component in your service in the [GOV.UK Design System](https://govuk-design-system-production.cloudapps.digital/components/breadcrumbs). +Find out when to use the Breadcrumbs component in your service in the [GOV.UK Design System](https://design-system.service.gov.uk/components/breadcrumbs). ## Quick start examples diff --git a/src/components/button/README.md b/src/components/button/README.md index af981f02ec..cc27af3b99 100644 --- a/src/components/button/README.md +++ b/src/components/button/README.md @@ -6,7 +6,7 @@ A button is an element that allows users to carry out an action on a GOV.UK page ## Guidance -Find out when to use the Button component in your service in the [GOV.UK Design System](https://govuk-design-system-production.cloudapps.digital/components/button). +Find out when to use the Button component in your service in the [GOV.UK Design System](https://design-system.service.gov.uk/components/button). ## Quick start examples diff --git a/src/components/checkboxes/README.md b/src/components/checkboxes/README.md index e3f4d06e4f..02a55a973c 100644 --- a/src/components/checkboxes/README.md +++ b/src/components/checkboxes/README.md @@ -6,7 +6,7 @@ Let users select one or more options. ## Guidance -Find out when to use the Checkboxes component in your service in the [GOV.UK Design System](https://govuk-design-system-production.cloudapps.digital/components/checkboxes). +Find out when to use the Checkboxes component in your service in the [GOV.UK Design System](https://design-system.service.gov.uk/components/checkboxes). ## Quick start examples diff --git a/src/components/date-input/README.md b/src/components/date-input/README.md index 32bbb479b8..fd572018fc 100644 --- a/src/components/date-input/README.md +++ b/src/components/date-input/README.md @@ -6,7 +6,7 @@ A component for entering dates, for example - date of birth. ## Guidance -Find out when to use the Date input component in your service in the [GOV.UK Design System](https://govuk-design-system-production.cloudapps.digital/components/date-input). +Find out when to use the Date input component in your service in the [GOV.UK Design System](https://design-system.service.gov.uk/components/date-input). ## Quick start examples diff --git a/src/components/details/README.md b/src/components/details/README.md index 990bbb06d8..01326718b4 100644 --- a/src/components/details/README.md +++ b/src/components/details/README.md @@ -6,7 +6,7 @@ Component for conditionally revealing content, using the details HTML element. ## Guidance -Find out when to use the Details component in your service in the [GOV.UK Design System](https://govuk-design-system-production.cloudapps.digital/components/details). +Find out when to use the Details component in your service in the [GOV.UK Design System](https://design-system.service.gov.uk/components/details). ## Quick start examples diff --git a/src/components/error-message/README.md b/src/components/error-message/README.md index a24d2d1a85..c6fd34d99e 100644 --- a/src/components/error-message/README.md +++ b/src/components/error-message/README.md @@ -6,7 +6,7 @@ Component to show a red error message - used for form validation. Use inside a l ## Guidance -Find out when to use the Error message component in your service in the [GOV.UK Design System](https://govuk-design-system-production.cloudapps.digital/components/error-message). +Find out when to use the Error message component in your service in the [GOV.UK Design System](https://design-system.service.gov.uk/components/error-message). ## Quick start examples diff --git a/src/components/error-summary/README.md b/src/components/error-summary/README.md index eea100482b..68e23bff6e 100644 --- a/src/components/error-summary/README.md +++ b/src/components/error-summary/README.md @@ -6,7 +6,7 @@ Component to show an error summary box - used at the top of the page, to summari ## Guidance -Find out when to use the Error summary component in your service in the [GOV.UK Design System](https://govuk-design-system-production.cloudapps.digital/components/error-summary). +Find out when to use the Error summary component in your service in the [GOV.UK Design System](https://design-system.service.gov.uk/components/error-summary). ## Quick start examples diff --git a/src/components/fieldset/README.md b/src/components/fieldset/README.md index 20b4944ba6..33c6f07277 100644 --- a/src/components/fieldset/README.md +++ b/src/components/fieldset/README.md @@ -6,7 +6,7 @@ The fieldset element is used to group several controls within a web form. The le ## Guidance -Find out when to use the Fieldset component in your service in the [GOV.UK Design System](https://govuk-design-system-production.cloudapps.digital/components/fieldset). +Find out when to use the Fieldset component in your service in the [GOV.UK Design System](https://design-system.service.gov.uk/components/fieldset). ## Quick start examples diff --git a/src/components/file-upload/README.md b/src/components/file-upload/README.md index b3ee3012a9..f9b692a0d9 100644 --- a/src/components/file-upload/README.md +++ b/src/components/file-upload/README.md @@ -6,7 +6,7 @@ The HTML `` element with type="file" lets a user pick one or more files, ## Guidance -Find out when to use the File upload component in your service in the [GOV.UK Design System](https://govuk-design-system-production.cloudapps.digital/components/file-upload). +Find out when to use the File upload component in your service in the [GOV.UK Design System](https://design-system.service.gov.uk/components/file-upload). ## Quick start examples diff --git a/src/components/footer/README.md b/src/components/footer/README.md index aafece2266..27752b6a58 100644 --- a/src/components/footer/README.md +++ b/src/components/footer/README.md @@ -6,7 +6,7 @@ The footer component is used at the bottom of every GOV.UK page, to help users n ## Guidance -Find out when to use the Footer component in your service in the [GOV.UK Design System](https://govuk-design-system-production.cloudapps.digital/components/footer). +Find out when to use the Footer component in your service in the [GOV.UK Design System](https://design-system.service.gov.uk/components/footer). ## Quick start examples diff --git a/src/components/header/README.md b/src/components/header/README.md index 2c90038baf..57d580d5a0 100644 --- a/src/components/header/README.md +++ b/src/components/header/README.md @@ -6,7 +6,7 @@ The header component is used at the top of every GOV.UK page, to help users navi ## Guidance -Find out when to use the Header component in your service in the [GOV.UK Design System](https://govuk-design-system-production.cloudapps.digital/components/header). +Find out when to use the Header component in your service in the [GOV.UK Design System](https://design-system.service.gov.uk/components/header). ## Quick start examples diff --git a/src/components/panel/README.md b/src/components/panel/README.md index 237bab923a..45f85ad5a3 100644 --- a/src/components/panel/README.md +++ b/src/components/panel/README.md @@ -6,7 +6,7 @@ The confirmation panel has a turquoise background and white text. Used for trans ## Guidance -Find out when to use the Panel component in your service in the [GOV.UK Design System](https://govuk-design-system-production.cloudapps.digital/components/panel). +Find out when to use the Panel component in your service in the [GOV.UK Design System](https://design-system.service.gov.uk/components/panel). ## Quick start examples diff --git a/src/components/phase-banner/README.md b/src/components/phase-banner/README.md index 3b7257a100..0f2fefbe44 100644 --- a/src/components/phase-banner/README.md +++ b/src/components/phase-banner/README.md @@ -6,7 +6,7 @@ A banner that indicates content is in alpha or beta phase with a description. ## Guidance -Find out when to use the Phase banner component in your service in the [GOV.UK Design System](https://govuk-design-system-production.cloudapps.digital/components/phase-banner). +Find out when to use the Phase banner component in your service in the [GOV.UK Design System](https://design-system.service.gov.uk/components/phase-banner). ## Quick start examples diff --git a/src/components/radios/README.md b/src/components/radios/README.md index 0357e84d28..620ef8ccb7 100644 --- a/src/components/radios/README.md +++ b/src/components/radios/README.md @@ -6,7 +6,7 @@ Let users select a single option from a list. ## Guidance -Find out when to use the Radios component in your service in the [GOV.UK Design System](https://govuk-design-system-production.cloudapps.digital/components/radios). +Find out when to use the Radios component in your service in the [GOV.UK Design System](https://design-system.service.gov.uk/components/radios). ## Quick start examples diff --git a/src/components/select/README.md b/src/components/select/README.md index b858d73690..87c1d156d3 100644 --- a/src/components/select/README.md +++ b/src/components/select/README.md @@ -6,7 +6,7 @@ The HTML `