govuk_tech_docs 2.3.0 → 2.4.3

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 (40) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +1 -0
  3. data/.nvmrc +1 -1
  4. data/CHANGELOG.md +25 -0
  5. data/README.md +15 -1
  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 +1 -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/javascripts/_vendor/jquery.js +2 -5
  12. data/lib/assets/javascripts/_vendor/lodash.js +5 -3
  13. data/lib/assets/stylesheets/modules/_search.scss +1 -10
  14. data/lib/assets/stylesheets/modules/_technical-documentation.scss +1 -1
  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/govuk_tech_docs.rb +1 -1
  21. data/lib/source/layouts/_header.erb +1 -2
  22. data/lib/source/layouts/layout.erb +3 -1
  23. data/node_modules/govuk-frontend/govuk/all.js +61 -3
  24. data/node_modules/govuk-frontend/govuk/components/breadcrumbs/_index.scss +1 -0
  25. data/node_modules/govuk-frontend/govuk/components/button/_index.scss +10 -4
  26. data/node_modules/govuk-frontend/govuk/components/checkboxes/_index.scss +49 -34
  27. data/node_modules/govuk-frontend/govuk/components/checkboxes/checkboxes.js +61 -3
  28. data/node_modules/govuk-frontend/govuk/components/footer/_index.scss +22 -10
  29. data/node_modules/govuk-frontend/govuk/components/header/_index.scss +11 -7
  30. data/node_modules/govuk-frontend/govuk/components/input/_index.scss +4 -0
  31. data/node_modules/govuk-frontend/govuk/components/skip-link/_index.scss +2 -0
  32. data/node_modules/govuk-frontend/govuk/components/warning-text/_index.scss +0 -1
  33. data/node_modules/govuk-frontend/govuk/core/_template.scss +0 -1
  34. data/node_modules/govuk-frontend/govuk/helpers/_links.scss +6 -0
  35. data/node_modules/govuk-frontend/govuk/objects/_button-group.scss +9 -2
  36. data/node_modules/govuk-frontend/govuk/objects/_width-container.scss +4 -0
  37. data/package-lock.json +3 -3
  38. data/package.json +1 -1
  39. metadata +5 -5
  40. data/CONTRIBUTING.md +0 -12
@@ -28,7 +28,9 @@
28
28
 
29
29
  // Respect 'display cutout' safe area (avoids notches and rounded corners)
30
30
  @supports (margin: unquote("max(calc(0px))")) {
31
+ $gutter-safe-area-right: -webkit-calc(#{$govuk-gutter-half} + env(safe-area-inset-right));
31
32
  $gutter-safe-area-right: calc(#{$govuk-gutter-half} + env(safe-area-inset-right));
33
+ $gutter-safe-area-left: -webkit-calc(#{$govuk-gutter-half} + env(safe-area-inset-left));
32
34
  $gutter-safe-area-left: calc(#{$govuk-gutter-half} + env(safe-area-inset-left));
33
35
 
34
36
  // Use max() to pick largest margin, default or with safe area
@@ -44,7 +46,9 @@
44
46
 
45
47
  // Respect 'display cutout' safe area (avoids notches and rounded corners)
46
48
  @supports (margin: unquote("max(calc(0px))")) {
49
+ $gutter-safe-area-right: -webkit-calc(#{$govuk-gutter-half} + env(safe-area-inset-right));
47
50
  $gutter-safe-area-right: calc(#{$govuk-gutter-half} + env(safe-area-inset-right));
51
+ $gutter-safe-area-left: -webkit-calc(#{$govuk-gutter-half} + env(safe-area-inset-left));
48
52
  $gutter-safe-area-left: calc(#{$govuk-gutter-half} + env(safe-area-inset-left));
49
53
 
50
54
  // Use max() to pick largest margin, default or with safe area
data/package-lock.json CHANGED
@@ -808,9 +808,9 @@
808
808
  }
809
809
  },
810
810
  "govuk-frontend": {
811
- "version": "3.12.0",
812
- "resolved": "https://registry.npmjs.org/govuk-frontend/-/govuk-frontend-3.12.0.tgz",
813
- "integrity": "sha512-+mM8BqEUqsBVSV/ud0dEhE8OmMdhkK53eEUp5YyPN+y3mwcdRnwwP2A2B5qFdFi6E6j/2AYuCG8l5kXD+JXNxA=="
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=="
814
814
  },
815
815
  "graceful-fs": {
816
816
  "version": "4.2.6",
data/package.json CHANGED
@@ -6,7 +6,7 @@
6
6
  "lint": "standard"
7
7
  },
8
8
  "dependencies": {
9
- "govuk-frontend": "^3.12.0"
9
+ "govuk-frontend": "^3.13.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.3.0
4
+ version: 2.4.3
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-05-18 00:00:00.000000000 Z
11
+ date: 2021-09-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: autoprefixer-rails
@@ -170,14 +170,14 @@ dependencies:
170
170
  requirements:
171
171
  - - "~>"
172
172
  - !ruby/object:Gem::Version
173
- version: 3.5.0
173
+ version: 3.5.1
174
174
  type: :runtime
175
175
  prerelease: false
176
176
  version_requirements: !ruby/object:Gem::Requirement
177
177
  requirements:
178
178
  - - "~>"
179
179
  - !ruby/object:Gem::Version
180
- version: 3.5.0
180
+ version: 3.5.1
181
181
  - !ruby/object:Gem::Dependency
182
182
  name: byebug
183
183
  requirement: !ruby/object:Gem::Requirement
@@ -279,7 +279,6 @@ files:
279
279
  - ".ruby-version"
280
280
  - ".travis.yml"
281
281
  - CHANGELOG.md
282
- - CONTRIBUTING.md
283
282
  - Gemfile
284
283
  - LICENCE
285
284
  - README.md
@@ -309,6 +308,7 @@ files:
309
308
  - example/source/not-expired-page.html.md
310
309
  - example/source/pets.yml
311
310
  - example/source/prevent-index-page.html.md
311
+ - example/source/single-page-nav.html.md
312
312
  - example/source/stylesheets/print.css.scss
313
313
  - example/source/stylesheets/screen-old-ie.css.scss
314
314
  - example/source/stylesheets/screen.css.scss
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