forked from armory/docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnetlify.toml
101 lines (82 loc) · 2.95 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
# Hugo build configuration for Netlify
# (https://gohugo.io/hosting-and-deployment/hosting-on-netlify/#configure-hugo-version-in-netlify)
# Default build settings
[build]
publish = "public"
command = "hugo"
# "production" environment specific build settings
[build.environment]
HUGO_VERSION = "0.110.0"
HUGO_ENV = "production"
GO_VERSION = "1.18"
# section redirects
[[redirects]]
from = "/docs/release-notes/rn-armory-agent/*"
to = "/plugins/scale-agent/release-notes/:splat"
[[redirects]]
from = "/docs/release-notes/rn-armory-agent/agent-plugin/*"
to = "/plugins/scale-agent/release-notes/agent-plugin/:splat"
[[redirects]]
from = "/docs/release-notes/rn-armory-agent/agent-service/*"
to = "/plugins/scale-agent/release-notes/agent-service/:splat"
[[redirects]]
from = "/armory-enterprise/release-notes/rn-armory-agent/*"
to = "/plugins/scale-agent/release-notes/:splat"
[[redirects]]
from = "/continuous-deployment/release-notes/rn-armory-agent/*"
to = "/scale-agent/release-notes/:splat"
[[redirects]]
from = "/armory-enterprise/armory-agent/*"
to = "/plugins/scale-agent/:splat"
[[redirects]]
from = "/continuous-deployment/armory-agent/*"
to = "/plugins/scale-agent/:splat"
[[redirects]]
from = "/scale-agent/*"
to = "/plugins/scale-agent/:splat"
[[redirects]]
from = "/cd-as-a-service/plugin-spinnaker/"
to = "/plugins/cdaas-spinnaker/"
force = true # ensure this always redirects because cdaas-spinnaker does exist (for users clicking web search result link)
[[redirects]]
from = "/continuous-deployment/armory-admin/policy-engine/policy-engine-use/*"
to = "/plugins/policy-engine/use/:splat"
[[redirects]]
from = "/continuous-deployment/plugin-guide/*"
to = "/plugins/:splat"
[[redirects]]
from = "/docs/*"
to = "/continuous-deployment/:splat"
[[redirects]]
from = "/armory-enterprise/*"
to = "/continuous-deployment/:splat"
[[redirects]]
from = "/armory-cdaas/*"
to = "/cd-as-a-service/"
# https://github.com/netlify-labs/netlify-plugin-sitemap
[[plugins]]
package = "@netlify/plugin-sitemap"
[plugins.inputs]
buildDir = "public"
# make sure you add a comma after each entry in the exclude list except on the last one
exclude =[
'./public/plugins/plugin-appname/',
'./public/plugins/plugin-external-account/',
'./public/plugins/plugin-iam-authentication/',
'./public/cd-as-a-service/plugin-spinnaker/',
'./public/continuous-deployment/feature-status/deprecations/pacrd-deprecation/',
'./public/continuous-deployment/installation/deployment-reg/',
'./public/managed-spin',
'./public/contribute',
'./public/continuous-deployment/try/'
]
# append missing trailing slash to prettyURL
trailingSlash = true
changeFreq = "daily"
priority = 0.5
# headers https://docs.netlify.com/routing/headers/#syntax-for-the-headers-file
# https://cloud-armory.slack.com/archives/CH4RVCCTS/p1608572781420500
[[headers]]
for = "/*"
[headers.values]
X-Frame-Options = "SAMEORIGIN"