From 72dab1203353b8b4a52eba5f47763e4a3c7c794e Mon Sep 17 00:00:00 2001 From: Erb3 <49862976+Erb3@users.noreply.github.com> Date: Thu, 24 Oct 2024 22:24:13 +0200 Subject: [PATCH] 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 --- apps/docs/astro.config.mjs | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/apps/docs/astro.config.mjs b/apps/docs/astro.config.mjs index a311a155..4fcf82fa 100644 --- a/apps/docs/astro.config.mjs +++ b/apps/docs/astro.config.mjs @@ -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' // https://astro.build/config @@ -8,15 +8,16 @@ export default defineConfig({ integrations: [ starlight({ title: 'Modrinth Documentation', + favicon: '/favicon.ico', editLink: { baseUrl: 'https://github.com/modrinth/code/edit/main/apps/docs/', }, social: { - github: 'https://github.com/modrinth/code', - discord: 'https://discord.modrinth.com', - 'x.com': 'https://x.com/modrinth', - mastodon: 'https://floss.social/@modrinth', - threads: 'https://threads.net/@modrinth', + github: 'https://github.com/modrinth/code', + discord: 'https://discord.modrinth.com', + 'x.com': 'https://x.com/modrinth', + mastodon: 'https://floss.social/@modrinth', + threads: 'https://threads.net/@modrinth', }, logo: { light: './src/assets/light-logo.svg', @@ -36,16 +37,16 @@ export default defineConfig({ label: 'Modrinth API', schema: './public/openapi.yaml', }, - ]) + ]), ], sidebar: [ { - label: 'Contributing to Modrinth', - autogenerate: { directory: 'contributing' }, + label: 'Contributing to Modrinth', + autogenerate: { directory: 'contributing' }, }, // Add the generated sidebar group to the sidebar. ...openAPISidebarGroups, ], }), ], -}); +})