forked from linode/docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.toml
149 lines (131 loc) · 4.46 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
# If you update baseURL, *YOU NEED TO UPDATE* scripts/generate_permanent_redirects.sh
# so that it correctly parses the URL
baseURL = "https://www.linode.com/docs/"
languageCode = "en-us"
title = "Linode Guides & Tutorials"
# disableKinds = ["taxonomy", "taxonomyTerm"]
themeDir = ".."
rssLimit = 30
summaryLength = 15
timeout = "2m"
disqusShortname="linode-1"
enableGitInfo = true
[outputs]
# The JSON is for the search index. We build this on every build to make sure we have the image thumbnails in sync.
home = ["HTML", "JSON", "RSS"]
[taxonomies]
bundle = "bundles"
[frontmatter]
lastmod = [":git", "lastmod", "date", "publishDate"]
publishDate = ["published", "publishDate", "date"]
[params]
description = "Guides and tutorials on the Linode platform, Linux basics, and software installation and configuration."
# Date and time formatting, see https://gohugo.io/functions/format/
time_format_RFC3339 = "2006-01-02T15:04:05Z07:00"
time_format_default = "Monday, January 2, 2006"
promo_code = "DOCS32SAFC"
promo_code_amount = 100
promo_code_disclaimer = "This credit will be applied to any valid services used during your first 60 days."
page_title_suffix = "Linode"
[params.search_config]
app_id = "KGUN8FAIPF"
api_key = "d4847002cd30392fe0fbd00a1da933ed"
meta_index = "linode-documentation-sections"
explorer_max_leafnodes = 50
hits_per_page = 4
[[params.search_config.sections]]
name = "products"
index = "linode-documentation"
index_by_pubdate = "linode-documentation-sorted"
title = "Products"
filters = "section.lvl0:products"
# The icons are fetched from layouts/sections/navigation/explorer-icons.html
explorer_icon = "#icon-explorer--products"
explorer_map_title = true
filtering_facets = [
# { name = "category", title = "Doc Category" },
# { name = "skillLevel", title = "Skill Level" },
# { name = "languages", title = "Languages" },
{ name = "tags", title = "Tags", isTags = true }
]
explorer_regular_pages_start_level = 2
hits_per_page = 4
download_settings = true
[[params.search_config.sections]]
name = "guides"
index = "linode-documentation"
index_by_pubdate = "linode-documentation-sorted"
title = "Guides"
filters = "section.lvl0:guides"
explorer_icon = "#icon-explorer--guides"
explorer_map_title = true
filtering_facets = [
# { name = "category", title = "Doc Category" },
# { name = "skillLevel", title = "Skill Level" },
# { name = "languages", title = "Languages" },
{ name = "tags", title = "Tags", isTags = true }
]
explorer_regular_pages_start_level = 2
hits_per_page = 4
[[params.search_config.sections]]
name = "api"
index = "linode-documentation-api"
title = "API"
filters = "section.lvl0:api"
explorer_icon = "#icon-explorer--api"
explorer_regular_pages_start_level = 2
hits_per_page = 4
# filtering_facets = [{ name = "category", title = "Doc Category" }]
download_settings = true
[[params.search_config.sections]]
name = "marketplace"
index = "linode-wp"
index_by_pubdate = "linode-wp-sorted"
title = "Marketplace"
filters = "section.lvl0:Marketplace"
explorer_icon = "#icon-explorer--marketplace"
explorer_regular_pages_start_level = 2
hits_per_page = 4
# filtering_facets = [{ name = "category", title = "Doc Category" }]
[[params.search_config.sections]]
name = "blog"
index = "linode-wp"
index_by_pubdate = "linode-wp-sorted"
title = "Blog"
filters = "section.lvl0:Blog"
explorer_icon = "#icon-explorer--blog"
explorer_regular_pages_start_level = 2
hits_per_page = 4
# filtering_facets = [{ name = "category", title = "Doc Category" }]
[[params.search_config.sections]]
# Identifier. It's also used as the Algolia index name.
# If you need to map several sections to one Algolia index,
# set the index attribute.
name = "resources"
index = "linode-wp"
index_by_pubdate = "linode-wp-sorted"
title = "Resources"
filters = "section.lvl0:Resources"
explorer_icon = "#icon-explorer--resources"
explorer_regular_pages_start_level = 2
hits_per_page = 4
# filtering_facets = [{ name = "category", title = "Doc Category" }]
[[params.search_config.sections]]
name = "qa"
index = "linode-community"
index_by_pubdate = "linode-community-sorted"
title = "Q&A"
filters = "objectType:question"
section_facet = "objectType"
explorer_icon = "#icon-explorer--qa"
explorer_regular_pages_start_level = 4 # Not relevant, set it high to avoid triggering any search.
hits_per_page = 4
# filtering_facets = [{ name = "category", title = "Doc Category" }]
[minify]
disableSVG = false
[imaging]
resampleFilter = "CatmullRom"
quality = 75
anchor = "smart"
[permalinks]
guides = "/guides/:slug/"