govuk_tech_docs 2.4.2 → 3.1.0

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of govuk_tech_docs might be problematic. Click here for more details.

Files changed (85) hide show
  1. checksums.yaml +4 -4
  2. data/.github/ISSUE_TEMPLATE.md +13 -0
  3. data/.github/pull_request_template.md +14 -1
  4. data/.github/workflows/publish.yaml +76 -0
  5. data/.github/workflows/test.yaml +23 -0
  6. data/.nvmrc +1 -1
  7. data/CHANGELOG.md +39 -0
  8. data/README.md +15 -1
  9. data/lib/assets/javascripts/_modules/search.js +59 -66
  10. data/lib/assets/javascripts/_modules/table-of-contents.js +0 -1
  11. data/lib/assets/javascripts/_vendor/jquery.js +2 -5
  12. data/lib/assets/javascripts/_vendor/lodash.js +5 -3
  13. data/lib/assets/stylesheets/modules/_search.scss +51 -73
  14. data/lib/assets/stylesheets/modules/_technical-documentation.scss +0 -4
  15. data/lib/assets/stylesheets/modules/_toc.scss +0 -3
  16. data/lib/govuk_tech_docs/api_reference/api_reference_renderer.rb +10 -0
  17. data/lib/govuk_tech_docs/api_reference/templates/api_reference_full.html.erb +2 -2
  18. data/lib/govuk_tech_docs/api_reference/templates/operation.html.erb +1 -1
  19. data/lib/govuk_tech_docs/api_reference/templates/parameters.html.erb +1 -1
  20. data/lib/govuk_tech_docs/api_reference/templates/responses.html.erb +1 -1
  21. data/lib/govuk_tech_docs/api_reference/templates/schema.html.erb +2 -2
  22. data/lib/govuk_tech_docs/contribution_banner.rb +8 -2
  23. data/lib/govuk_tech_docs/version.rb +1 -1
  24. data/lib/govuk_tech_docs.rb +3 -1
  25. data/lib/source/layouts/_header.erb +3 -3
  26. data/lib/source/layouts/_search.erb +0 -7
  27. data/lib/source/layouts/core.erb +1 -1
  28. data/lib/source/search/index.html.erb +31 -0
  29. data/node_modules/govuk-frontend/govuk/all.js +272 -75
  30. data/node_modules/govuk-frontend/govuk/components/accordion/_index.scss +275 -98
  31. data/node_modules/govuk-frontend/govuk/components/accordion/accordion.js +169 -65
  32. data/node_modules/govuk-frontend/govuk/components/button/_index.scss +3 -4
  33. data/node_modules/govuk-frontend/govuk/components/button/button.js +2 -2
  34. data/node_modules/govuk-frontend/govuk/components/character-count/character-count.js +3 -3
  35. data/node_modules/govuk-frontend/govuk/components/checkboxes/_index.scss +14 -0
  36. data/node_modules/govuk-frontend/govuk/components/checkboxes/checkboxes.js +8 -10
  37. data/node_modules/govuk-frontend/govuk/components/cookie-banner/_index.scss +0 -2
  38. data/node_modules/govuk-frontend/govuk/components/details/_index.scss +2 -1
  39. data/node_modules/govuk-frontend/govuk/components/details/details.js +2 -2
  40. data/node_modules/govuk-frontend/govuk/components/error-message/_index.scss +1 -0
  41. data/node_modules/govuk-frontend/govuk/components/error-summary/error-summary.js +2 -2
  42. data/node_modules/govuk-frontend/govuk/components/file-upload/_index.scss +1 -0
  43. data/node_modules/govuk-frontend/govuk/components/footer/_index.scss +6 -37
  44. data/node_modules/govuk-frontend/govuk/components/header/_index.scss +10 -4
  45. data/node_modules/govuk-frontend/govuk/components/header/header.js +4 -4
  46. data/node_modules/govuk-frontend/govuk/components/hint/_index.scss +1 -3
  47. data/node_modules/govuk-frontend/govuk/components/input/_index.scss +1 -1
  48. data/node_modules/govuk-frontend/govuk/components/notification-banner/notification-banner.js +499 -2
  49. data/node_modules/govuk-frontend/govuk/components/panel/_index.scss +13 -1
  50. data/node_modules/govuk-frontend/govuk/components/radios/_index.scss +14 -0
  51. data/node_modules/govuk-frontend/govuk/components/radios/radios.js +4 -4
  52. data/node_modules/govuk-frontend/govuk/components/select/_index.scss +1 -1
  53. data/node_modules/govuk-frontend/govuk/components/skip-link/_index.scss +13 -0
  54. data/node_modules/govuk-frontend/govuk/components/skip-link/skip-link.js +1108 -0
  55. data/node_modules/govuk-frontend/govuk/components/summary-list/_index.scss +15 -23
  56. data/node_modules/govuk-frontend/govuk/components/tabs/_index.scss +2 -2
  57. data/node_modules/govuk-frontend/govuk/components/tabs/tabs.js +2 -2
  58. data/node_modules/govuk-frontend/govuk/components/tag/_index.scss +0 -5
  59. data/node_modules/govuk-frontend/govuk/components/textarea/_index.scss +1 -1
  60. data/node_modules/govuk-frontend/govuk/core/_all.scss +0 -1
  61. data/node_modules/govuk-frontend/govuk/core/_global-styles.scss +0 -6
  62. data/node_modules/govuk-frontend/govuk/core/_links.scss +0 -6
  63. data/node_modules/govuk-frontend/govuk/core/_lists.scss +0 -6
  64. data/node_modules/govuk-frontend/govuk/core/_section-break.scss +0 -6
  65. data/node_modules/govuk-frontend/govuk/core/_typography.scss +0 -6
  66. data/node_modules/govuk-frontend/govuk/helpers/_colour.scss +2 -2
  67. data/node_modules/govuk-frontend/govuk/helpers/_spacing.scss +22 -4
  68. data/node_modules/govuk-frontend/govuk/objects/_all.scss +1 -0
  69. data/node_modules/govuk-frontend/govuk/objects/_main-wrapper.scss +15 -30
  70. data/node_modules/govuk-frontend/govuk/{core → objects}/_template.scss +1 -5
  71. data/node_modules/govuk-frontend/govuk/overrides/_all.scss +1 -0
  72. data/node_modules/govuk-frontend/govuk/overrides/_display.scss +0 -6
  73. data/node_modules/govuk-frontend/govuk/overrides/_spacing.scss +0 -6
  74. data/node_modules/govuk-frontend/govuk/overrides/_text-align.scss +14 -0
  75. data/node_modules/govuk-frontend/govuk/overrides/_typography.scss +0 -6
  76. data/node_modules/govuk-frontend/govuk/overrides/_width.scss +0 -6
  77. data/node_modules/govuk-frontend/govuk/settings/_colours-organisations.scss +3 -0
  78. data/node_modules/govuk-frontend/govuk/settings/_measurements.scss +0 -10
  79. data/node_modules/govuk-frontend/govuk/tools/_all.scss +0 -1
  80. data/package-lock.json +6 -6
  81. data/package.json +1 -1
  82. metadata +13 -10
  83. data/.travis.yml +0 -19
  84. data/CONTRIBUTING.md +0 -12
  85. data/node_modules/govuk-frontend/govuk/tools/_iff.scss +0 -17
@@ -6,21 +6,30 @@
6
6
  display: table;
7
7
  width: 100%;
8
8
  table-layout: fixed; // Required to allow us to wrap words that overflow.
9
+ border-collapse: collapse;
9
10
  }
10
11
  margin: 0; // Reset default user agent styles
11
12
  @include govuk-responsive-margin(6, "bottom");
12
13
  }
13
14
 
14
15
  .govuk-summary-list__row {
16
+ border-bottom: 1px solid $govuk-border-colour;
17
+
15
18
  @include govuk-media-query($until: tablet) {
16
19
  margin-bottom: govuk-spacing(3);
17
- border-bottom: 1px solid $govuk-border-colour;
18
20
  }
19
21
  @include govuk-media-query($from: tablet) {
20
22
  display: table-row;
21
23
  }
22
24
  }
23
25
 
26
+ // Provide an empty 'cell' for rows that don't have actions – otherwise the
27
+ // bottom border is not drawn for that part of the row in some browsers.
28
+ .govuk-summary-list__row--no-actions:after {
29
+ content: "";
30
+ display: table-cell;
31
+ }
32
+
24
33
  .govuk-summary-list__key,
25
34
  .govuk-summary-list__value,
26
35
  .govuk-summary-list__actions {
@@ -31,7 +40,6 @@
31
40
  padding-top: govuk-spacing(2);
32
41
  padding-right: govuk-spacing(4);
33
42
  padding-bottom: govuk-spacing(2);
34
- border-bottom: 1px solid $govuk-border-colour;
35
43
  }
36
44
  }
37
45
 
@@ -63,16 +71,6 @@
63
71
  @include govuk-media-query($until: tablet) {
64
72
  margin-bottom: govuk-spacing(3);
65
73
  }
66
- @include govuk-media-query($from: tablet) {
67
- width: 50%;
68
- }
69
- }
70
-
71
- // Expand width when value is last column (no action)
72
- .govuk-summary-list__value:last-child {
73
- @include govuk-media-query($from: tablet) {
74
- width: 70%;
75
- }
76
74
  }
77
75
 
78
76
  .govuk-summary-list__value > p {
@@ -109,36 +107,30 @@
109
107
 
110
108
  // No border on entire summary list
111
109
  .govuk-summary-list--no-border {
112
- @include govuk-media-query($until: tablet) {
113
- .govuk-summary-list__row {
114
- border: 0;
115
- }
110
+ .govuk-summary-list__row {
111
+ border: 0;
116
112
  }
117
113
 
114
+ // Increase padding by 1px to compensate for 'missing' border
118
115
  @include govuk-media-query($from: tablet) {
119
116
  .govuk-summary-list__key,
120
117
  .govuk-summary-list__value,
121
118
  .govuk-summary-list__actions {
122
- // Remove 1px border, add 1px height back on
123
119
  padding-bottom: govuk-spacing(2) + 1px;
124
- border: 0;
125
120
  }
126
121
  }
127
122
  }
128
123
 
129
124
  // No border on specific rows
130
125
  .govuk-summary-list__row--no-border {
131
- @include govuk-media-query($until: tablet) {
132
- border: 0;
133
- }
126
+ border: 0;
134
127
 
128
+ // Increase padding by 1px to compensate for 'missing' border
135
129
  @include govuk-media-query($from: tablet) {
136
130
  .govuk-summary-list__key,
137
131
  .govuk-summary-list__value,
138
132
  .govuk-summary-list__actions {
139
- // Remove 1px border, add 1px height back on
140
133
  padding-bottom: govuk-spacing(2) + 1px;
141
- border: 0;
142
134
  }
143
135
  }
144
136
  }
@@ -24,7 +24,7 @@
24
24
  &:before {
25
25
  @include govuk-text-colour;
26
26
  content: "\2014 "; // "— "
27
- margin-left: - govuk-spacing(5);
27
+ margin-left: govuk-spacing(-5);
28
28
  padding-right: govuk-spacing(1);
29
29
  }
30
30
  }
@@ -77,7 +77,7 @@
77
77
 
78
78
  position: relative;
79
79
 
80
- margin-top: - govuk-spacing(1);
80
+ margin-top: govuk-spacing(-1);
81
81
 
82
82
  // Compensation for border (otherwise we get a shift)
83
83
  margin-bottom: -$border-width;
@@ -1,7 +1,7 @@
1
1
  (function (global, factory) {
2
2
  typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
3
- typeof define === 'function' && define.amd ? define('GOVUKFrontend', factory) :
4
- (global.GOVUKFrontend = factory());
3
+ typeof define === 'function' && define.amd ? define('GOVUKFrontend.Tabs', factory) :
4
+ (global.GOVUKFrontend = global.GOVUKFrontend || {}, global.GOVUKFrontend.Tabs = factory());
5
5
  }(this, (function () { 'use strict';
6
6
 
7
7
  (function(undefined) {
@@ -34,11 +34,6 @@
34
34
  }
35
35
  }
36
36
 
37
- // Deprecated. We'll remove this class in a future release. Use `.govuk-tag--grey` instead.
38
- .govuk-tag--inactive {
39
- background-color: govuk-colour("dark-grey", $legacy: "grey-1");
40
- }
41
-
42
37
  .govuk-tag--grey {
43
38
  color: govuk-shade(govuk-colour("dark-grey", $legacy: "grey-1"), 30);
44
39
  background: govuk-tint(govuk-colour("dark-grey", $legacy: "grey-1"), 90);
@@ -38,7 +38,7 @@
38
38
  }
39
39
 
40
40
  .govuk-textarea--error {
41
- border: $govuk-border-width-form-element-error solid $govuk-error-colour;
41
+ border-color: $govuk-error-colour;
42
42
 
43
43
  &:focus {
44
44
  border-color: $govuk-input-border-colour;
@@ -1,6 +1,5 @@
1
1
  @import "links";
2
2
  @import "lists";
3
- @import "template";
4
3
  @import "typography";
5
4
  @import "section-break";
6
5
  @import "global-styles";
@@ -1,9 +1,3 @@
1
- @if not mixin-exists("govuk-exports") {
2
- @warn "Importing items from the core layer without first importing `base` is deprecated, and will no longer work as of GOV.UK Frontend v4.0.";
3
- }
4
-
5
- @import "../base";
6
-
7
1
  @import "links";
8
2
  @import "typography";
9
3
 
@@ -1,9 +1,3 @@
1
- @if not mixin-exists("govuk-exports") {
2
- @warn "Importing items from the core layer without first importing `base` is deprecated, and will no longer work as of GOV.UK Frontend v4.0.";
3
- }
4
-
5
- @import "../base";
6
-
7
1
  @include govuk-exports("govuk/core/links") {
8
2
 
9
3
  %govuk-link {
@@ -1,9 +1,3 @@
1
- @if not mixin-exists("govuk-exports") {
2
- @warn "Importing items from the core layer without first importing `base` is deprecated, and will no longer work as of GOV.UK Frontend v4.0.";
3
- }
4
-
5
- @import "../base";
6
-
7
1
  @include govuk-exports("govuk/core/lists") {
8
2
 
9
3
  %govuk-list {
@@ -1,9 +1,3 @@
1
- @if not mixin-exists("govuk-exports") {
2
- @warn "Importing items from the core layer without first importing `base` is deprecated, and will no longer work as of GOV.UK Frontend v4.0.";
3
- }
4
-
5
- @import "../base";
6
-
7
1
  @include govuk-exports("govuk/core/section-break") {
8
2
 
9
3
  %govuk-section-break {
@@ -1,9 +1,3 @@
1
- @if not mixin-exists("govuk-exports") {
2
- @warn "Importing items from the core layer without first importing `base` is deprecated, and will no longer work as of GOV.UK Frontend v4.0.";
3
- }
4
-
5
- @import "../base";
6
-
7
1
  @include govuk-exports("govuk/core/typography") {
8
2
 
9
3
  // Headings
@@ -75,7 +75,7 @@
75
75
  /// Make a colour darker by mixing it with black
76
76
  ///
77
77
  /// @param {Colour} $colour - colour to shade
78
- /// @param {Number} $percentage - percentage of `$colour` in returned color
78
+ /// @param {Number} $percentage - percentage of `$colour` in returned colour
79
79
  /// @return {Colour}
80
80
  /// @access public
81
81
 
@@ -86,7 +86,7 @@
86
86
  /// Make a colour lighter by mixing it with white
87
87
  ///
88
88
  /// @param {Colour} $colour - colour to tint
89
- /// @param {Number} $percentage - percentage of `$colour` in returned color
89
+ /// @param {Number} $percentage - percentage of `$colour` in returned colour
90
90
  /// @return {Colour}
91
91
  /// @access public
92
92
 
@@ -8,15 +8,26 @@
8
8
  ///
9
9
  /// Returns measurement corresponding to the spacing point requested.
10
10
  ///
11
- /// @param {Number} $spacing-point - Point on the spacing scale (set in `settings/_spacing.sccs`)
11
+ /// @param {Number} $spacing-point - Point on the spacing scale
12
+ /// (set in `settings/_spacing.scss`)
12
13
  ///
13
- /// @returns {String} Spacing Measurement eg. 10px
14
+ /// @returns {String} Spacing measurement eg. 10px
14
15
  ///
15
16
  /// @example scss
16
17
  /// .element {
17
18
  /// padding: govuk-spacing(5);
18
- /// top: govuk-spacing(2) !important; // if `!important` is required
19
19
  /// }
20
+ ///
21
+ /// @example scss Using negative spacing
22
+ /// .element {
23
+ /// margin-top: govuk-spacing(-1);
24
+ /// }
25
+ ///
26
+ /// @example scss Marking spacing declarations as important
27
+ /// .element {
28
+ /// margin-top: govuk-spacing(1) !important;
29
+ /// }
30
+ ///
20
31
  /// @access public
21
32
 
22
33
  @function govuk-spacing($spacing-point) {
@@ -27,11 +38,18 @@
27
38
  + "#{$actual-input-type}.";
28
39
  }
29
40
 
41
+ $is-negative: false;
42
+ @if ($spacing-point < 0) {
43
+ $is-negative: true;
44
+ $spacing-point: abs($spacing-point);
45
+ }
46
+
30
47
  @if not map-has-key($govuk-spacing-points, $spacing-point) {
31
48
  @error "Unknown spacing variable `#{$spacing-point}`. Make sure you are using a point from the spacing scale in `_settings/spacing.scss`.";
32
49
  }
33
50
 
34
- @return map-get($govuk-spacing-points, $spacing-point);
51
+ $value: map-get($govuk-spacing-points, $spacing-point);
52
+ @return if($is-negative, $value * -1, $value);
35
53
  }
36
54
 
37
55
  /// Responsive spacing
@@ -2,4 +2,5 @@
2
2
  @import "form-group";
3
3
  @import "grid";
4
4
  @import "main-wrapper";
5
+ @import "template";
5
6
  @import "width-container";
@@ -21,37 +21,22 @@
21
21
  // </div>
22
22
  // </div>
23
23
 
24
- /// @deprecated Replace this mixin with more direct references to the [spacing
25
- /// mixins](https://design-system.service.gov.uk/styles/spacing/#spacing-on-custom-components).
26
- @mixin govuk-main-wrapper {
27
- // In IE11 the `main` element can be used, but is not recognized –
28
- // meaning it's not defined in IE's default style sheet,
29
- // so it uses CSS initial value, which is inline.
30
- display: block;
31
- padding-top: govuk-spacing(4);
32
- padding-bottom: govuk-spacing(4);
33
-
34
- @include govuk-media-query($from: tablet) {
35
- // This spacing is manually adjusted to replicate the margin of
36
- // govuk-heading-xl (50px) minus the spacing of back link and
37
- // breadcrumbs (10px)
38
- padding-top: govuk-spacing(7);
39
- padding-bottom: govuk-spacing(7);
40
- }
41
- }
42
-
43
- /// Use govuk-main-wrapper--l when you page does not have Breadcrumbs, phase
44
- /// banners or back links.
45
- ///
46
- /// @deprecated Replace this mixin with more direct references to the [spacing
47
- /// mixins](https://design-system.service.gov.uk/styles/spacing/#spacing-on-custom-components).
48
- @mixin govuk-main-wrapper--l {
49
- @include govuk-responsive-padding(8, "top");
50
- }
51
-
52
24
  @include govuk-exports("govuk/objects/main-wrapper") {
53
25
  .govuk-main-wrapper {
54
- @include govuk-main-wrapper;
26
+ // In IE11 the `main` element can be used, but is not recognized –
27
+ // meaning it's not defined in IE's default style sheet,
28
+ // so it uses CSS initial value, which is inline.
29
+ display: block;
30
+ padding-top: govuk-spacing(4);
31
+ padding-bottom: govuk-spacing(4);
32
+
33
+ @include govuk-media-query($from: tablet) {
34
+ // This spacing is manually adjusted to replicate the margin of
35
+ // govuk-heading-xl (50px) minus the spacing of back link and
36
+ // breadcrumbs (10px)
37
+ padding-top: govuk-spacing(7);
38
+ padding-bottom: govuk-spacing(7);
39
+ }
55
40
  }
56
41
 
57
42
  // Using the `.govuk-main-wrapper--auto-spacing` modifier should apply the
@@ -63,6 +48,6 @@
63
48
  // `govuk-main-wrapper--l` modifier instead.
64
49
  .govuk-main-wrapper--auto-spacing:first-child,
65
50
  .govuk-main-wrapper--l {
66
- @include govuk-main-wrapper--l;
51
+ @include govuk-responsive-padding(8, "top");
67
52
  }
68
53
  }
@@ -1,10 +1,6 @@
1
- @if not mixin-exists("govuk-exports") {
2
- @warn "Importing items from the core layer without first importing `base` is deprecated, and will no longer work as of GOV.UK Frontend v4.0.";
3
- }
4
-
5
1
  @import "../base";
6
2
 
7
- @include govuk-exports("govuk/core/template") {
3
+ @include govuk-exports("govuk/objects/template") {
8
4
 
9
5
  // Applied to the <html> element
10
6
  .govuk-template {
@@ -1,4 +1,5 @@
1
1
  @import "display";
2
2
  @import "spacing";
3
+ @import "text-align";
3
4
  @import "typography";
4
5
  @import "width";
@@ -1,9 +1,3 @@
1
- @if not mixin-exists("govuk-exports") {
2
- @warn "Importing items from the overrides layer without first importing `base` is deprecated, and will no longer work as of GOV.UK Frontend v4.0.";
3
- }
4
-
5
- @import "../base";
6
-
7
1
  // stylelint-disable declaration-no-important
8
2
  @include govuk-exports("govuk/overrides/display") {
9
3
  .govuk-\!-display-inline {
@@ -1,9 +1,3 @@
1
- @if not mixin-exists("govuk-exports") {
2
- @warn "Importing items from the overrides layer without first importing `base` is deprecated, and will no longer work as of GOV.UK Frontend v4.0.";
3
- }
4
-
5
- @import "../base";
6
-
7
1
  ////
8
2
  /// @group overrides
9
3
  ////
@@ -0,0 +1,14 @@
1
+ // stylelint-disable declaration-no-important
2
+ @include govuk-exports("govuk/overrides/text-align") {
3
+ .govuk-\!-text-align-left {
4
+ text-align: left !important;
5
+ }
6
+
7
+ .govuk-\!-text-align-centre {
8
+ text-align: center !important;
9
+ }
10
+
11
+ .govuk-\!-text-align-right {
12
+ text-align: right !important;
13
+ }
14
+ }
@@ -1,9 +1,3 @@
1
- @if not mixin-exists("govuk-exports") {
2
- @warn "Importing items from the overrides layer without first importing `base` is deprecated, and will no longer work as of GOV.UK Frontend v4.0.";
3
- }
4
-
5
- @import "../base";
6
-
7
1
  @include govuk-exports("govuk/overrides/typography") {
8
2
  // Font size and line height
9
3
 
@@ -1,9 +1,3 @@
1
- @if not mixin-exists("govuk-exports") {
2
- @warn "Importing items from the overrides layer without first importing `base` is deprecated, and will no longer work as of GOV.UK Frontend v4.0.";
3
- }
4
-
5
- @import "../base";
6
-
7
1
  // stylelint-disable declaration-no-important
8
2
  @include govuk-exports("govuk/overrides/width") {
9
3
  .govuk-\!-width-full {
@@ -54,6 +54,9 @@ $govuk-colours-organisations: (
54
54
  colour: #cf102d,
55
55
  colour-websafe: #005ea5
56
56
  ),
57
+ "department-for-levelling-up-housing-and-communities": (
58
+ colour: #012169,
59
+ ),
57
60
  "department-for-transport": (
58
61
  colour: #006c56,
59
62
  colour-websafe: #398373
@@ -73,16 +73,6 @@ $govuk-border-width-narrow: 4px !default;
73
73
 
74
74
  $govuk-border-width-form-element: 2px !default;
75
75
 
76
- /// Form control border width when in error state
77
- ///
78
- /// @type Number
79
- /// @access public
80
- /// @deprecated Use $govuk-border-width-form-element instead. There should be no
81
- /// difference in thickness for inputs in the error state, in order to
82
- /// maintain a distinct focus state.
83
-
84
- $govuk-border-width-form-element-error: 2px !default;
85
-
86
76
  /// Form group border width when in error state
87
77
  ///
88
78
  /// @type Number
@@ -2,7 +2,6 @@
2
2
  @import "exports";
3
3
  @import "font-url";
4
4
  @import "ie8";
5
- @import "iff";
6
5
  @import "image-url";
7
6
  @import "px-to-em";
8
7
  @import "px-to-rem";
data/package-lock.json CHANGED
@@ -808,9 +808,9 @@
808
808
  }
809
809
  },
810
810
  "govuk-frontend": {
811
- "version": "3.13.0",
812
- "resolved": "https://registry.npmjs.org/govuk-frontend/-/govuk-frontend-3.13.0.tgz",
813
- "integrity": "sha512-JiPCeasuHZ+9m1VyqhsfE81PhWIW4Sweoe6Jvn6oMjQNr75ZpupiytN3DGwA+WKOoESHZibIG+heAzlkdZ/MhA=="
811
+ "version": "4.0.0",
812
+ "resolved": "https://registry.npmjs.org/govuk-frontend/-/govuk-frontend-4.0.0.tgz",
813
+ "integrity": "sha512-liaJildULUNSSvEgDm36SQTivqBHiZLdrm+O7bBxnW4Q1g64asi+mJIMzW8QeOqlG4Yn8s0gSklsIyaFOuCisQ=="
814
814
  },
815
815
  "graceful-fs": {
816
816
  "version": "4.2.6",
@@ -1421,9 +1421,9 @@
1421
1421
  "dev": true
1422
1422
  },
1423
1423
  "path-parse": {
1424
- "version": "1.0.6",
1425
- "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.6.tgz",
1426
- "integrity": "sha512-GSmOT2EbHrINBf9SR7CDELwlJ8AENk3Qn7OikK4nFYAu3Ote2+JYNVvkpAEQm3/TLNEJFD/xZJjzyxg3KBWOzw==",
1424
+ "version": "1.0.7",
1425
+ "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz",
1426
+ "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==",
1427
1427
  "dev": true
1428
1428
  },
1429
1429
  "path-type": {
data/package.json CHANGED
@@ -6,7 +6,7 @@
6
6
  "lint": "standard"
7
7
  },
8
8
  "dependencies": {
9
- "govuk-frontend": "^3.13.0"
9
+ "govuk-frontend": "^4.0.0"
10
10
  },
11
11
  "devDependencies": {
12
12
  "standard": "^14.3.4"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: govuk_tech_docs
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.4.2
4
+ version: 3.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Government Digital Service
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-07-29 00:00:00.000000000 Z
11
+ date: 2022-01-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: autoprefixer-rails
@@ -271,15 +271,16 @@ extensions: []
271
271
  extra_rdoc_files: []
272
272
  files:
273
273
  - ".editorconfig"
274
+ - ".github/ISSUE_TEMPLATE.md"
274
275
  - ".github/pull_request_template.md"
276
+ - ".github/workflows/publish.yaml"
277
+ - ".github/workflows/test.yaml"
275
278
  - ".gitignore"
276
279
  - ".nvmrc"
277
280
  - ".rspec"
278
281
  - ".rubocop.yml"
279
282
  - ".ruby-version"
280
- - ".travis.yml"
281
283
  - CHANGELOG.md
282
- - CONTRIBUTING.md
283
284
  - Gemfile
284
285
  - LICENCE
285
286
  - README.md
@@ -388,6 +389,7 @@ files:
388
389
  - lib/source/layouts/_search.erb
389
390
  - lib/source/layouts/core.erb
390
391
  - lib/source/layouts/layout.erb
392
+ - lib/source/search/index.html.erb
391
393
  - lib/source/stylesheets/manifest.css
392
394
  - node_modules/govuk-frontend/govuk/_base.scss
393
395
  - node_modules/govuk-frontend/govuk/all-ie8.scss
@@ -468,6 +470,7 @@ files:
468
470
  - node_modules/govuk-frontend/govuk/components/select/_select.scss
469
471
  - node_modules/govuk-frontend/govuk/components/skip-link/_index.scss
470
472
  - node_modules/govuk-frontend/govuk/components/skip-link/_skip-link.scss
473
+ - node_modules/govuk-frontend/govuk/components/skip-link/skip-link.js
471
474
  - node_modules/govuk-frontend/govuk/components/summary-list/_index.scss
472
475
  - node_modules/govuk-frontend/govuk/components/summary-list/_summary-list.scss
473
476
  - node_modules/govuk-frontend/govuk/components/table/_index.scss
@@ -486,7 +489,6 @@ files:
486
489
  - node_modules/govuk-frontend/govuk/core/_links.scss
487
490
  - node_modules/govuk-frontend/govuk/core/_lists.scss
488
491
  - node_modules/govuk-frontend/govuk/core/_section-break.scss
489
- - node_modules/govuk-frontend/govuk/core/_template.scss
490
492
  - node_modules/govuk-frontend/govuk/core/_typography.scss
491
493
  - node_modules/govuk-frontend/govuk/helpers/_all.scss
492
494
  - node_modules/govuk-frontend/govuk/helpers/_clearfix.scss
@@ -506,10 +508,12 @@ files:
506
508
  - node_modules/govuk-frontend/govuk/objects/_form-group.scss
507
509
  - node_modules/govuk-frontend/govuk/objects/_grid.scss
508
510
  - node_modules/govuk-frontend/govuk/objects/_main-wrapper.scss
511
+ - node_modules/govuk-frontend/govuk/objects/_template.scss
509
512
  - node_modules/govuk-frontend/govuk/objects/_width-container.scss
510
513
  - node_modules/govuk-frontend/govuk/overrides/_all.scss
511
514
  - node_modules/govuk-frontend/govuk/overrides/_display.scss
512
515
  - node_modules/govuk-frontend/govuk/overrides/_spacing.scss
516
+ - node_modules/govuk-frontend/govuk/overrides/_text-align.scss
513
517
  - node_modules/govuk-frontend/govuk/overrides/_typography.scss
514
518
  - node_modules/govuk-frontend/govuk/overrides/_width.scss
515
519
  - node_modules/govuk-frontend/govuk/settings/_all.scss
@@ -532,7 +536,6 @@ files:
532
536
  - node_modules/govuk-frontend/govuk/tools/_exports.scss
533
537
  - node_modules/govuk-frontend/govuk/tools/_font-url.scss
534
538
  - node_modules/govuk-frontend/govuk/tools/_ie8.scss
535
- - node_modules/govuk-frontend/govuk/tools/_iff.scss
536
539
  - node_modules/govuk-frontend/govuk/tools/_image-url.scss
537
540
  - node_modules/govuk-frontend/govuk/tools/_px-to-em.scss
538
541
  - node_modules/govuk-frontend/govuk/tools/_px-to-rem.scss
@@ -558,7 +561,7 @@ homepage: https://github.com/alphagov/tech-docs-gem
558
561
  licenses:
559
562
  - MIT
560
563
  metadata: {}
561
- post_install_message:
564
+ post_install_message:
562
565
  rdoc_options: []
563
566
  require_paths:
564
567
  - lib
@@ -573,8 +576,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
573
576
  - !ruby/object:Gem::Version
574
577
  version: '0'
575
578
  requirements: []
576
- rubygems_version: 3.0.8
577
- signing_key:
579
+ rubygems_version: 3.1.4
580
+ signing_key:
578
581
  specification_version: 4
579
582
  summary: Gem to distribute the GOV.UK Tech Docs Template
580
583
  test_files: []
data/.travis.yml DELETED
@@ -1,19 +0,0 @@
1
- language: ruby
2
- cache:
3
- bundler: true
4
- npm: true
5
- before_install:
6
- - nvm install
7
- - nvm use
8
- - gem update --system
9
- - gem install bundler
10
- before_script:
11
- - npm install
12
- deploy:
13
- provider: rubygems
14
- gem: govuk_tech_docs
15
- api_key:
16
- secure: CY9C+IUqUeYWqXSyQgfF5swdYw1rRtYi0ai1xasD3R5rwARF6Qr8CnmdSBjfT2S84fXQiMza45Jto4w1jiy3o4wpxuKN68xEB7J4W/YEpFcZectzsmXwcMJH+DXh720KFIX2xiHaG5N0nWzAoV+6zgw6Vq24IXYE33wO6BgCmTe3vtO+Apg0+wDRAOuJ4T5XfSyWUvG8JqLRb81t+WbrsOLcUgZn24DHvs+lrjXTDDTzrgwTuKeaKd+h+mfxlHZD+Xxbcy624qop5ICwOOP0koRXCdVmTOSZ4mNI10+loCyA1B5Tryj/2wweyc8CanqRMniF8p/BxLV1sAwihpCmCpuWUyxq2pTPSgjF1A1f5hXwkAT/HiaXLzXKyO1REnbtLHYvre10EIYIII4nDAtCZP0YLYvPoKQUrAydeWiQ4jL+cyEeN/8Dznx2OPrhcwxazsElMm0yOZDNXERNIf3IVnQshxMFxQfGW3NTG8XR4l5PHAI2XqKy/O/VGbiRcNV3EYVG5w/KumB698BGDGV2QPOlh3JOEkebXTGDsMJj/gzZik2BtvAqYatwgx7oiYzvhEPz0m9o/DTS7Gf/5Hkj3iV2mpcNtRMc0HKmS7bwkv8Cl6dWECt7PWQ8Kz5ttrCKRmTCJDgra2xLFuV8kbBISPkKKv87KCXzxthM8ps94WE=
17
- on:
18
- repo: alphagov/tech-docs-gem
19
- branch: master
data/CONTRIBUTING.md DELETED
@@ -1,12 +0,0 @@
1
- ## Contributing to this project
2
-
3
- Everybody who uses this project is encouraged to contribute to this project. If you're part of the [alphagov GitHub organisation](https://www.github.com/alphagov) you probably have write access to this repo. If you don't, ask a GitHub admin or #tech-docs-format on Slack.
4
-
5
- - Before adding your feature, [check the backlog to see if someone is already talking about it](https://github.com/alphagov/tech-docs-template/issues)
6
- - If you add a new option to `config/tech-docs.yml`, make sure you [document the new configuration option][configuration]
7
- - If you add a new option to the page frontmatter, make sure you [document the new frontmatter configuration](docs/frontmatter.md)
8
- - You can test your contribution using [unit tests](spec/govuk_tech_docs), [javascript tests](spec/javascripts) or [integration tests](spec/features)
9
- - If your change is relevant to the users of the gem, add something to [CHANGELOG](CHANGELOG.md). You don't have to do this if it's just refactoring. Make sure that you include any upgrade instructions.
10
-
11
- [configuration]: https://github.com/alphagov/tdt-documentation/blob/master/source/amend_project/configuration/index.html.md.erb
12
- [frontmatter]: https://github.com/alphagov/tdt-documentation/blob/master/source/frontmatter.html.md.erb
@@ -1,17 +0,0 @@
1
- ////
2
- /// @group tools
3
- ////
4
-
5
- /// Syntactic sugar around Sass' built-in `if` function that does not require
6
- /// you to pass a value for `$if-false`.
7
- ///
8
- /// @param {Boolean} $condition - Whether to return the value of `$if-true`
9
- /// @param {Mixed} $if-true - Value to return if `$condition` is truthy
10
- /// @return {Mixed} Value of `$if-true` if `$condition` is truthy, else null
11
- /// @access private
12
- /// @deprecated We will be removing this function in a future release, use `if($condition, $if-true, null);` instead.
13
-
14
- @function iff($condition, $if-true) {
15
- @warn "The `iff` function will be removed in a future release, use `if($condition, $if-true, null);` instead.";
16
- @return if($condition, $if-true, null);
17
- }