Files
website/astro.config.mjs
2024-05-07 16:45:50 -04:00

94 lines
2.2 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 default defineConfig({
integrations: [starlight({
title: 'sern',
social: {
github: 'https://github.com/sern-handler',
discord: 'https://discord.gg/DwbF5H5JgQ',
},
editLink: {
baseUrl: 'https://github.com/sern-handler/website/edit/main/',
},
components: {
Head: './src/overrides/Head.astro',
SiteTitle: './src/overrides/SiteTitle.astro',
ThemeSelect: './src/overrides/ThemeSelect.astro',
},
logo: {
src: './src/assets/logo/navbar-icon.png',
replacesTitle: true,
},
customCss: [
'./src/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: 'https://github.com/sern-handler',
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()]
});