Skip to content

Commit 72dab12

Browse files
authored
fix(docs): correct favicon url (#2843)
Starlight defaults to favicon.svg, however a favicon.ico was added to the repo. Changes: - Format astro config according to Prettier - Properly set favicon
1 parent ce4b4ba commit 72dab12

File tree

1 file changed

+12
-11
lines changed

1 file changed

+12
-11
lines changed

apps/docs/astro.config.mjs

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { defineConfig } from 'astro/config';
2-
import starlight from '@astrojs/starlight';
1+
import starlight from '@astrojs/starlight'
2+
import { defineConfig } from 'astro/config'
33
import starlightOpenAPI, { openAPISidebarGroups } from 'starlight-openapi'
44

55
// https://astro.build/config
@@ -8,15 +8,16 @@ export default defineConfig({
88
integrations: [
99
starlight({
1010
title: 'Modrinth Documentation',
11+
favicon: '/favicon.ico',
1112
editLink: {
1213
baseUrl: 'https://github.com/modrinth/code/edit/main/apps/docs/',
1314
},
1415
social: {
15-
github: 'https://github.com/modrinth/code',
16-
discord: 'https://discord.modrinth.com',
17-
'x.com': 'https://x.com/modrinth',
18-
mastodon: 'https://floss.social/@modrinth',
19-
threads: 'https://threads.net/@modrinth',
16+
github: 'https://github.com/modrinth/code',
17+
discord: 'https://discord.modrinth.com',
18+
'x.com': 'https://x.com/modrinth',
19+
mastodon: 'https://floss.social/@modrinth',
20+
threads: 'https://threads.net/@modrinth',
2021
},
2122
logo: {
2223
light: './src/assets/light-logo.svg',
@@ -36,16 +37,16 @@ export default defineConfig({
3637
label: 'Modrinth API',
3738
schema: './public/openapi.yaml',
3839
},
39-
])
40+
]),
4041
],
4142
sidebar: [
4243
{
43-
label: 'Contributing to Modrinth',
44-
autogenerate: { directory: 'contributing' },
44+
label: 'Contributing to Modrinth',
45+
autogenerate: { directory: 'contributing' },
4546
},
4647
// Add the generated sidebar group to the sidebar.
4748
...openAPISidebarGroups,
4849
],
4950
}),
5051
],
51-
});
52+
})

0 commit comments

Comments
 (0)