You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: source/amend_project/configuration/index.html.md.erb
+224-1Lines changed: 224 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -7,4 +7,227 @@ review_in: 1 day
7
7
8
8
# Configuration options
9
9
10
-
<%= gem_docs 'configuration.md' %>
10
+
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).
11
+
12
+
These are all the available options:
13
+
14
+
## `ga_tracking_id`
15
+
16
+
Tracking ID from Google Analytics
17
+
18
+
```yaml
19
+
ga_tracking_id: UA-XXXX-Y
20
+
```
21
+
22
+
## `github_repo`
23
+
24
+
Your repository. Required if [show_contribution_banner](/amend_project/configuration/#show-contribution-banner) is true.
25
+
26
+
```yaml
27
+
github_repo: alphagov/example-repo
28
+
```
29
+
30
+
## `github_branch`
31
+
32
+
Your github branch name. Useful if your default branch is not named master.
33
+
34
+
```yaml
35
+
github_branch: source
36
+
```
37
+
38
+
## `google_site_verification`
39
+
40
+
Adds a [Google Site Verification code](https://support.google.com/webmasters/answer/35179?hl=en) to the meta tags.
Enables search functionality. This indexes pages only and is not recommended for single-page sites.
49
+
50
+
```yaml
51
+
enable_search: true
52
+
```
53
+
54
+
## `header_links`
55
+
56
+
Right hand side navigation.
57
+
58
+
Example:
59
+
60
+
```yaml
61
+
header_links:
62
+
Documentation: /
63
+
```
64
+
65
+
## `footer_links`
66
+
67
+
Links to show in footer.
68
+
69
+
Example:
70
+
71
+
```yaml
72
+
footer_links:
73
+
Accessibility: /accessibility
74
+
```
75
+
76
+
## `host`
77
+
78
+
Host to use for canonical URL generation (without trailing slash).
79
+
80
+
Example:
81
+
82
+
```yaml
83
+
host: https://docs.cloud.service.gov.uk
84
+
```
85
+
86
+
## `collapsible_nav`
87
+
88
+
Enable collapsible navigation in the sidebar. Defaults to false;
89
+
90
+
```yaml
91
+
collapsible_nav: true
92
+
```
93
+
94
+
## `multipage_nav`
95
+
96
+
Enable multipage navigation in the sidebar. Defaults to false;
97
+
98
+
```yaml
99
+
multipage_nav: true
100
+
```
101
+
102
+
## `max_toc_heading_level`
103
+
104
+
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.
105
+
106
+
```yaml
107
+
max_toc_heading_level: 6
108
+
```
109
+
110
+
## `phase`
111
+
112
+
```yaml
113
+
phase: "Beta"
114
+
```
115
+
116
+
## `prevent_indexing`
117
+
118
+
Prevent robots from indexing (e.g. whilst in development)
119
+
120
+
```yaml
121
+
prevent_indexing: false
122
+
```
123
+
124
+
## `redirects`
125
+
126
+
A list of redirects, from old to new location. Use this to set up external
127
+
redirects or if [setting `old_paths` in the frontmatter](/frontmatter.html#old-paths) doesn't work.
0 commit comments