govuk_tech_docs 2.0.10 → 2.0.11
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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +9 -0
- data/example/source/code.html.md +30 -1
- data/lib/assets/stylesheets/_core.scss +1 -0
- data/lib/assets/stylesheets/modules/_header.scss +16 -0
- data/lib/assets/stylesheets/modules/_search.scss +1 -1
- data/lib/assets/stylesheets/modules/_technical-documentation.scss +3 -3
- data/lib/assets/stylesheets/modules/_toc.scss +2 -2
- data/lib/govuk_tech_docs/version.rb +1 -1
- data/lib/source/layouts/_header.erb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '085237b7227769188a60eeaf92b6dc4b8c46a2bb0c94f50daff3da0725dbe162'
|
4
|
+
data.tar.gz: 7bdf01e0d6901791ca227d26a98ef1845afb713040aba2ff463c0bb1b509bddb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5a072be727fceaaab66ff8f78c70ab0a8901caf284a112761750c1d2668195d0d83c616b4bc75ecb89d600a37ec3c35309d255c3bd31b5641825067f71d04bf2
|
7
|
+
data.tar.gz: 3e810980b8f5c57a850e3e5c7c841981e3bcf579056c88cdafaceab0b3c540a37050efb54bb6f14c1c39b6a4e01667738f17a6cdb7f152ba41fd09f54bde69fc
|
data/CHANGELOG.md
CHANGED
@@ -2,8 +2,17 @@
|
|
2
2
|
|
3
3
|
## Unreleased
|
4
4
|
|
5
|
+
## 2.0.11
|
6
|
+
|
7
|
+
### Fixes
|
8
|
+
|
9
|
+
- [Pull request #162: Fix line height spacing for multiline code elements](https://github.com/alphagov/tech-docs-gem/pull/162)
|
10
|
+
- [Pull request #165: Update header alignment to match layout](https://github.com/alphagov/tech-docs-gem/pull/165)
|
11
|
+
|
5
12
|
## 2.0.10
|
6
13
|
|
14
|
+
### Fixes
|
15
|
+
|
7
16
|
- [Pull request #160: Make sure IDs on collapsible navigation are unique](https://github.com/alphagov/tech-docs-gem/pull/160)
|
8
17
|
|
9
18
|
## 2.0.9
|
data/example/source/code.html.md
CHANGED
@@ -8,6 +8,35 @@ A paragraph with a `code` element within it.
|
|
8
8
|
|
9
9
|
<a href="#"><code>code element within a link</code></a>
|
10
10
|
|
11
|
+
An example of a table with a `code` element within it.
|
12
|
+
|
13
|
+
<div class="table-container">
|
14
|
+
<table>
|
15
|
+
<thead>
|
16
|
+
<tr>
|
17
|
+
<th style="text-align:left">httpResult</th>
|
18
|
+
<th style="text-align:left">Message</th>
|
19
|
+
<th style="text-align:left">How to fix</th>
|
20
|
+
</tr>
|
21
|
+
</thead>
|
22
|
+
<tbody>
|
23
|
+
<tr>
|
24
|
+
<td style="text-align:left"><code>400</code></td>
|
25
|
+
<td style="text-align:left">
|
26
|
+
<code>[{</code>
|
27
|
+
<br />
|
28
|
+
<code>"error": "BadRequestError",</code>
|
29
|
+
<br />
|
30
|
+
<code>"message": "Can't send to this recipient using a team-only API key"</code>
|
31
|
+
<br />
|
32
|
+
<code>]}</code>
|
33
|
+
</td>
|
34
|
+
<td style="text-align:left">Use the correct type of API key</td>
|
35
|
+
</tr>
|
36
|
+
</tbody>
|
37
|
+
</table>
|
38
|
+
</div>
|
39
|
+
|
11
40
|
An example of a code block with a long line length
|
12
41
|
|
13
42
|
```ruby
|
@@ -32,4 +61,4 @@ An example of a code block with a short length
|
|
32
61
|
```ruby
|
33
62
|
RSpec.describe ContentItem do
|
34
63
|
end
|
35
|
-
```
|
64
|
+
```
|
@@ -0,0 +1,16 @@
|
|
1
|
+
.app-header {
|
2
|
+
// Adjust the padding on the header container so that it matches the custom sidebar.
|
3
|
+
.govuk-header__container--full-width {
|
4
|
+
@include govuk-responsive-padding(6, "left");
|
5
|
+
@include govuk-responsive-padding(6, "right");
|
6
|
+
}
|
7
|
+
// Give the product name in the header more space so it does not wrap early on smaller screens.
|
8
|
+
@include govuk-media-query($from: desktop) {
|
9
|
+
.govuk-header__logo {
|
10
|
+
width: 45%;
|
11
|
+
}
|
12
|
+
.govuk-header__content {
|
13
|
+
width: 55%;
|
14
|
+
}
|
15
|
+
}
|
16
|
+
}
|
@@ -8,9 +8,7 @@
|
|
8
8
|
color: $govuk-text-colour;
|
9
9
|
|
10
10
|
@include govuk-media-query(tablet) {
|
11
|
-
|
12
|
-
// an anchor link (see _anchored-heading.scss) on a heading and the left-hand pane.
|
13
|
-
margin: 0 govuk-spacing(6) (govuk-spacing(6) + 2px);
|
11
|
+
margin: 0 govuk-spacing(6) govuk-spacing(6);
|
14
12
|
}
|
15
13
|
|
16
14
|
.has-search-results-open & {
|
@@ -141,6 +139,8 @@
|
|
141
139
|
font-family: monaco, Consolas, "Lucida Console", monospace;
|
142
140
|
font-size: 15px;
|
143
141
|
font-size: 0.9375rem;
|
142
|
+
// Match the line-height outside of tables
|
143
|
+
line-height: 1.4;
|
144
144
|
color: $code-0E;
|
145
145
|
|
146
146
|
@include govuk-media-query(tablet) {
|
@@ -18,7 +18,7 @@
|
|
18
18
|
a:link, a:visited {
|
19
19
|
display: block;
|
20
20
|
position: relative;
|
21
|
-
padding: 8px govuk-spacing(6) 8px govuk-spacing(
|
21
|
+
padding: 8px govuk-spacing(6) 8px govuk-spacing(2);
|
22
22
|
margin: 0 -1 * govuk-spacing(3);
|
23
23
|
border-left: 5px solid transparent;
|
24
24
|
text-decoration: none;
|
@@ -93,7 +93,7 @@
|
|
93
93
|
|
94
94
|
@include govuk-media-query(tablet) {
|
95
95
|
.toc {
|
96
|
-
padding:
|
96
|
+
padding: govuk-spacing(5) govuk-spacing(6);
|
97
97
|
}
|
98
98
|
|
99
99
|
// Prevent the fixedsticky spacer from appearing if the browser is resized
|
@@ -1,4 +1,4 @@
|
|
1
|
-
<header class="govuk-header " role="banner" data-module="govuk-header">
|
1
|
+
<header class="govuk-header app-header" role="banner" data-module="govuk-header">
|
2
2
|
<div class="govuk-header__container govuk-header__container--full-width">
|
3
3
|
<div class="govuk-header__logo">
|
4
4
|
<% if config[:tech_docs][:service_link] %>
|
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.0.
|
4
|
+
version: 2.0.11
|
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: 2019-11-
|
11
|
+
date: 2019-11-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -392,6 +392,7 @@ files:
|
|
392
392
|
- lib/assets/stylesheets/modules/_collapsible.scss
|
393
393
|
- lib/assets/stylesheets/modules/_contribution-banner.scss
|
394
394
|
- lib/assets/stylesheets/modules/_footer.scss
|
395
|
+
- lib/assets/stylesheets/modules/_header.scss
|
395
396
|
- lib/assets/stylesheets/modules/_page-review.scss
|
396
397
|
- lib/assets/stylesheets/modules/_search.scss
|
397
398
|
- lib/assets/stylesheets/modules/_technical-documentation.scss
|