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({
|
2024-08-20 21:54:59 +02:00
|
|
|
site: "https://shulkerscript.hoelting.dev",
|
2024-04-03 00:09:47 +02:00
|
|
|
integrations: [
|
|
|
|
starlight({
|
|
|
|
title: 'ShulkerScript',
|
|
|
|
logo: {
|
|
|
|
src: './src/assets/logo.webp',
|
|
|
|
alt: 'ShulkerScript Logo',
|
|
|
|
},
|
|
|
|
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',
|
|
|
|
},
|
2024-04-03 13:57:10 +02:00
|
|
|
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',
|
|
|
|
},
|
2024-04-06 23:28:06 +02:00
|
|
|
translations: {
|
|
|
|
de: 'Anleitungen',
|
|
|
|
}
|
|
|
|
},
|
2024-08-20 21:54:59 +02:00
|
|
|
{
|
|
|
|
label: 'Differences to other languages',
|
|
|
|
link: '/differences',
|
|
|
|
translations: {
|
|
|
|
de: 'Unterschiede zu anderen Sprachen',
|
|
|
|
},
|
|
|
|
},
|
2024-04-06 23:28:06 +02:00
|
|
|
{
|
|
|
|
label: 'Roadmap',
|
|
|
|
link: '/roadmap',
|
|
|
|
translations: {
|
|
|
|
de: 'Zukunftspläne',
|
|
|
|
},
|
2024-04-03 00:09:47 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
label: 'Reference',
|
|
|
|
autogenerate: {
|
|
|
|
directory: 'reference',
|
|
|
|
},
|
2024-04-06 23:28:06 +02:00
|
|
|
collapsed: true,
|
|
|
|
translations: {
|
|
|
|
de: 'Referenz',
|
|
|
|
},
|
2024-04-03 00:09:47 +02:00
|
|
|
badge: {
|
|
|
|
text: 'WIP',
|
|
|
|
variant: 'caution',
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}),
|
|
|
|
],
|
|
|
|
});
|