-
Notifications
You must be signed in to change notification settings - Fork 112
/
netlify.toml
193 lines (161 loc) · 4.64 KB
/
netlify.toml
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
# Read the Netlify docs for details:
# https://docs.netlify.com/configure-builds/file-based-configuration/
#
#
# Build commands. Logic for previews vs prod are handled inside netlify_build.sh
[context.deploy-preview]
command = "bash netlify_build.sh"
[context.production]
command = "bash netlify_build.sh"
[build]
base = "/"
publish = "public/"
command = "bash netlify_build.sh"
# The version of Hugo to use for the Netlify build.
[build.environment]
HUGO_VERSION = "0.119.0"
#
# The following are Netlify redirects for moved docs pages
# https://docs.netlify.com/configure-builds/file-based-configuration/#redirects
#
[[redirects]]
from = "/docs/*"
to = "/:splat"
status = 302
# Redirects for EOL versions
[[redirects]]
from = "/v1.12/*"
to = "/latest/:splat"
status = 302
[[redirects]]
from = "/v1.11/*"
to = "/latest/:splat"
status = 302
[[redirects]]
from = "/v1.10/*"
to = "/latest/:splat"
status = 302
# Redirects for pre-Hugo docs
[[redirects]]
from = "/v1.9/concepts/managed-resources.html"
to = "/latest/concepts/managed-resources"
status = 302
[[redirects]]
from = "/v1.9/concepts/providers.html"
to = "/latest/concepts/providers"
status = 302
[[redirects]]
from = "/v1.9/getting-started/create-configuration"
to = "/latest/getting-started"
status = 302
[[redirects]]
from = "/v1.9/getting-started/install-configure"
to = "/latest/software/install/"
status = 302
[[redirects]]
# Redirects for deleted pages/sections
from = "/knowledge-base/install/**"
to = "/latest/software/"
status = 302
[[redirects]]
# Moved KB article. See issue #749
from = "/knowledge-base/guides/composition-revisions"
to = "/latest/concepts/composition-revisions/"
status = 301
[[redirects]]
# Moved KB article. See issue #749
from = "/knowledge-base/guides/composition-revisions-example"
to = "/latest/concepts/composition-revisions/"
status = 301
[[redirects]]
# Moved KB article. See issue #749
from = "/knowledge-base/guides/connection-details"
to = "/latest/concepts/connection-details/"
status = 301
[[redirects]]
# Moved KB article. See issue #749
from = "/knowledge-base/integrations/argo-cd-crossplane"
to = "/latest/guides/crossplane-with-argo-cd/"
status = 301
[[redirects]]
# Moved KB article. See issue #749
from = "/knowledge-base/guides/write-a-composition-function-in-go/"
to = "/latest/guides/write-a-composition-function-in-go/"
status = 301
[[redirects]]
# Moved KB article. See issue #749
from = "/knowledge-base/guides/write-a-composition-function-in-python"
to = "/latest/guides/write-a-composition-function-in-python/"
status = 301
[[redirects]]
# Moved KB article. See issue #749
from = "/knowledge-base/guides/multi-tenant/"
to = "/latest/guides/multi-tenant/"
status = 301
[[redirects]]
# Moved KB article. See issue #749
from = "/knowledge-base/guides/import-existing-resources/"
to = "/latest/guides/import-existing-resources/"
status = 301
[[redirects]]
# Moved KB article. See issue #749
from = "/knowledge-base/integrations/vault-injection/"
to = "/latest/guides/vault-injection/"
status = 301
[[redirects]]
# Moved KB article. See issue #749
from = "/knowledge-base/integrations/vault-as-secret-store/"
to = "/latest/guides/vault-as-secret-store/"
status = 301
[[redirects]]
# Moved KB article. See issue #749
from = "/knowledge-base/guides/troubleshoot/"
to = "/latest/guides/troubleshoot-crossplane/"
status = 301
[[redirects]]
# Moved KB article. See issue #749
from = "/knowledge-base/guides/self-signed-ca-certs/"
to = "/latest/guides/self-signed-ca-certs/"
status = 301
[[redirects]]
# Moved KB article. See issue #749
from = "/knowledge-base/guides/disaster-recovery/"
to = "/latest/guides/disaster-recovery/"
status = 301
[[redirects]]
# Moved KB article. See issue #749
from = "/knowledge-base/guides/learn-more/"
to = "/latest/learn/"
status = 301
[[redirects]]
# Moved KB article. See issue #749
from = "/knowledge-base/guides/feature-lifecycle/"
to = "/latest/learn/feature-lifecycle"
status = 301
[[redirects]]
# Moved KB article. See issue #749
from = "/knowledge-base/guides/release-cycle/"
to = "/latest/learn/release-cycle"
status = 301
[[redirects]]
# Moved KB article. See issue #749
from = "/knowledge-base/guides/"
to = "/latest/guides"
status = 301
[[redirects]]
# Moved KB article. See issue #749
from = "/knowledge-base/integrations/"
to = "/latest/guides"
status = 301
[[redirects]]
# Moved KB article. See issue #749
from = "/knowledge-base/"
to = "/latest/"
status = 301
# Use [dev] to set configuration overrides for local
# development environments run using Netlify Dev - except
# for environment variables. Environment variables for Netlify
# Dev should be set under [context.dev.environment] instead.
[dev]
command = "hugo server"
port = 8888