forked from crossplane/docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnetlify.toml
64 lines (52 loc) · 1.33 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
[build]
base = "/"
publish = "public/"
command = "bash netlify_build.sh"
[build.environment]
HUGO_VERSION = "0.119.0"
[[redirects]]
from = "/docs/*"
to = "/:splat"
status = 302
# Redirects for EOL versions
[[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
[context.deploy-preview]
command = "bash netlify_build.sh"
[context.production]
command = "bash netlify_build.sh"
# 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