This repository was archived by the owner on Jun 10, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathindex.html.md.erb
More file actions
241 lines (152 loc) · 4.77 KB
/
Copy pathindex.html.md.erb
File metadata and controls
241 lines (152 loc) · 4.77 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
---
title: "Configuration options"
weight: 35
last_reviewed_on: 2019-10-03
review_in: 1 day
---
# Configuration options
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).
These are all the available options:
## `ga_tracking_id`
Tracking ID from Google Analytics
```yaml
ga_tracking_id: UA-XXXX-Y
```
## `gtm_id`
Google Tag Manager
```yaml
gtm_id: GTM-XXXX
```
## `github_repo`
Your repository. Required if [show_contribution_banner](/amend_project/configuration/#show-contribution-banner) is true.
```yaml
github_repo: alphagov/example-repo
```
## `github_branch`
Your github branch name. Useful if your default branch is not named master.
```yaml
github_branch: source
```
## `google_site_verification`
Adds a [Google Site Verification code](https://support.google.com/webmasters/answer/35179?hl=en) to the meta tags.
```yaml
google_site_verification: TvDTuyvdstyusadrCSDrctyd
```
## `enable_search`
Enables search functionality. This indexes pages only and is not recommended for single-page sites.
```yaml
enable_search: true
```
## `header_links`
Right hand side navigation.
Example:
```yaml
header_links:
Documentation: /
```
## `footer_links`
Links to show in footer.
Example:
```yaml
footer_links:
Accessibility: /accessibility
```
## `host`
Host to use for canonical URL generation (without trailing slash).
Example:
```yaml
host: https://docs.cloud.service.gov.uk
```
## `collapsible_nav`
Enable collapsible navigation in the sidebar. Defaults to false;
```yaml
collapsible_nav: true
```
## `multipage_nav`
Enable multipage navigation in the sidebar. Defaults to false;
```yaml
multipage_nav: true
```
## `max_toc_heading_level`
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.
```yaml
max_toc_heading_level: 6
```
## `phase`
```yaml
phase: "Beta"
```
## `prevent_indexing`
Prevent robots from indexing (e.g. whilst in development)
```yaml
prevent_indexing: false
```
## `redirects`
A list of redirects, from old to new location. Use this to set up external
redirects or if [setting `old_paths` in the frontmatter](/frontmatter.html#old-paths) doesn't work.
```yaml
redirects:
/old-page.html: https://example.org/something-else.html
/another/old-page.html: /another/new-page.html
```
## `service_name`
The service name in the header.
Example:
```yaml
service_name: "Platform as a Service"
```
## `full_service_name`
The full service name (maybe with GOV.UK)
Example:
```yaml
full_service_name: "GOV.UK Pay"
```
## `service_link`
What the service name in the header links to.
default: '/'
```yaml
service_link: "/"
```
## `show_contribution_banner`
Show a block at the bottom of the page that links to the page source, so readers
can easily contribute back to the documentation. If turned on [github_repo](/amend_project/configuration/#github-repo) is
required.
Off by default.
```yaml
show_contribution_banner: true
github_repo: alphagov/example-repo
```
## `source_urls`
Customise the URLs that the contribution banner links to. Only useful if
[show_contribution_banner](/amend_project/configuration/#show-contribution-banner) is turned on. By default, "Report issue" links
to raising a GitHub issue but by modifying the `report_issue_url` it can link to an email address
or another page.
```yaml
source_urls:
report_issue_url: mailto:support@example.com
```
## `show_govuk_logo`
Whether to show the GOV.UK crown logo.
default: `true`
```yaml
show_govuk_logo: true
```
## `api_path`
Define a path to an Open API V3 spec file. This can be a relative file path or a URI to a raw file.
```yaml
api_path: ./source/pets.yml
```
## `owner_slack_workspace` and `default_owner_slack`
These attributes are used to specify the owner of a page. See the separate
[documentation for page expiry][expiry] for more details.
## `show_expiry`
Decides whether or not to show a red banner when the page needs to be reviewed.
If not present or set to `true`, the red banner will appear when the page needs to be reviewed. This is the default behaviour.
If set to `false`, the red banner will not appear when the page needs to be reviewed.
See the separate [documentation for page expiry][expiry] for more details.
## `show_review_banner`
Decides whether or not to display the page review banner, regardless of whether the page needs to be reviewed or not.
If not present or set to `true`, the banner will be displayed on the page. This is the default behaviour.
If set to `false`, the banner will not be displayed.
See the separate [documentation for page expiry][expiry] for more details.
[expiry]: /review_project/page-expiry/#page-expiry-and-review