-
Notifications
You must be signed in to change notification settings - Fork 1.2k
/
config.toml
189 lines (153 loc) · 4.99 KB
/
config.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
[params]
time_format_iso8601 = "2006-01-02T15:04:05-07:00"
weglot_api_key = "wg_3b3ef29c81aa81292c64d1368ee318969"
# Google Tag Manager ID used in production.
# For development/staging, see the config dir.
gtmID = "GTM-T5FXXG9"
# # Adobe Analytics script used in production.
# For development/staging, see the config dir.
adobe_launch_script = "https://assets.adobedtm.com/fcfd3580c848/f9e7661907ee/launch-2fb69de42220.min.js"
# Trustarc Domain used in poduction
trustarc_domain = "linode.com"
[params.search_config2]
app_id = "KGUN8FAIPF"
api_key = "d364d8e601808b96178d0776ed43b2c9"
meta_index = "linode-documentation-sections"
index_prefix = ""
click_analytics = true
explorer_max_leafnodes = 50
hits_per_page = 10
[params.search_config2.recommendations]
# We currently don't have a test environment filled with recommendation data.
app_id = "KGUN8FAIPF"
api_key = "d364d8e601808b96178d0776ed43b2c9"
target_index = "linode-merged"
# Holds configuration for the index with all of the sections merged in.
[params.search_config2.sections_merged]
name = "merged"
index = "linode-merged"
index_by_pubdate = "linode-merged-sorted"
title = "All"
noun = "All"
hits_per_page = 20
filtering_facets = [
{ name = "docType", title = "Doc Type" },
{ name = "category", title = "Category" },
{ name = "tags", title = "Tags", isTags = true },
# { name = "authors", title = "Authors", isTags = true }
]
# Note there is a search_config also in the docs project, which would win over this.
# This is a refactored version to better separate the UI with the more technical configuration,
# and to make it easier/possible to merge configurations and override setting via OS env.
[params.search_config2.sections]
[params.search_config2.sections.products]
name = "products"
weight = 10 # Used to order the sections in the UI. Higher comes first.
title = "Products"
noun = "Product Guide"
filters = "section.lvl0:products"
# The icons are fetched from layouts/sections/navigation/explorer-icons.html
explorer_icon = "#icon-explorer--products"
[params.search_config2.sections.guides]
name = "guides"
filters = "section.lvl0:guides"
weight = 20
title = "Guides"
noun = "Guide"
explorer_icon = "#icon-explorer--guides"
[params.search_config2.sections.api]
name = "api"
index = "linode-documentation-api"
filters = "section.lvl0:api"
weight = 30
title = "API"
explorer_icon = "#icon-explorer--api"
[params.search_config2.sections.reference-architecture]
name = "reference-architecture"
filters = "section.lvl0:guides"
weight = 35
title = "Reference Architecture"
noun = "Reference"
explorer_icon = "#icon-explorer--reference-architecture"
[params.search_config2.sections.marketplace]
name = "marketplace"
index = "linode-wp"
weight = 40
title = "Marketplace"
seo_title_template = "One-Click App Marketplace | Linode"
seo_title_template_category = "One-Click App Marketplace | {category} | Linode"
noun = "App"
filters = "section.lvl0:Marketplace"
explorer_icon = "#icon-explorer--marketplace"
[params.search_config2.sections.blog]
name = "blog"
weight = 50
title = "Blog"
seo_title_template = "Linode Blog | Linode"
seo_title_template_category = "Linode Blog | {category} | Linode"
noun = "Post"
filters = "section.lvl0:Blog"
explorer_icon = "#icon-explorer--blog"
[params.search_config2.sections.resources]
name = "resources"
filters = "section.lvl0:Resources"
weight = 60
title = "Resources"
noun = "Resource"
seo_title_template = "Cloud Computing Resources | Linode"
seo_title_template_category = "Cloud Computing {category} | Linode"
explorer_icon = "#icon-explorer--resources"
[module]
[[module.mounts]]
source = "content"
target = "content"
[[module.mounts]]
source = "i18n"
target = "i18n"
[[module.mounts]]
source = "layouts"
target = "layouts"
[[module.mounts]]
source = "assets"
target = "assets"
[[module.mounts]]
source = "static"
target = "static"
# The common static footer and header.
[[module.imports]]
path = "github.com/linode/linode-website-partials"
[[module.imports.mounts]]
source = "header.html"
target = "layouts/partials/linode-header.html"
[[module.imports.mounts]]
source = "footer.html"
target = "layouts/partials/linode-footer.html"
[[module.imports.mounts]]
source = "header.css"
target = "assets/linode/header.css"
[[module.imports.mounts]]
source = "footer.css"
target = "assets/linode/footer.css"
[[module.imports.mounts]]
source = "header.js"
target = "assets/linode/header.js"
[[module.imports.mounts]]
source = "footer-inline.js"
target = "assets/linode/footer-inline.js"
[[module.imports.mounts]]
source = "attribution-inline.js"
target = "assets/linode/attribution-inline.js"
# JS components packaged as Hugo Modules.
[[module.imports]]
path = "github.com/gohugoio/hugo-mod-jslibs-dist/alpinejs/v3"
[[module.imports]]
path = "github.com/gohugoio/hugo-mod-jslibs/turbo/v7"
[[module.imports]]
path = "github.com/gohugoio/hugo-mod-jslibs/instantpage"
[security]
enableInlineShortcodes = false
[security.exec]
allow = ['^dart-sass-embedded$', '^go$', '^npx$', '^postcss$']
osEnv = ['(?i)^(.*)$']
[security.funcs]
getenv = ['^HUGO_']