This repository has been archived by the owner on Dec 15, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 70
/
netlify.toml
105 lines (83 loc) · 1.94 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
[build]
publish = "public"
[context.production.environment]
HUGO_VERSION = "0.74.3"
HUGO_ENV = "production"
[context.deploy-preview.environment]
HUGO_VERSION = "0.74.3"
HUGO_ENV = "staging"
[context.branch-deploy.environment]
HUGO_VERSION = "0.74.3"
HUGO_ENV = "staging"
# Site redirects
################
# RELEASE-ITEM: For each release, add new/latest release and archive versions older than latest-3
# Update to the latest version number
# Enable permanent links to a new release (so links persist after release is archived)
[[redirects]]
from = "/v0.19-docs/*"
to = "/docs/:splat"
status = 200
# Update to include the recent versions that we take down off of knative.dev
# We publish LATEST -3 versions to knative.dev, all older versions get redirect
# back to the latest version in case old bookmarks or articles still point to
# one of those "previously published" versions
[[redirects]]
from = "/v0.15-docs/*"
to = "/docs/"
status = 301
[[redirects]]
from = "/v0.14-docs/*"
to = "/docs/"
status = 301
[[redirects]]
from = "/v0.13-docs/*"
to = "/docs/"
status = 301
[[redirects]]
from = "/v0.12-docs/*"
to = "/docs/"
status = 301
[[redirects]]
from = "/v0.11-docs/*"
to = "/docs/"
status = 301
[[redirects]]
from = "/v0.10-docs/*"
to = "/docs/"
status = 301
[[redirects]]
from = "/v0.9-docs/*"
to = "/docs/"
status = 301
[[redirects]]
from = "/v0.8-docs/*"
to = "/docs/"
status = 301
[[redirects]]
from = "/v0.7-docs/*"
to = "/docs/"
status = 301
[[redirects]]
from = "/v0.6-docs/*"
to = "/docs/"
status = 301
[[redirects]]
from = "/v0.5-docs/*"
to = "/docs/"
status = 301
[[redirects]]
from = "/v0.4-docs/*"
to = "/docs/"
status = 301
[[redirects]]
from = "/v0.3-docs/*"
to = "/docs/"
status = 301
#################
# Static redirects
# Redirect all deprecated Knative Build component pages
[[redirects]]
from = "/docs/build/*"
to = "/docs/"
status = 301