@@ -59,7 +59,7 @@ export const data = [
59
59
path : '/docs/routing/api-routes/' ,
60
60
label : 'API Routes' ,
61
61
hasChildren : true ,
62
- items : [ 'middleware' , 'tutorial' ] ,
62
+ items : [ 'middleware' , 'tutorial' ] ,
63
63
} ,
64
64
] ,
65
65
} ,
@@ -76,7 +76,7 @@ export const data = [
76
76
path : '/docs/elements/html/' ,
77
77
label : 'HTML' ,
78
78
hasChildren : true ,
79
- items : [ 'slots' ] ,
79
+ items : [ 'slots' ] ,
80
80
} ,
81
81
{
82
82
slug : 'state' ,
@@ -114,15 +114,15 @@ export const data = [
114
114
slug : 'alternatives' ,
115
115
path : '/docs/enhance-styles/alternatives/' ,
116
116
hasChildren : true ,
117
- items : [ 'tailwind' , 'sass' ] ,
117
+ items : [ 'tailwind' , 'sass' ] ,
118
118
} ,
119
119
] ,
120
120
} ,
121
121
{
122
122
type : TYPE . category ,
123
123
label : 'Enhance UI' ,
124
124
slug : 'enhance-ui' ,
125
- items : [ { slug : 'image' , label : 'Image (beta)' } ] ,
125
+ items : [ { slug : 'image' , label : 'Image (beta)' } ] ,
126
126
} ,
127
127
{
128
128
type : TYPE . category ,
@@ -143,7 +143,7 @@ export const data = [
143
143
slug : 'testing' ,
144
144
path : '/docs/patterns/testing/' ,
145
145
hasChildren : true ,
146
- items : [ { slug : 'webdriverio' , label : 'WebdriverIO' } ] ,
146
+ items : [ { slug : 'webdriverio' , label : 'WebdriverIO' } ] ,
147
147
} ,
148
148
'architect-migration' ,
149
149
] ,
@@ -215,13 +215,13 @@ export const other = {
215
215
} ,
216
216
}
217
217
218
- export function unslug ( string ) {
218
+ export function unslug ( string ) {
219
219
return string
220
220
. replace ( / - / g, ' ' )
221
221
. replace ( / ( ^ \w { 1 } ) | ( \s + \w { 1 } ) / g, ( l ) => l . toUpperCase ( ) )
222
222
}
223
223
224
- function parseItems ( items , root , activePath ) {
224
+ function parseItems ( items , root , activePath ) {
225
225
const parsedItems = items . map ( ( item ) => {
226
226
if ( typeof item === 'string' ) {
227
227
// create full item from shorthand item
@@ -231,7 +231,8 @@ function parseItems(items, root, activePath) {
231
231
path : `/${ root } /${ item } ` ,
232
232
label : unslug ( item ) ,
233
233
}
234
- } else {
234
+ }
235
+ else {
235
236
if ( ! item . type ) {
236
237
item . type = 'doc'
237
238
}
@@ -252,7 +253,7 @@ function parseItems(items, root, activePath) {
252
253
return item
253
254
} )
254
255
255
- function testForActive ( i ) {
256
+ function testForActive ( i ) {
256
257
return i . active || i . items ?. some ( testForActive )
257
258
}
258
259
0 commit comments