-
Notifications
You must be signed in to change notification settings - Fork 156
/
nuxt.schema.ts
328 lines (321 loc) · 7.95 KB
/
nuxt.schema.ts
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
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
export default defineNuxtSchema({
appConfig: {
/**
* Docus theme configuration.
*
* @studioIcon material-symbols:docs
*/
docus: {
/**
* Website title, used as header default title and meta title.
*
* @studioIcon material-symbols:title
*/
title: 'Docus',
/**
* The website title template, to overwrite the default one.
*/
titleTemplate: '%s · Docus',
/**
* Website description, used for meta description.
*
* @studioIcon material-symbols:description
*/
description: 'The best place to start your documentation.',
/**
* Cover image.
*
* @example '/cover.jpg'
*
* @studioIcon dashicons:cover-image
* @studioInput file
*/
image: 'https://user-images.githubusercontent.com/904724/185365452-87b7ca7b-6030-4813-a2db-5e65c785bf88.png',
/**
* Social links
*
* Will be used in AppSocialIcons component.
*
* @studioIcon material-symbols:share-outline
*/
socials: {
/**
* Twitter social handle
* @example 'nuxt_js'
* @studioIcon simple-icons:twitter
*/
twitter: '',
/**
* GitHub org or repository
* @example 'nuxt/framework'
* @studioIcon simple-icons:github
*/
github: '',
/**
* Facebook page url
* @example https://www.facebook.com/groups/nuxtjs
* @studioIcon simple-icons:facebook
*/
facebook: '',
/**
* Instagram page url
* @example https://www.instagram.com/wearenuxt
* @studioIcon simple-icons:instagram
*/
instagram: '',
/**
* Instagram page url
* @example https://www.youtube.com/@NuxtLabs
* @studioIcon simple-icons:youtube
*/
tiktok: '',
/**
* TikTok page url
* @example https://www.tiktok.com/@tiktok
* @studioIcon simple-icons:tiktok
*/
youtube: '',
/**
* Medium page url
* @example https://medium.com/nuxt
* @studioIcon simple-icons:medium
*/
medium: ''
},
/**
* Theme layout configuration.
*
* @type {'default'|'page'}
* @studioIcon tabler:arrow-autofit-width
*/
layout: 'default',
/**
* Aside navigation configuration.
*
* @studioIcon fluent:document-page-24-regular
*/
aside: {
/**
* Aside navigation level
*
* Use 0 to disable all nesting.
* Use 1 and more to display nested navigation in header and aside navigation.
*/
level: 0,
/**
* Specify if default collapsibles state globally for aside navigation.
*/
collapsed: false,
/**
* Paths to be excluded from aside navigation.
*
* @type {string[]}
*/
exclude: []
},
/**
* Header configuration.
*
* @studioIcon fluent:document-header-24-regular
*/
header: {
/**
* Website title
*
* Title to be displayed in header or as aria-label if logo is defined.
*
* Default to docus.title
*
* @studioIcon material-symbols:title
*/
title: '',
/**
* Logo configuration
*
* Boolean to disable or use the `Logo.vue` component.
*
* String to be used as a name of a component.
*
* Object that sets the light and dark logos.
*
* @type {boolean|string|{dark: string, light: string}}
* @example 'MyLogo'
* @studioInput boolean
*/
logo: false,
/**
* Header links
*
* Toggle links icons in the header.
*/
showLinkIcon: false,
/**
* Paths to be excluded from header links.
*
* @type {string[]}
*
*/
exclude: [],
/**
* Makes the content of the header fluid.
*/
fluid: false
},
/**
* Main content configuration.
*
* @studioIcon fluent:document-header-footer-24-filled
*/
main: {
/**
* Makes the content of the main container fluid.
*/
fluid: false,
/**
* Makes the content of the main container padded.
*/
padded: true
},
/**
* Footer configuration
*
* @studioIcon fluent:document-footer-24-regular
*/
footer: {
/**
* Website credits configuration.
*
* @type {false|{icon: string, text: string, href: string}}
*
* @studioIcon material-symbols:copyright
*/
credits: {
/**
* Icon to show on credits
* @formtype Icon
*/
icon: 'IconDocus',
text: 'Powered by Docus',
href: 'https://docus.dev'
},
/**
* Text links
*
* Will be added into center section of the footer.
*
* @studioIcon material-symbols:add-link
*/
textLinks: {
$schema: {
type: 'array',
items: {
type: 'object',
required: ['text', 'href'],
properties: {
href: {
type: 'string',
description: 'URL when clicking the link'
},
text: {
type: 'string',
description: 'Text of the link'
},
target: {
type: 'string',
description: 'Target attribute of the link'
},
rel: {
type: 'string',
description: 'Rel attribute of the link'
}
}
}
}
},
/**
* Icon links
*
* Icons to be added to Social Icons in footer.
*
* @studioIcon material-symbols:add-link
*/
iconLinks: {
$schema: {
type: 'array',
items: {
type: 'object',
required: ['icon', 'href'],
properties: {
icon: {
type: 'string',
description: 'Icon name'
},
href: {
type: 'string',
description: 'Link when clicking on the icon'
},
label: {
type: 'string',
description: 'Label of the icon'
},
rel: {
type: 'string',
description: 'Rel attribute of the link'
}
}
}
}
},
/**
* Makes the content of the footer fluid.
*/
fluid: true
},
/**
* GitHub integration
*
* Configure the Edit on Github integration.
*
* @studioIcon simple-icons:github
*/
github: {
/**
* Base URL
*
* You can use this to link to GitHub Enterprise.
*/
baseUrl: 'https://github.com',
/**
* Directory
*
* Your GitHub repository root directory.
*/
dir: '',
/**
* Branch
*
* Your GitHub repository branch.
*/
branch: '',
/**
* Repository
*
* Your GitHub repository name.
*/
repo: '',
/**
* Owner
*
* Your GitHub repository owner.
*/
owner: '',
/**
* EditOnGithub
*
* Display EditOnGithub button.
*/
edit: false
}
}
}
})