You've already forked AstralRinth
forked from didirus/AstralRinth
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
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
import { defineConfig } from 'astro/config';
|
import starlight from '@astrojs/starlight'
|
||||||
import starlight from '@astrojs/starlight';
|
import { defineConfig } from 'astro/config'
|
||||||
import starlightOpenAPI, { openAPISidebarGroups } from 'starlight-openapi'
|
import starlightOpenAPI, { openAPISidebarGroups } from 'starlight-openapi'
|
||||||
|
|
||||||
// https://astro.build/config
|
// https://astro.build/config
|
||||||
@@ -8,15 +8,16 @@ export default defineConfig({
|
|||||||
integrations: [
|
integrations: [
|
||||||
starlight({
|
starlight({
|
||||||
title: 'Modrinth Documentation',
|
title: 'Modrinth Documentation',
|
||||||
|
favicon: '/favicon.ico',
|
||||||
editLink: {
|
editLink: {
|
||||||
baseUrl: 'https://github.com/modrinth/code/edit/main/apps/docs/',
|
baseUrl: 'https://github.com/modrinth/code/edit/main/apps/docs/',
|
||||||
},
|
},
|
||||||
social: {
|
social: {
|
||||||
github: 'https://github.com/modrinth/code',
|
github: 'https://github.com/modrinth/code',
|
||||||
discord: 'https://discord.modrinth.com',
|
discord: 'https://discord.modrinth.com',
|
||||||
'x.com': 'https://x.com/modrinth',
|
'x.com': 'https://x.com/modrinth',
|
||||||
mastodon: 'https://floss.social/@modrinth',
|
mastodon: 'https://floss.social/@modrinth',
|
||||||
threads: 'https://threads.net/@modrinth',
|
threads: 'https://threads.net/@modrinth',
|
||||||
},
|
},
|
||||||
logo: {
|
logo: {
|
||||||
light: './src/assets/light-logo.svg',
|
light: './src/assets/light-logo.svg',
|
||||||
@@ -36,16 +37,16 @@ export default defineConfig({
|
|||||||
label: 'Modrinth API',
|
label: 'Modrinth API',
|
||||||
schema: './public/openapi.yaml',
|
schema: './public/openapi.yaml',
|
||||||
},
|
},
|
||||||
])
|
]),
|
||||||
],
|
],
|
||||||
sidebar: [
|
sidebar: [
|
||||||
{
|
{
|
||||||
label: 'Contributing to Modrinth',
|
label: 'Contributing to Modrinth',
|
||||||
autogenerate: { directory: 'contributing' },
|
autogenerate: { directory: 'contributing' },
|
||||||
},
|
},
|
||||||
// Add the generated sidebar group to the sidebar.
|
// Add the generated sidebar group to the sidebar.
|
||||||
...openAPISidebarGroups,
|
...openAPISidebarGroups,
|
||||||
],
|
],
|
||||||
}),
|
}),
|
||||||
],
|
],
|
||||||
});
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user