Files
gregWiki/astro.config.mjs
2026-04-15 23:38:15 +02:00

56 lines
1.4 KiB
JavaScript

import { defineConfig } from 'astro/config';
import starlight from '@astrojs/starlight';
import react from '@astrojs/react';
import tailwindcss from '@tailwindcss/vite';
// https://astro.build/config
export default defineConfig({
site: 'https://wiki.gregframework.eu',
integrations: [
starlight({
title: 'gregWiki',
description: 'The authoritative documentation for gregFramework and Data Center modding.',
social: [
{ icon: 'github', label: 'GitHub', href: 'https://github.com/mleem97/gregCore' },
],
editLink: {
baseUrl: 'https://github.com/mleem97/gregFramework/edit/main/gregWiki/',
},
sidebar: [
{
label: 'Getting Started',
autogenerate: { directory: '01_getting-started' },
},
{
label: 'Development',
autogenerate: { directory: '02_development' },
},
{
label: 'Design System',
autogenerate: { directory: '03_design-system' },
},
{
label: 'Community',
autogenerate: { directory: '04_community' },
},
{
label: 'Legal',
autogenerate: { directory: '05_legal' },
},
{
label: 'Tools',
autogenerate: { directory: '06_tools' },
},
],
customCss: [
'./src/styles/custom.css',
'./src/styles/global.css',
],
}),
react(),
],
vite: {
plugins: [tailwindcss()],
},
});