Files
website/astro.config.mjs
2024-05-09 12:14:12 -04:00

98 lines
2.3 KiB
JavaScript

import { defineConfig } from 'astro/config';
import starlight from '@astrojs/starlight';
import starlightBlog from 'starlight-blog';
import tailwind from "@astrojs/tailwind";
import starlightTypeDoc, { typeDocSidebarGroup } from 'starlight-typedoc';
export const GITHUB_URL = 'https://github.com/sern-handler';
export const DISCORD_URL = 'https://discord.gg/DwbF5H5JgQ';
export default defineConfig({
integrations: [starlight({
title: 'sern',
lastUpdated: true,
social: {
github: GITHUB_URL,
discord: DISCORD_URL,
},
editLink: {
baseUrl: GITHUB_URL + '/website/edit/main/',
},
components: {
Head: '~/overrides/Head.astro',
SiteTitle: '~/overrides/SiteTitle.astro',
ThemeSelect: '~/overrides/ThemeSelect.astro',
},
logo: {
src: '~/assets/logo/navbar-icon.png',
replacesTitle: true,
},
customCss: [
'~/styles/global.css',
],
sidebar: [
typeDocSidebarGroup,
{
label: 'CLI',
autogenerate: { directory: 'cli' },
},
{
label: 'Guide',
items: [
{
label: 'Getting Started',
autogenerate: { directory: 'guide/getting-started' },
},
{
label: 'Walkthrough',
autogenerate: { directory: 'guide/walkthrough' },
},
],
},
],
plugins: [
starlightBlog({
authors: {
jacoobes: {
name: 'jacoobes',
title: 'Head Dev',
url: 'https://github.com/jacoobes',
picture: 'https://github.com/jacoobes.png',
},
ethan: {
name: 'Sr Izan',
title: 'Head Dev',
url: 'https://github.com/SrIzan10',
picture: 'https://github.com/SrIzan10.png',
},
sern: {
name: 'sern Team',
url: GITHUB_URL,
picture: 'https://github.com/sernbot.png',
},
murtatrxx: {
name: 'Murtatrxx',
title: 'Head Dev',
url: 'https://github.com/Murtatrxx',
picture: 'https://github.com/Murtatrxx.png',
},
duro: {
name: 'Duro',
title: 'Developer',
url: 'https://github.com/DuroCodes',
picture: 'https://github.com/DuroCodes.png',
},
}
}),
starlightTypeDoc({
tsconfig: './sern-handler/tsconfig.json',
entryPoints: ['./sern-handler/src/index.ts'],
autogenerate: {
directory: 'api',
},
sidebar: { collapsed: true },
}),
],
}), tailwind()]
});