govuk_tech_docs 1.0.0 → 1.1.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +15 -2
- data/docs/configuration.md +94 -0
- data/example/config/tech-docs.yml +2 -0
- data/govuk_tech_docs.gemspec +2 -2
- data/lib/govuk_tech_docs/version.rb +1 -1
- data/lib/source/layouts/core.erb +4 -0
- metadata +5 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 12cf51405932e8a1b1963c5d8141de6c474fd1e0
|
|
4
|
+
data.tar.gz: 4c71d9bcfe45396525f7acc05d7d157c15f483be
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ce6a2aa3153afe322cd76568389fac64338e5772e45cb2459230b4b2bc2021fdcf6af8237d46a1a4030cb72a357c11020e075c866da5c14a58d2b55fb4c623a6
|
|
7
|
+
data.tar.gz: 573e40e4ccfd26d6f48e73458db1d26581cdcb0d65fadfd114680a2c13a82fd5edc233203ead0608cb534d1232f6253cc01c23095cdac33c3a885dbc1ef499dc
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.1.0
|
|
4
|
+
|
|
5
|
+
You can now specify `google_site_verification` in tech-docs.yml. You can use
|
|
6
|
+
this to verify your site in Google Webmaster tools.
|
|
7
|
+
|
|
8
|
+
https://github.com/alphagov/tech-docs-gem/blob/master/docs/configuration.md#google_site_verification
|
|
9
|
+
|
|
3
10
|
## 1.0.0
|
|
4
11
|
|
|
5
12
|
The first release of the template as a gem. Most CSS, JS, images and layouts are
|
|
@@ -26,11 +33,17 @@ $ie-version: 8;
|
|
|
26
33
|
|
|
27
34
|
echo "require 'govuk_tech_docs'
|
|
28
35
|
|
|
29
|
-
|
|
36
|
+
GovukTechDocs.configure(self)" > config.rb
|
|
30
37
|
|
|
31
38
|
echo "source 'https://rubygems.org'
|
|
32
39
|
|
|
33
|
-
|
|
40
|
+
# For faster file watcher updates on Windows:
|
|
41
|
+
gem 'wdm', '~> 0.1.0', platforms: [:mswin, :mingw]
|
|
42
|
+
|
|
43
|
+
# Windows does not come with time zone data
|
|
44
|
+
gem 'tzinfo-data', platforms: [:mswin, :mingw, :jruby]
|
|
45
|
+
|
|
46
|
+
gem 'govuk_tech_docs'" > Gemfile
|
|
34
47
|
|
|
35
48
|
bundle install
|
|
36
49
|
```
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
# Configuration
|
|
2
|
+
|
|
3
|
+
You can configure the site using `config/tech-docs.yml`. [See the PaaS tech docs for an example](https://github.com/alphagov/paas-tech-docs/blob/master/config/tech-docs.yml).
|
|
4
|
+
|
|
5
|
+
These are all the available options:
|
|
6
|
+
|
|
7
|
+
## `host`
|
|
8
|
+
|
|
9
|
+
Host to use for canonical URL generation (without trailing slash).
|
|
10
|
+
|
|
11
|
+
Example:
|
|
12
|
+
|
|
13
|
+
```yaml
|
|
14
|
+
host: https://docs.cloud.service.gov.uk
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
## `show_govuk_logo`
|
|
18
|
+
|
|
19
|
+
Whether to show the GOV.UK crown logo.
|
|
20
|
+
|
|
21
|
+
default: `true`
|
|
22
|
+
|
|
23
|
+
```yaml
|
|
24
|
+
show_govuk_logo: true
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
## `service_name`
|
|
28
|
+
|
|
29
|
+
The service name in the header.
|
|
30
|
+
|
|
31
|
+
Example:
|
|
32
|
+
|
|
33
|
+
```yaml
|
|
34
|
+
service_name: "Platform as a Service"
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
## `service_link`
|
|
38
|
+
|
|
39
|
+
What the service name in the header links to.
|
|
40
|
+
|
|
41
|
+
default: '/'
|
|
42
|
+
|
|
43
|
+
```yaml
|
|
44
|
+
service_link: "/"
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
## `phase`
|
|
48
|
+
|
|
49
|
+
```yaml
|
|
50
|
+
phase: "Beta"
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
## `header_links`
|
|
54
|
+
|
|
55
|
+
Right hand side navigation.
|
|
56
|
+
|
|
57
|
+
Example:
|
|
58
|
+
|
|
59
|
+
```yaml
|
|
60
|
+
header_links:
|
|
61
|
+
Documentation: /
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
## `prevent_indexing`
|
|
65
|
+
|
|
66
|
+
Prevent robots from indexing (e.g. whilst in development)
|
|
67
|
+
|
|
68
|
+
```yaml
|
|
69
|
+
prevent_indexing: false
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
## `ga_tracking_id`
|
|
73
|
+
|
|
74
|
+
Tracking ID from Google Analytics
|
|
75
|
+
|
|
76
|
+
```yaml
|
|
77
|
+
ga_tracking_id: UA-XXXX-Y
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
## `max_toc_heading_level`
|
|
81
|
+
|
|
82
|
+
Table of contents depth – how many levels to include in the table of contents. If your ToC is too long, reduce this number and we'll only show higher-level headings.
|
|
83
|
+
|
|
84
|
+
```yaml
|
|
85
|
+
max_toc_heading_level: 6
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
## `google_site_verification`
|
|
89
|
+
|
|
90
|
+
Adds a [Google Site Verification code](https://support.google.com/webmasters/answer/35179?hl=en) to the meta tags.
|
|
91
|
+
|
|
92
|
+
```yaml
|
|
93
|
+
google_site_verification: TvDTuyvdstyusadrCSDrctyd
|
|
94
|
+
```
|
data/govuk_tech_docs.gemspec
CHANGED
|
@@ -10,8 +10,8 @@ Gem::Specification.new do |spec|
|
|
|
10
10
|
spec.email = ["govuk-dev@digital.cabinet-office.gov.uk"]
|
|
11
11
|
|
|
12
12
|
spec.summary = %q{Gem to distribute the GOV.UK Tech Docs Template}
|
|
13
|
-
spec.description = %q{Gem to distribute the GOV.UK Tech Docs Template. See https://github.com/alphagov/
|
|
14
|
-
spec.homepage = "https://github.com/alphagov/
|
|
13
|
+
spec.description = %q{Gem to distribute the GOV.UK Tech Docs Template. See https://github.com/alphagov/tech-docs-gem for the project.}
|
|
14
|
+
spec.homepage = "https://github.com/alphagov/tech-docs-gem"
|
|
15
15
|
spec.license = "MIT"
|
|
16
16
|
|
|
17
17
|
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
data/lib/source/layouts/core.erb
CHANGED
|
@@ -16,6 +16,10 @@
|
|
|
16
16
|
|
|
17
17
|
<link rel="canonical" href="<%= config[:tech_docs][:host] %><%= current_page.url %>">
|
|
18
18
|
|
|
19
|
+
<% if config[:tech_docs][:google_site_verification] %>
|
|
20
|
+
<meta name="google-site-verification" content="<%= config[:tech_docs][:google_site_verification] %>" />
|
|
21
|
+
<% end %>
|
|
22
|
+
|
|
19
23
|
<%= stylesheet_link_tag :print, media: 'print' %>
|
|
20
24
|
<%= javascript_include_tag :application %>
|
|
21
25
|
</head>
|
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: 1.
|
|
4
|
+
version: 1.1.0
|
|
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: 2018-03-
|
|
11
|
+
date: 2018-03-08 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: middleman
|
|
@@ -192,7 +192,7 @@ dependencies:
|
|
|
192
192
|
- - "~>"
|
|
193
193
|
- !ruby/object:Gem::Version
|
|
194
194
|
version: 3.7.0
|
|
195
|
-
description: Gem to distribute the GOV.UK Tech Docs Template. See https://github.com/alphagov/
|
|
195
|
+
description: Gem to distribute the GOV.UK Tech Docs Template. See https://github.com/alphagov/tech-docs-gem
|
|
196
196
|
for the project.
|
|
197
197
|
email:
|
|
198
198
|
- govuk-dev@digital.cabinet-office.gov.uk
|
|
@@ -209,6 +209,7 @@ files:
|
|
|
209
209
|
- LICENSE
|
|
210
210
|
- README.md
|
|
211
211
|
- Rakefile
|
|
212
|
+
- docs/configuration.md
|
|
212
213
|
- example/.ruby-version
|
|
213
214
|
- example/Gemfile
|
|
214
215
|
- example/config.rb
|
|
@@ -296,7 +297,7 @@ files:
|
|
|
296
297
|
- lib/source/layouts/_header.erb
|
|
297
298
|
- lib/source/layouts/core.erb
|
|
298
299
|
- lib/source/layouts/layout.erb
|
|
299
|
-
homepage: https://github.com/alphagov/
|
|
300
|
+
homepage: https://github.com/alphagov/tech-docs-gem
|
|
300
301
|
licenses:
|
|
301
302
|
- MIT
|
|
302
303
|
metadata: {}
|