Skip to content

Commit da4076c

Browse files
committed
Fix config change
1 parent cf771a7 commit da4076c

File tree

1 file changed

+14
-10
lines changed

1 file changed

+14
-10
lines changed

astro.config.mjs

+14-10
Original file line numberDiff line numberDiff line change
@@ -7,23 +7,23 @@ const rescriptTM = JSON.parse(
77
readFileSync("./docs/assets/rescript.tmLanguage.json", "utf-8"),
88
);
99

10-
const apiSidebarItems = apiModules.map(({ moduleName, link, items }) => {
10+
const apiSidebarItems = apiModules.map(({ moduleName, link, items }) => {
1111
const nestedItems = Object.values(items).map(({ moduleName, link }) => ({
1212
label: moduleName,
13-
link
13+
link,
1414
}));
1515

16-
return ({
16+
return {
1717
label: moduleName,
1818
collapsed: true,
1919
items: [
2020
{
2121
label: `Overview`,
22-
link
22+
link,
2323
},
24-
...nestedItems
25-
]
26-
});
24+
...nestedItems,
25+
],
26+
};
2727
});
2828

2929
export default defineConfig({
@@ -37,9 +37,13 @@ export default defineConfig({
3737
logo: {
3838
src: "./docs/assets/rescript-logo.svg",
3939
},
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+
],
4347
editLink: {
4448
baseUrl:
4549
"https://github.com/rescript-lang/experimental-rescript-webapi/edit/main/",

0 commit comments

Comments
 (0)