govuk_tech_docs 2.2.2 → 2.4.2

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 (143) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +1 -0
  3. data/.nvmrc +1 -1
  4. data/.travis.yml +2 -0
  5. data/CHANGELOG.md +24 -0
  6. data/example/config/tech-docs.yml +1 -0
  7. data/example/source/single-page-nav.html.md +13 -0
  8. data/govuk_tech_docs.gemspec +2 -1
  9. data/lib/assets/javascripts/_modules/collapsible-navigation.js +7 -7
  10. data/lib/assets/javascripts/_modules/in-page-navigation.js +2 -4
  11. data/lib/assets/stylesheets/_govuk_tech_docs.scss +9 -10
  12. data/lib/assets/stylesheets/modules/_search.scss +4 -25
  13. data/lib/assets/stylesheets/modules/_technical-documentation.scss +1 -1
  14. data/lib/assets/stylesheets/modules/_toc.scss +11 -11
  15. data/lib/govuk_tech_docs/table_of_contents/heading.rb +5 -1
  16. data/lib/govuk_tech_docs/table_of_contents/heading_tree_renderer.rb +2 -2
  17. data/lib/govuk_tech_docs/table_of_contents/helpers.rb +22 -11
  18. data/lib/govuk_tech_docs/tech_docs_html_renderer.rb +1 -1
  19. data/lib/govuk_tech_docs/version.rb +1 -1
  20. data/lib/source/layouts/_header.erb +1 -2
  21. data/lib/source/layouts/layout.erb +3 -1
  22. data/node_modules/govuk-frontend/govuk/_base.scss +3 -0
  23. data/node_modules/govuk-frontend/govuk/all.js +306 -94
  24. data/node_modules/govuk-frontend/govuk/all.scss +1 -3
  25. data/node_modules/govuk-frontend/govuk/components/_all.scss +33 -29
  26. data/node_modules/govuk-frontend/govuk/components/accordion/_accordion.scss +2 -208
  27. data/node_modules/govuk-frontend/govuk/components/accordion/_index.scss +197 -0
  28. data/node_modules/govuk-frontend/govuk/components/accordion/accordion.js +1 -1
  29. data/node_modules/govuk-frontend/govuk/components/back-link/_back-link.scss +2 -65
  30. data/node_modules/govuk-frontend/govuk/components/back-link/_index.scss +99 -0
  31. data/node_modules/govuk-frontend/govuk/components/breadcrumbs/_breadcrumbs.scss +2 -118
  32. data/node_modules/govuk-frontend/govuk/components/breadcrumbs/_index.scss +138 -0
  33. data/node_modules/govuk-frontend/govuk/components/button/_button.scss +2 -284
  34. data/node_modules/govuk-frontend/govuk/components/button/_index.scss +288 -0
  35. data/node_modules/govuk-frontend/govuk/components/character-count/_character-count.scss +2 -31
  36. data/node_modules/govuk-frontend/govuk/components/character-count/_index.scss +25 -0
  37. data/node_modules/govuk-frontend/govuk/components/character-count/character-count.js +17 -9
  38. data/node_modules/govuk-frontend/govuk/components/checkboxes/_checkboxes.scss +2 -308
  39. data/node_modules/govuk-frontend/govuk/components/checkboxes/_index.scss +320 -0
  40. data/node_modules/govuk-frontend/govuk/components/checkboxes/checkboxes.js +129 -24
  41. data/node_modules/govuk-frontend/govuk/components/cookie-banner/_cookie-banner.scss +2 -0
  42. data/node_modules/govuk-frontend/govuk/components/cookie-banner/_index.scss +51 -0
  43. data/node_modules/govuk-frontend/govuk/components/date-input/_date-input.scss +2 -30
  44. data/node_modules/govuk-frontend/govuk/components/date-input/_index.scss +26 -0
  45. data/node_modules/govuk-frontend/govuk/components/details/_details.scss +2 -88
  46. data/node_modules/govuk-frontend/govuk/components/details/_index.scss +87 -0
  47. data/node_modules/govuk-frontend/govuk/components/error-message/_error-message.scss +2 -15
  48. data/node_modules/govuk-frontend/govuk/components/error-message/_index.scss +11 -0
  49. data/node_modules/govuk-frontend/govuk/components/error-summary/_error-summary.scss +2 -59
  50. data/node_modules/govuk-frontend/govuk/components/error-summary/_index.scss +43 -0
  51. data/node_modules/govuk-frontend/govuk/components/fieldset/_fieldset.scss +2 -68
  52. data/node_modules/govuk-frontend/govuk/components/fieldset/_index.scss +64 -0
  53. data/node_modules/govuk-frontend/govuk/components/file-upload/_file-upload.scss +2 -81
  54. data/node_modules/govuk-frontend/govuk/components/file-upload/_index.scss +49 -0
  55. data/node_modules/govuk-frontend/govuk/components/footer/_footer.scss +2 -244
  56. data/node_modules/govuk-frontend/govuk/components/footer/_index.scss +241 -0
  57. data/node_modules/govuk-frontend/govuk/components/header/_header.scss +2 -318
  58. data/node_modules/govuk-frontend/govuk/components/header/_index.scss +331 -0
  59. data/node_modules/govuk-frontend/govuk/components/header/header.js +665 -316
  60. data/node_modules/govuk-frontend/govuk/components/hint/_hint.scss +2 -50
  61. data/node_modules/govuk-frontend/govuk/components/hint/_index.scss +44 -0
  62. data/node_modules/govuk-frontend/govuk/components/input/_index.scss +191 -0
  63. data/node_modules/govuk-frontend/govuk/components/input/_input.scss +2 -103
  64. data/node_modules/govuk-frontend/govuk/components/inset-text/_index.scss +24 -0
  65. data/node_modules/govuk-frontend/govuk/components/inset-text/_inset-text.scss +2 -28
  66. data/node_modules/govuk-frontend/govuk/components/label/_index.scss +41 -0
  67. data/node_modules/govuk-frontend/govuk/components/label/_label.scss +2 -45
  68. data/node_modules/govuk-frontend/govuk/components/notification-banner/_index.scss +89 -0
  69. data/node_modules/govuk-frontend/govuk/components/notification-banner/_notification-banner.scss +2 -0
  70. data/node_modules/govuk-frontend/govuk/components/notification-banner/notification-banner.js +61 -0
  71. data/node_modules/govuk-frontend/govuk/components/panel/_index.scss +44 -0
  72. data/node_modules/govuk-frontend/govuk/components/panel/_panel.scss +2 -44
  73. data/node_modules/govuk-frontend/govuk/components/phase-banner/_index.scss +27 -0
  74. data/node_modules/govuk-frontend/govuk/components/phase-banner/_phase-banner.scss +2 -31
  75. data/node_modules/govuk-frontend/govuk/components/radios/_index.scss +342 -0
  76. data/node_modules/govuk-frontend/govuk/components/radios/_radios.scss +2 -346
  77. data/node_modules/govuk-frontend/govuk/components/radios/radios.js +76 -28
  78. data/node_modules/govuk-frontend/govuk/components/select/_index.scss +49 -0
  79. data/node_modules/govuk-frontend/govuk/components/select/_select.scss +2 -57
  80. data/node_modules/govuk-frontend/govuk/components/skip-link/_index.scss +36 -0
  81. data/node_modules/govuk-frontend/govuk/components/skip-link/_skip-link.scss +2 -37
  82. data/node_modules/govuk-frontend/govuk/components/summary-list/_index.scss +145 -0
  83. data/node_modules/govuk-frontend/govuk/components/summary-list/_summary-list.scss +2 -157
  84. data/node_modules/govuk-frontend/govuk/components/table/_index.scss +71 -0
  85. data/node_modules/govuk-frontend/govuk/components/table/_table.scss +2 -54
  86. data/node_modules/govuk-frontend/govuk/components/tabs/_index.scss +130 -0
  87. data/node_modules/govuk-frontend/govuk/components/tabs/_tabs.scss +2 -142
  88. data/node_modules/govuk-frontend/govuk/components/tag/_index.scss +86 -0
  89. data/node_modules/govuk-frontend/govuk/components/tag/_tag.scss +2 -91
  90. data/node_modules/govuk-frontend/govuk/components/textarea/_index.scss +47 -0
  91. data/node_modules/govuk-frontend/govuk/components/textarea/_textarea.scss +2 -55
  92. data/node_modules/govuk-frontend/govuk/components/warning-text/_index.scss +66 -0
  93. data/node_modules/govuk-frontend/govuk/components/warning-text/_warning-text.scss +2 -60
  94. data/node_modules/govuk-frontend/govuk/core/_global-styles.scss +5 -3
  95. data/node_modules/govuk-frontend/govuk/core/_links.scss +13 -3
  96. data/node_modules/govuk-frontend/govuk/core/_lists.scss +17 -3
  97. data/node_modules/govuk-frontend/govuk/core/_section-break.scss +5 -3
  98. data/node_modules/govuk-frontend/govuk/core/_template.scss +5 -4
  99. data/node_modules/govuk-frontend/govuk/core/_typography.scss +5 -3
  100. data/node_modules/govuk-frontend/govuk/helpers/_clearfix.scss +1 -1
  101. data/node_modules/govuk-frontend/govuk/helpers/_colour.scss +1 -1
  102. data/node_modules/govuk-frontend/govuk/helpers/_device-pixels.scss +3 -3
  103. data/node_modules/govuk-frontend/govuk/helpers/_focused.scss +1 -1
  104. data/node_modules/govuk-frontend/govuk/helpers/_font-faces.scss +9 -11
  105. data/node_modules/govuk-frontend/govuk/helpers/_grid.scss +2 -1
  106. data/node_modules/govuk-frontend/govuk/helpers/_links.scss +246 -33
  107. data/node_modules/govuk-frontend/govuk/helpers/_media-queries.scss +2 -6
  108. data/node_modules/govuk-frontend/govuk/helpers/_shape-arrow.scss +1 -1
  109. data/node_modules/govuk-frontend/govuk/helpers/_spacing.scss +3 -2
  110. data/node_modules/govuk-frontend/govuk/helpers/_typography.scss +8 -7
  111. data/node_modules/govuk-frontend/govuk/helpers/_visually-hidden.scss +1 -1
  112. data/node_modules/govuk-frontend/govuk/objects/_all.scss +1 -0
  113. data/node_modules/govuk-frontend/govuk/objects/_button-group.scss +101 -0
  114. data/node_modules/govuk-frontend/govuk/objects/_form-group.scss +1 -4
  115. data/node_modules/govuk-frontend/govuk/objects/_grid.scss +3 -6
  116. data/node_modules/govuk-frontend/govuk/objects/_main-wrapper.scss +5 -4
  117. data/node_modules/govuk-frontend/govuk/objects/_width-container.scss +6 -4
  118. data/node_modules/govuk-frontend/govuk/overrides/_display.scss +6 -4
  119. data/node_modules/govuk-frontend/govuk/overrides/_spacing.scss +5 -3
  120. data/node_modules/govuk-frontend/govuk/overrides/_typography.scss +5 -3
  121. data/node_modules/govuk-frontend/govuk/overrides/_width.scss +6 -3
  122. data/node_modules/govuk-frontend/govuk/settings/_all.scss +2 -0
  123. data/node_modules/govuk-frontend/govuk/settings/_colours-applied.scss +11 -5
  124. data/node_modules/govuk-frontend/govuk/settings/_colours-organisations.scss +3 -0
  125. data/node_modules/govuk-frontend/govuk/settings/_colours-palette.scss +42 -35
  126. data/node_modules/govuk-frontend/govuk/settings/_compatibility.scss +0 -1
  127. data/node_modules/govuk-frontend/govuk/settings/_ie8.scss +1 -1
  128. data/node_modules/govuk-frontend/govuk/settings/_links.scss +62 -0
  129. data/node_modules/govuk-frontend/govuk/settings/_measurements.scss +4 -5
  130. data/node_modules/govuk-frontend/govuk/settings/_typography-font-families.scss +2 -2
  131. data/node_modules/govuk-frontend/govuk/settings/_typography-font.scss +14 -5
  132. data/node_modules/govuk-frontend/govuk/settings/_typography-responsive.scss +6 -2
  133. data/node_modules/govuk-frontend/govuk/tools/_compatibility.scss +1 -1
  134. data/node_modules/govuk-frontend/govuk/tools/_font-url.scss +1 -4
  135. data/node_modules/govuk-frontend/govuk/tools/_ie8.scss +1 -1
  136. data/node_modules/govuk-frontend/govuk/tools/_image-url.scss +1 -4
  137. data/node_modules/govuk-frontend/govuk/tools/_px-to-em.scss +1 -1
  138. data/node_modules/govuk-frontend/govuk/tools/_px-to-rem.scss +1 -1
  139. data/node_modules/govuk-frontend/govuk/utilities/_visually-hidden.scss +0 -1
  140. data/node_modules/govuk-frontend/govuk/vendor/_sass-mq.scss +0 -4
  141. data/package-lock.json +358 -288
  142. data/package.json +2 -2
  143. metadata +56 -4
data/package.json CHANGED
@@ -6,10 +6,10 @@
6
6
  "lint": "standard"
7
7
  },
8
8
  "dependencies": {
9
- "govuk-frontend": "^3.6.0"
9
+ "govuk-frontend": "^3.13.0"
10
10
  },
11
11
  "devDependencies": {
12
- "standard": "^14.3.0"
12
+ "standard": "^14.3.4"
13
13
  },
14
14
  "standard": {
15
15
  "globals": [
metadata CHANGED
@@ -1,15 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: govuk_tech_docs
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.2
4
+ version: 2.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Government Digital Service
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-03-25 00:00:00.000000000 Z
11
+ date: 2021-07-29 00:00:00.000000000 Z
12
12
  dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: autoprefixer-rails
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '10.2'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '10.2'
13
27
  - !ruby/object:Gem::Dependency
14
28
  name: chronic
15
29
  requirement: !ruby/object:Gem::Requirement
@@ -156,14 +170,14 @@ dependencies:
156
170
  requirements:
157
171
  - - "~>"
158
172
  - !ruby/object:Gem::Version
159
- version: 3.5.0
173
+ version: 3.5.1
160
174
  type: :runtime
161
175
  prerelease: false
162
176
  version_requirements: !ruby/object:Gem::Requirement
163
177
  requirements:
164
178
  - - "~>"
165
179
  - !ruby/object:Gem::Version
166
- version: 3.5.0
180
+ version: 3.5.1
167
181
  - !ruby/object:Gem::Dependency
168
182
  name: byebug
169
183
  requirement: !ruby/object:Gem::Requirement
@@ -295,6 +309,7 @@ files:
295
309
  - example/source/not-expired-page.html.md
296
310
  - example/source/pets.yml
297
311
  - example/source/prevent-index-page.html.md
312
+ - example/source/single-page-nav.html.md
298
313
  - example/source/stylesheets/print.css.scss
299
314
  - example/source/stylesheets/screen-old-ie.css.scss
300
315
  - example/source/stylesheets/screen.css.scss
@@ -374,6 +389,7 @@ files:
374
389
  - lib/source/layouts/core.erb
375
390
  - lib/source/layouts/layout.erb
376
391
  - lib/source/stylesheets/manifest.css
392
+ - node_modules/govuk-frontend/govuk/_base.scss
377
393
  - node_modules/govuk-frontend/govuk/all-ie8.scss
378
394
  - node_modules/govuk-frontend/govuk/all.js
379
395
  - node_modules/govuk-frontend/govuk/all.scss
@@ -394,42 +410,76 @@ files:
394
410
  - node_modules/govuk-frontend/govuk/common.js
395
411
  - node_modules/govuk-frontend/govuk/components/_all.scss
396
412
  - node_modules/govuk-frontend/govuk/components/accordion/_accordion.scss
413
+ - node_modules/govuk-frontend/govuk/components/accordion/_index.scss
397
414
  - node_modules/govuk-frontend/govuk/components/accordion/accordion.js
398
415
  - node_modules/govuk-frontend/govuk/components/back-link/_back-link.scss
416
+ - node_modules/govuk-frontend/govuk/components/back-link/_index.scss
399
417
  - node_modules/govuk-frontend/govuk/components/breadcrumbs/_breadcrumbs.scss
418
+ - node_modules/govuk-frontend/govuk/components/breadcrumbs/_index.scss
400
419
  - node_modules/govuk-frontend/govuk/components/button/_button.scss
420
+ - node_modules/govuk-frontend/govuk/components/button/_index.scss
401
421
  - node_modules/govuk-frontend/govuk/components/button/button.js
402
422
  - node_modules/govuk-frontend/govuk/components/character-count/_character-count.scss
423
+ - node_modules/govuk-frontend/govuk/components/character-count/_index.scss
403
424
  - node_modules/govuk-frontend/govuk/components/character-count/character-count.js
404
425
  - node_modules/govuk-frontend/govuk/components/checkboxes/_checkboxes.scss
426
+ - node_modules/govuk-frontend/govuk/components/checkboxes/_index.scss
405
427
  - node_modules/govuk-frontend/govuk/components/checkboxes/checkboxes.js
428
+ - node_modules/govuk-frontend/govuk/components/cookie-banner/_cookie-banner.scss
429
+ - node_modules/govuk-frontend/govuk/components/cookie-banner/_index.scss
406
430
  - node_modules/govuk-frontend/govuk/components/date-input/_date-input.scss
431
+ - node_modules/govuk-frontend/govuk/components/date-input/_index.scss
407
432
  - node_modules/govuk-frontend/govuk/components/details/_details.scss
433
+ - node_modules/govuk-frontend/govuk/components/details/_index.scss
408
434
  - node_modules/govuk-frontend/govuk/components/details/details.js
409
435
  - node_modules/govuk-frontend/govuk/components/error-message/_error-message.scss
436
+ - node_modules/govuk-frontend/govuk/components/error-message/_index.scss
410
437
  - node_modules/govuk-frontend/govuk/components/error-summary/_error-summary.scss
438
+ - node_modules/govuk-frontend/govuk/components/error-summary/_index.scss
411
439
  - node_modules/govuk-frontend/govuk/components/error-summary/error-summary.js
412
440
  - node_modules/govuk-frontend/govuk/components/fieldset/_fieldset.scss
441
+ - node_modules/govuk-frontend/govuk/components/fieldset/_index.scss
413
442
  - node_modules/govuk-frontend/govuk/components/file-upload/_file-upload.scss
443
+ - node_modules/govuk-frontend/govuk/components/file-upload/_index.scss
414
444
  - node_modules/govuk-frontend/govuk/components/footer/_footer.scss
445
+ - node_modules/govuk-frontend/govuk/components/footer/_index.scss
415
446
  - node_modules/govuk-frontend/govuk/components/header/_header.scss
447
+ - node_modules/govuk-frontend/govuk/components/header/_index.scss
416
448
  - node_modules/govuk-frontend/govuk/components/header/header.js
417
449
  - node_modules/govuk-frontend/govuk/components/hint/_hint.scss
450
+ - node_modules/govuk-frontend/govuk/components/hint/_index.scss
451
+ - node_modules/govuk-frontend/govuk/components/input/_index.scss
418
452
  - node_modules/govuk-frontend/govuk/components/input/_input.scss
453
+ - node_modules/govuk-frontend/govuk/components/inset-text/_index.scss
419
454
  - node_modules/govuk-frontend/govuk/components/inset-text/_inset-text.scss
455
+ - node_modules/govuk-frontend/govuk/components/label/_index.scss
420
456
  - node_modules/govuk-frontend/govuk/components/label/_label.scss
457
+ - node_modules/govuk-frontend/govuk/components/notification-banner/_index.scss
458
+ - node_modules/govuk-frontend/govuk/components/notification-banner/_notification-banner.scss
459
+ - node_modules/govuk-frontend/govuk/components/notification-banner/notification-banner.js
460
+ - node_modules/govuk-frontend/govuk/components/panel/_index.scss
421
461
  - node_modules/govuk-frontend/govuk/components/panel/_panel.scss
462
+ - node_modules/govuk-frontend/govuk/components/phase-banner/_index.scss
422
463
  - node_modules/govuk-frontend/govuk/components/phase-banner/_phase-banner.scss
464
+ - node_modules/govuk-frontend/govuk/components/radios/_index.scss
423
465
  - node_modules/govuk-frontend/govuk/components/radios/_radios.scss
424
466
  - node_modules/govuk-frontend/govuk/components/radios/radios.js
467
+ - node_modules/govuk-frontend/govuk/components/select/_index.scss
425
468
  - node_modules/govuk-frontend/govuk/components/select/_select.scss
469
+ - node_modules/govuk-frontend/govuk/components/skip-link/_index.scss
426
470
  - node_modules/govuk-frontend/govuk/components/skip-link/_skip-link.scss
471
+ - node_modules/govuk-frontend/govuk/components/summary-list/_index.scss
427
472
  - node_modules/govuk-frontend/govuk/components/summary-list/_summary-list.scss
473
+ - node_modules/govuk-frontend/govuk/components/table/_index.scss
428
474
  - node_modules/govuk-frontend/govuk/components/table/_table.scss
475
+ - node_modules/govuk-frontend/govuk/components/tabs/_index.scss
429
476
  - node_modules/govuk-frontend/govuk/components/tabs/_tabs.scss
430
477
  - node_modules/govuk-frontend/govuk/components/tabs/tabs.js
478
+ - node_modules/govuk-frontend/govuk/components/tag/_index.scss
431
479
  - node_modules/govuk-frontend/govuk/components/tag/_tag.scss
480
+ - node_modules/govuk-frontend/govuk/components/textarea/_index.scss
432
481
  - node_modules/govuk-frontend/govuk/components/textarea/_textarea.scss
482
+ - node_modules/govuk-frontend/govuk/components/warning-text/_index.scss
433
483
  - node_modules/govuk-frontend/govuk/components/warning-text/_warning-text.scss
434
484
  - node_modules/govuk-frontend/govuk/core/_all.scss
435
485
  - node_modules/govuk-frontend/govuk/core/_global-styles.scss
@@ -452,6 +502,7 @@ files:
452
502
  - node_modules/govuk-frontend/govuk/helpers/_typography.scss
453
503
  - node_modules/govuk-frontend/govuk/helpers/_visually-hidden.scss
454
504
  - node_modules/govuk-frontend/govuk/objects/_all.scss
505
+ - node_modules/govuk-frontend/govuk/objects/_button-group.scss
455
506
  - node_modules/govuk-frontend/govuk/objects/_form-group.scss
456
507
  - node_modules/govuk-frontend/govuk/objects/_grid.scss
457
508
  - node_modules/govuk-frontend/govuk/objects/_main-wrapper.scss
@@ -469,6 +520,7 @@ files:
469
520
  - node_modules/govuk-frontend/govuk/settings/_compatibility.scss
470
521
  - node_modules/govuk-frontend/govuk/settings/_global-styles.scss
471
522
  - node_modules/govuk-frontend/govuk/settings/_ie8.scss
523
+ - node_modules/govuk-frontend/govuk/settings/_links.scss
472
524
  - node_modules/govuk-frontend/govuk/settings/_measurements.scss
473
525
  - node_modules/govuk-frontend/govuk/settings/_media-queries.scss
474
526
  - node_modules/govuk-frontend/govuk/settings/_spacing.scss