-
Notifications
You must be signed in to change notification settings - Fork 14
/
docusaurus.config.js
250 lines (243 loc) · 7.15 KB
/
docusaurus.config.js
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
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
// @ts-check
//docusaurus.config.js for Docs only Mode
// const rlc = require("remark-link-card");
const config = {
//export default {
title: "WIZnet Document System",
tagline: "Welcome to new WIZnet Document System!",
//url: 'https://wiznet.github.io',
url: 'https://docs.wiznet.io',
baseUrl: '/',
onBrokenLinks: 'warn',
onBrokenMarkdownLinks: 'warn',
onDuplicateRoutes: 'warn',
favicon: 'img/wizfavicon.ico',
organizationName: 'WIZnet Co., Ltd.', // Usually your GitHub org/user name.
projectName: 'document_framework', // Usually your repo name.
trailingSlash: false,
themeConfig: {
metadata: [{name: 'keywords', content: 'wiznet,documentation,datasheet,w5500,hardwired tcp/ip,ethernet chip,ethernet shield,embedded ethernet'}],
docs:{
sidebar: {
hideable: true,
autoCollapseCategories: true,
},
},
announcementBar: {
id: 'announcementBar-2', // Increment on change
content: '⭐️ Meet our new products: <a target="" rel="noopener noreferrer" href="/Product/ioNIC/W55RP20/overview">ioNIC Chip</a> and <a target="" rel="noopener noreferrer" href="/Product/ioNIC/W55RP20/w55rp20-evb-pico">W55RP20-EVB-Pico</a> ⭐️',
backgroundColor: '#C51A4A',
textColor: '#fafbfc',
isCloseable: false,
},
colorMode: {
defaultMode: "light",
disableSwitch: false,
respectPrefersColorScheme: false,
/*switchConfig: {
darkIcon: '\u{26c8}',
lightIcon: '\u{1f324}',
},*/
},
algolia: {
appId: "VXDI0EL2J7",
apiKey: "966f094e2a2b035dc3ec49a0751713b1",
indexName: "wiznet",
//apiKey: 'd2ede60bed9975d4b60dd5436896fe91',
//indexName: 'wiznet',
// Optional: see doc section bellow
// contextualSearch: true,
// Optional: Algolia search parameters
//searchParameters: {},
//inputSelector: 'I',
//algoliaOptions: {'facetFilters': ["type:content"] },
//... other Algolia params
},
navbar: {
hideOnScroll: true,
//title: 'WIZnet',
logo: {
alt: "Wiznet Company Logo",
src: "img/wiznet_logo.svg",
srcDark: "img/wiznet_logo-white.svg"
},
items: [
{
label: "Documents",
position: "right", // or 'left'
items: [
{
label: "Introduction ➤",
to: "introduction"
},
{
label: "Design Guide ➤",
to: "/Design-Guide/design_guide"
},
{
label: "VAR Products ➤",
to: "/VAR-Products-using-WIZnet/var_products_using_wiznet"
}
// ... more items
]
},
// {to: 'docs/introduction', label: 'INTRODUCTION TO WIZNET DOCUMENTS ➤', position: 'right'},
// {to: 'docs/download', label: 'Download', position: 'right'},
{ href: "https://www.wiznet.io/", label: "WIZnet", position: "right" },
{ href: "https://maker.wiznet.io/forum/", label: "Forum", position: "right" },
//{to: 'blog', label: 'Blog', position: 'left'},
{
href: "https://github.com/Wiznet/",
label: "GitHub",
position: "right"
}
]
},
footer: {
style: "dark",
links: [
{
title: "Docs",
items: [
{
label: "Introduction",
to: "introduction"
},
{
label: "Products",
to: "/"
},
{
label: "Design Guide",
to: "/Design-Guide/design_guide"
},
{
label: "VAR Products",
to: "/VAR-Products-using-WIZnet/var_products_using_wiznet"
}
]
},
{
title: "Buy",
items: [
{
label: "USA",
href: "https://eshop.wiznet.io/"
},
{
label: "EU",
href: "http://shop.wiznet.eu/"
},
{
label: "China",
href: "https://www.wiznet.hk/en/"
},
{
label: "Korea",
href: "http://wiznetshop.co.kr/"
}
]
},
{
title: "Support",
items: [
{
label: "WIZnet Homepage",
href: "https://wiznet.io"
},
{
label: "Forum",
href: "https://maker.wiznet.io/forum"
},
{
label: "Maker Community",
href: "http://maker.wiznet.io/"
},
{
label: "GitHub",
href: "https://github.com/Wiznet/"
}
// {
// label: 'Twitter',
// href: '',
// },
]
},
{
title: "Social",
items: [
{
label: "Facebook",
href: "https://www.facebook.com/wiznettechnology"
},
{
label: "LinkedIn",
href: "https://www.linkedin.com/company/wiznet/"
},
{
label: "Twitter",
href: "https://twitter.com/wiznetteam"
},
{
label: "Youtube",
href: "https://www.youtube.com/channel/UCAxgCSp_xA2aQ1KA2Eknvqg"
}
]
}
],
copyright: `Copyright © ${new Date().getFullYear()} WIZnet Co., Ltd. Built with Docusaurus.`
},
image: "img/wiznet-logo.png"
},
//plugins: ['./PreventTrailingSlash/PreventTrailingSlashPlugin'],
plugins: [
[
"@gracefullight/docusaurus-plugin-channelio",
{ pluginKey: "cb95c060-ab4c-45ec-bbe8-fe40a1ea3aec" },
],
],
scripts: [
{
src: 'https://www.chatbase.co/embed.min.js',
chatbotId: 'mzPtKtrGGxl7KLpJJ_s9j',
domain: 'www.chatbase.co',
async: true,
defer: true
},
],
presets: [
[
"@docusaurus/preset-classic",
{
docs: {
routeBasePath: "/",
sidebarPath: require.resolve("./sidebars.js"),
editUrl: "https://github.com/Wiznet/document_framework/tree/master/",
// remarkPlugins: [rlc]
remarkPlugins: []
},
googleAnalytics: {
trackingID: 'UA-207547783-2',
anonymizeIP: true,
},
gtag: {
// You can also use your "G-" Measurement ID here.
trackingID: 'G-B4NBQPV6VG',
// Optional fields.
anonymizeIP: false, // Should IPs be anonymized?
},
sitemap: {
changefreq: 'weekly',
priority: 0.5,
ignorePatterns: ['/tags/**'],
filename: 'sitemap.xml',
},
theme: {
customCss: require.resolve("./src/css/custom.css")
}
}
]
]
};
export default config;
// module.exports = config;