govuk_tech_docs 3.2.0 → 3.2.1
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 +6 -0
- data/example/source/code.html.md +3 -26
- data/lib/govuk_tech_docs/tech_docs_html_renderer.rb +3 -3
- data/lib/govuk_tech_docs/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 79d38e9facb7df0c0a08151b51ce448759efa6e61bcf8ec0c5e6efb0b4e92332
|
4
|
+
data.tar.gz: 0a47d960ef878bf334104c7f0ff3e3e07e0411e3b12d061dc72ca4c474c988a1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8a6e9076fc8b8a6ade8cca61c139256b6f8a455e851c64e68132ee25e9ec0fe09876e3cfb1bf813297779d376e91ac0f1abd49cd30319944249c6fff4117c902
|
7
|
+
data.tar.gz: 98748cf227f452712eb2ffcd780d89a7b56b9beed437f0a775adb1eba81a0acfca7de59c89db7437484a8f8e9e63a1e71c513475f1f55affc8ff48b5da2fe64a
|
data/CHANGELOG.md
CHANGED
data/example/source/code.html.md
CHANGED
@@ -10,32 +10,9 @@ A paragraph with a `code` element within it.
|
|
10
10
|
|
11
11
|
An example of a table with a `code` element within it.
|
12
12
|
|
13
|
-
|
14
|
-
|
15
|
-
|
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>
|
13
|
+
| httpResult | Message | How to fix |
|
14
|
+
| - | - | - |
|
15
|
+
| `400` | `[{`<br>`"error": "BadRequestError",`<br>`"message": "Can't send to this recipient using a team-only API key"`<br>`]}` | Use the correct type of API key |
|
39
16
|
|
40
17
|
An example of a code block with a long line length
|
41
18
|
|
@@ -69,7 +69,7 @@ module GovukTechDocs
|
|
69
69
|
first_child.content = leading_text.sub(/# */, "")
|
70
70
|
end
|
71
71
|
|
72
|
-
tr = Nokogiri::XML::Node.new "tr", fragment
|
72
|
+
tr = Nokogiri::XML::Node.new "tr", fragment.document
|
73
73
|
tr.children = fragment.children
|
74
74
|
|
75
75
|
tr.to_html
|
@@ -95,9 +95,9 @@ module GovukTechDocs
|
|
95
95
|
# be `defined?`, so we can jump straight to rendering HTML ourselves.
|
96
96
|
|
97
97
|
fragment = Nokogiri::HTML::DocumentFragment.parse("")
|
98
|
-
pre = Nokogiri::XML::Node.new "pre", fragment
|
98
|
+
pre = Nokogiri::XML::Node.new "pre", fragment.document
|
99
99
|
pre["tabindex"] = "0"
|
100
|
-
code = Nokogiri::XML::Node.new "code", fragment
|
100
|
+
code = Nokogiri::XML::Node.new "code", fragment.document
|
101
101
|
code["class"] = lang
|
102
102
|
code.content = text
|
103
103
|
pre.add_child code
|
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.2.
|
4
|
+
version: 3.2.1
|
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: 2022-03
|
11
|
+
date: 2022-05-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: autoprefixer-rails
|
@@ -562,7 +562,7 @@ homepage: https://github.com/alphagov/tech-docs-gem
|
|
562
562
|
licenses:
|
563
563
|
- MIT
|
564
564
|
metadata: {}
|
565
|
-
post_install_message:
|
565
|
+
post_install_message:
|
566
566
|
rdoc_options: []
|
567
567
|
require_paths:
|
568
568
|
- lib
|
@@ -578,7 +578,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
578
578
|
version: '0'
|
579
579
|
requirements: []
|
580
580
|
rubygems_version: 3.1.4
|
581
|
-
signing_key:
|
581
|
+
signing_key:
|
582
582
|
specification_version: 4
|
583
583
|
summary: Gem to distribute the GOV.UK Tech Docs Template
|
584
584
|
test_files: []
|