File tree 1 file changed +14
-10
lines changed
1 file changed +14
-10
lines changed Original file line number Diff line number Diff line change @@ -7,23 +7,23 @@ const rescriptTM = JSON.parse(
7
7
readFileSync ( "./docs/assets/rescript.tmLanguage.json" , "utf-8" ) ,
8
8
) ;
9
9
10
- const apiSidebarItems = apiModules . map ( ( { moduleName, link, items } ) => {
10
+ const apiSidebarItems = apiModules . map ( ( { moduleName, link, items } ) => {
11
11
const nestedItems = Object . values ( items ) . map ( ( { moduleName, link } ) => ( {
12
12
label : moduleName ,
13
- link
13
+ link,
14
14
} ) ) ;
15
15
16
- return ( {
16
+ return {
17
17
label : moduleName ,
18
18
collapsed : true ,
19
19
items : [
20
20
{
21
21
label : `Overview` ,
22
- link
22
+ link,
23
23
} ,
24
- ...nestedItems
25
- ]
26
- } ) ;
24
+ ...nestedItems ,
25
+ ] ,
26
+ } ;
27
27
} ) ;
28
28
29
29
export default defineConfig ( {
@@ -37,9 +37,13 @@ export default defineConfig({
37
37
logo : {
38
38
src : "./docs/assets/rescript-logo.svg" ,
39
39
} ,
40
- social : {
41
- github : "https://github.com/rescript-lang/experimental-rescript-webapi" ,
42
- } ,
40
+ social : [
41
+ {
42
+ icon : "github" ,
43
+ label : "GitHub" ,
44
+ href : "https://github.com/rescript-lang/experimental-rescript-webapi" ,
45
+ } ,
46
+ ] ,
43
47
editLink : {
44
48
baseUrl :
45
49
"https://github.com/rescript-lang/experimental-rescript-webapi/edit/main/" ,
You can’t perform that action at this time.
0 commit comments