govuk_tech_docs 3.0.0 → 3.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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/CHANGELOG.md +30 -0
  7. data/lib/assets/javascripts/_modules/collapsible-navigation.js +13 -7
  8. data/lib/assets/javascripts/_modules/in-page-navigation.js +9 -4
  9. data/lib/assets/javascripts/_modules/search.js +11 -7
  10. data/lib/assets/stylesheets/_govuk_tech_docs.scss +1 -1
  11. data/lib/assets/stylesheets/modules/_anchored-heading.scss +2 -2
  12. data/lib/assets/stylesheets/modules/_search.scss +2 -2
  13. data/lib/assets/stylesheets/modules/_toc.scss +4 -4
  14. data/lib/govuk_tech_docs/api_reference/api_reference_renderer.rb +10 -0
  15. data/lib/govuk_tech_docs/api_reference/templates/api_reference_full.html.erb +2 -2
  16. data/lib/govuk_tech_docs/api_reference/templates/operation.html.erb +1 -1
  17. data/lib/govuk_tech_docs/api_reference/templates/parameters.html.erb +1 -1
  18. data/lib/govuk_tech_docs/api_reference/templates/responses.html.erb +1 -1
  19. data/lib/govuk_tech_docs/api_reference/templates/schema.html.erb +2 -2
  20. data/lib/govuk_tech_docs/contribution_banner.rb +8 -2
  21. data/lib/govuk_tech_docs/pages.rb +4 -2
  22. data/lib/govuk_tech_docs/path_helpers.rb +30 -0
  23. data/lib/govuk_tech_docs/table_of_contents/helpers.rb +7 -7
  24. data/lib/govuk_tech_docs/version.rb +1 -1
  25. data/lib/govuk_tech_docs.rb +1 -0
  26. data/lib/source/api/pages.json.erb +1 -1
  27. data/lib/source/layouts/_header.erb +3 -3
  28. data/lib/source/layouts/_search.erb +1 -1
  29. data/lib/source/layouts/core.erb +1 -1
  30. data/node_modules/govuk-frontend/govuk/all.js +272 -75
  31. data/node_modules/govuk-frontend/govuk/components/accordion/_index.scss +275 -98
  32. data/node_modules/govuk-frontend/govuk/components/accordion/accordion.js +169 -65
  33. data/node_modules/govuk-frontend/govuk/components/button/_index.scss +3 -4
  34. data/node_modules/govuk-frontend/govuk/components/button/button.js +2 -2
  35. data/node_modules/govuk-frontend/govuk/components/character-count/character-count.js +3 -3
  36. data/node_modules/govuk-frontend/govuk/components/checkboxes/_index.scss +14 -0
  37. data/node_modules/govuk-frontend/govuk/components/checkboxes/checkboxes.js +8 -10
  38. data/node_modules/govuk-frontend/govuk/components/cookie-banner/_index.scss +0 -2
  39. data/node_modules/govuk-frontend/govuk/components/details/_index.scss +2 -1
  40. data/node_modules/govuk-frontend/govuk/components/details/details.js +2 -2
  41. data/node_modules/govuk-frontend/govuk/components/error-message/_index.scss +1 -0
  42. data/node_modules/govuk-frontend/govuk/components/error-summary/error-summary.js +2 -2
  43. data/node_modules/govuk-frontend/govuk/components/file-upload/_index.scss +1 -0
  44. data/node_modules/govuk-frontend/govuk/components/footer/_index.scss +6 -37
  45. data/node_modules/govuk-frontend/govuk/components/header/_index.scss +10 -4
  46. data/node_modules/govuk-frontend/govuk/components/header/header.js +4 -4
  47. data/node_modules/govuk-frontend/govuk/components/hint/_index.scss +1 -3
  48. data/node_modules/govuk-frontend/govuk/components/input/_index.scss +1 -1
  49. data/node_modules/govuk-frontend/govuk/components/notification-banner/notification-banner.js +499 -2
  50. data/node_modules/govuk-frontend/govuk/components/panel/_index.scss +13 -1
  51. data/node_modules/govuk-frontend/govuk/components/radios/_index.scss +14 -0
  52. data/node_modules/govuk-frontend/govuk/components/radios/radios.js +4 -4
  53. data/node_modules/govuk-frontend/govuk/components/select/_index.scss +1 -1
  54. data/node_modules/govuk-frontend/govuk/components/skip-link/_index.scss +13 -0
  55. data/node_modules/govuk-frontend/govuk/components/skip-link/skip-link.js +1108 -0
  56. data/node_modules/govuk-frontend/govuk/components/summary-list/_index.scss +15 -23
  57. data/node_modules/govuk-frontend/govuk/components/tabs/_index.scss +2 -2
  58. data/node_modules/govuk-frontend/govuk/components/tabs/tabs.js +2 -2
  59. data/node_modules/govuk-frontend/govuk/components/tag/_index.scss +0 -5
  60. data/node_modules/govuk-frontend/govuk/components/textarea/_index.scss +1 -1
  61. data/node_modules/govuk-frontend/govuk/core/_all.scss +0 -1
  62. data/node_modules/govuk-frontend/govuk/core/_global-styles.scss +0 -6
  63. data/node_modules/govuk-frontend/govuk/core/_links.scss +0 -6
  64. data/node_modules/govuk-frontend/govuk/core/_lists.scss +0 -6
  65. data/node_modules/govuk-frontend/govuk/core/_section-break.scss +0 -6
  66. data/node_modules/govuk-frontend/govuk/core/_typography.scss +0 -6
  67. data/node_modules/govuk-frontend/govuk/helpers/_colour.scss +2 -2
  68. data/node_modules/govuk-frontend/govuk/helpers/_spacing.scss +22 -4
  69. data/node_modules/govuk-frontend/govuk/objects/_all.scss +1 -0
  70. data/node_modules/govuk-frontend/govuk/objects/_main-wrapper.scss +15 -30
  71. data/node_modules/govuk-frontend/govuk/{core → objects}/_template.scss +1 -5
  72. data/node_modules/govuk-frontend/govuk/overrides/_all.scss +1 -0
  73. data/node_modules/govuk-frontend/govuk/overrides/_display.scss +0 -6
  74. data/node_modules/govuk-frontend/govuk/overrides/_spacing.scss +0 -6
  75. data/node_modules/govuk-frontend/govuk/overrides/_text-align.scss +14 -0
  76. data/node_modules/govuk-frontend/govuk/overrides/_typography.scss +0 -6
  77. data/node_modules/govuk-frontend/govuk/overrides/_width.scss +0 -6
  78. data/node_modules/govuk-frontend/govuk/settings/_colours-organisations.scss +3 -0
  79. data/node_modules/govuk-frontend/govuk/settings/_measurements.scss +0 -10
  80. data/node_modules/govuk-frontend/govuk/tools/_all.scss +0 -1
  81. data/package-lock.json +6 -6
  82. data/package.json +1 -1
  83. metadata +13 -9
  84. data/.travis.yml +0 -19
  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: 3.0.0
4
+ version: 3.2.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-10-06 00:00:00.000000000 Z
11
+ date: 2022-03-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: autoprefixer-rails
@@ -271,13 +271,15 @@ 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
284
  - Gemfile
283
285
  - LICENCE
@@ -358,6 +360,7 @@ files:
358
360
  - lib/govuk_tech_docs/meta_tags.rb
359
361
  - lib/govuk_tech_docs/page_review.rb
360
362
  - lib/govuk_tech_docs/pages.rb
363
+ - lib/govuk_tech_docs/path_helpers.rb
361
364
  - lib/govuk_tech_docs/redirects.rb
362
365
  - lib/govuk_tech_docs/table_of_contents/heading.rb
363
366
  - lib/govuk_tech_docs/table_of_contents/heading_tree.rb
@@ -468,6 +471,7 @@ files:
468
471
  - node_modules/govuk-frontend/govuk/components/select/_select.scss
469
472
  - node_modules/govuk-frontend/govuk/components/skip-link/_index.scss
470
473
  - node_modules/govuk-frontend/govuk/components/skip-link/_skip-link.scss
474
+ - node_modules/govuk-frontend/govuk/components/skip-link/skip-link.js
471
475
  - node_modules/govuk-frontend/govuk/components/summary-list/_index.scss
472
476
  - node_modules/govuk-frontend/govuk/components/summary-list/_summary-list.scss
473
477
  - node_modules/govuk-frontend/govuk/components/table/_index.scss
@@ -486,7 +490,6 @@ files:
486
490
  - node_modules/govuk-frontend/govuk/core/_links.scss
487
491
  - node_modules/govuk-frontend/govuk/core/_lists.scss
488
492
  - node_modules/govuk-frontend/govuk/core/_section-break.scss
489
- - node_modules/govuk-frontend/govuk/core/_template.scss
490
493
  - node_modules/govuk-frontend/govuk/core/_typography.scss
491
494
  - node_modules/govuk-frontend/govuk/helpers/_all.scss
492
495
  - node_modules/govuk-frontend/govuk/helpers/_clearfix.scss
@@ -506,10 +509,12 @@ files:
506
509
  - node_modules/govuk-frontend/govuk/objects/_form-group.scss
507
510
  - node_modules/govuk-frontend/govuk/objects/_grid.scss
508
511
  - node_modules/govuk-frontend/govuk/objects/_main-wrapper.scss
512
+ - node_modules/govuk-frontend/govuk/objects/_template.scss
509
513
  - node_modules/govuk-frontend/govuk/objects/_width-container.scss
510
514
  - node_modules/govuk-frontend/govuk/overrides/_all.scss
511
515
  - node_modules/govuk-frontend/govuk/overrides/_display.scss
512
516
  - node_modules/govuk-frontend/govuk/overrides/_spacing.scss
517
+ - node_modules/govuk-frontend/govuk/overrides/_text-align.scss
513
518
  - node_modules/govuk-frontend/govuk/overrides/_typography.scss
514
519
  - node_modules/govuk-frontend/govuk/overrides/_width.scss
515
520
  - node_modules/govuk-frontend/govuk/settings/_all.scss
@@ -532,7 +537,6 @@ files:
532
537
  - node_modules/govuk-frontend/govuk/tools/_exports.scss
533
538
  - node_modules/govuk-frontend/govuk/tools/_font-url.scss
534
539
  - node_modules/govuk-frontend/govuk/tools/_ie8.scss
535
- - node_modules/govuk-frontend/govuk/tools/_iff.scss
536
540
  - node_modules/govuk-frontend/govuk/tools/_image-url.scss
537
541
  - node_modules/govuk-frontend/govuk/tools/_px-to-em.scss
538
542
  - node_modules/govuk-frontend/govuk/tools/_px-to-rem.scss
@@ -558,7 +562,7 @@ homepage: https://github.com/alphagov/tech-docs-gem
558
562
  licenses:
559
563
  - MIT
560
564
  metadata: {}
561
- post_install_message:
565
+ post_install_message:
562
566
  rdoc_options: []
563
567
  require_paths:
564
568
  - lib
@@ -573,8 +577,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
573
577
  - !ruby/object:Gem::Version
574
578
  version: '0'
575
579
  requirements: []
576
- rubygems_version: 3.0.8
577
- signing_key:
580
+ rubygems_version: 3.1.4
581
+ signing_key:
578
582
  specification_version: 4
579
583
  summary: Gem to distribute the GOV.UK Tech Docs Template
580
584
  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: "pFaDlf2VfJAv/EwTFQTdHQFlFRLxtNnipcJyFG0Dvn7itvETKzs5+91gnXQAJuUzGBgXSidHgMkmPTsmWM4k2wbOcHopir9ThSKf0OUtI6o/5GqCU92BpLNJ/Ykhf+wyz9ai6HWX+HN5KRDqpeiuwhraiQjy/tg6lwsauBU8sB80wvUgYYM6oXijHfVwPUkXdhqYTIj20S0M868yYGtf4IInHds8M85TSNor79TFvRd0SFLO7cS+bftqxnNo1mYuBzVXls3POjq59WX+yG8+vS9Sr/tHHuKxw1nho95Fnjf8RYzdxD45osCrXAu3JIbWyJjF6AmQd87zILhdl8n0KNf4tbpFVM+SXVUjMZ2ERvcS1v+nBybVzU3uPwskGZNfWMtCOS401yRF3A21xzNoS916gZrTUSvHjsMcNhzJAZCsEx6MGFVTMzfe5slfWQCPk8k9wBHjyUyC7dl0h5g9qo3jTDnafcpQdnWGOSGgwCxgTaYT1NFfV3M5YpdGevorkOnE6EmWtU67mdtjzRyVvMWc8obqBWdyYnxqrBYKnHDeu/LhtJq3Gvqt/IExwAI8Q1Q7j296hzfmYMcgnETctLNZWoIa4sESDDVMlspcZKqCsrxytDeBFm/yMqVp12S7cjoQbt+fItTl3Bh3BP56j+3fqJlFvTPX4FIKUaaRLy0="
17
- on:
18
- repo: alphagov/tech-docs-gem
19
- branch: master
@@ -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
- }