shulkerscript-webpage/astro.config.mjs

88 lines
1.9 KiB
JavaScript
Raw Normal View History

2024-04-03 00:09:47 +02:00
import { defineConfig } from 'astro/config';
import starlight from '@astrojs/starlight';
import starlightLinksValidator from "starlight-links-validator";
import shikiConfig from './src/utils/shiki';
// https://astro.build/config
export default defineConfig({
site: "https://shulkerscript.hoelting.dev",
2024-04-03 00:09:47 +02:00
integrations: [
starlight({
2024-09-30 17:23:40 +02:00
title: 'Shulkerscript',
2024-04-03 00:09:47 +02:00
logo: {
src: './src/assets/logo.webp',
2024-09-30 17:23:40 +02:00
alt: 'Shulkerscript Logo',
2024-04-03 00:09:47 +02:00
},
favicon: '/favicon.ico',
description: 'A simple and powerful scripting language for Minecraft datapacks.',
social: {
2024-09-22 00:12:57 +02:00
email: 'mailto:shulkerscript@hoelting.dev',
2024-04-03 00:09:47 +02:00
},
tableOfContents: { minHeadingLevel: 1, maxHeadingLevel: 3 },
defaultLocale: 'root',
locales: {
root: {
label: 'English',
lang: 'en',
},
de: {
label: 'Deutsch',
lang: 'de',
},
},
editLink: {
baseUrl: 'https://github.com/moritz-hoelting/shulkerscript-webpage/edit/main',
},
customCss: ['./src/styles/style.css'],
2024-04-03 00:09:47 +02:00
plugins: [starlightLinksValidator({
errorOnFallbackPages: false,
})],
expressiveCode: {
shiki: shikiConfig,
},
2024-09-22 00:12:57 +02:00
components: {
SocialIcons: './src/components/override/SocialIcons.astro',
},
2024-04-03 00:09:47 +02:00
sidebar: [
{
label: 'Guides',
autogenerate: {
directory: 'guides',
},
translations: {
de: 'Anleitungen',
}
},
{
label: 'Differences to other languages',
link: '/differences',
translations: {
de: 'Unterschiede zu anderen Sprachen',
},
},
{
label: 'Roadmap',
link: '/roadmap',
translations: {
de: 'Zukunftspläne',
},
2024-04-03 00:09:47 +02:00
},
{
label: 'Reference',
autogenerate: {
directory: 'reference',
},
collapsed: true,
translations: {
de: 'Referenz',
},
2024-04-03 00:09:47 +02:00
badge: {
text: 'WIP',
variant: 'caution',
}
}
]
}),
],
});