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
/
Copy pathnetlify.toml
131 lines (104 loc) · 2.37 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
[build]
publish = "public"
[context.production.environment]
HUGO_VERSION = "0.81.0"
HUGO_ENV = "production"
[context.deploy-preview.environment]
HUGO_VERSION = "0.81.0"
HUGO_ENV = "staging"
[context.branch-deploy.environment]
HUGO_VERSION = "0.81.0"
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.23-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.19-docs/*"
to = "/docs/"
status = 301
[[redirects]]
from = "/v0.18-docs/*"
to = "/docs/"
status = 301
[[redirects]]
from = "/v0.17-docs/*"
to = "/docs/"
status = 301
[[redirects]]
from = "/v0.16-docs/*"
to = "/docs/"
status = 301
[[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
# Redirect to point to mkdocs dev for now
[[redirects]]
from = "/development/*"
to = "https://dev-knative.netlify.app/development/"
status = 302