astro-cqrs-framework-doc/astro.config.mjs

65 lines
1.5 KiB
JavaScript
Raw Normal View History

2024-12-22 15:27:14 -05:00
// @ts-check
import { defineConfig } from 'astro/config';
import starlight from '@astrojs/starlight';
// https://astro.build/config
export default defineConfig({
2024-12-23 02:56:09 -05:00
/*redirects: {
'/': '/en/'
},*/
trailingSlash: 'always',
2024-12-22 15:27:14 -05:00
integrations: [
starlight({
2024-12-23 02:56:09 -05:00
title: 'Open Harbor',
logo: {
replacesTitle: true,
light: './src/assets/logo.png',
dark: './src/assets/dark-logo.png',
},
defaultLocale: 'en',
locales: {
en: {
label: 'English'
},
fr: {
label: 'Français'
}
},
social: { // todo: implement gitea social
github: 'https://git.openharbor.io/Open-Harbor/dotnet-cqrs',
2024-12-22 15:27:14 -05:00
},
2024-12-23 02:56:09 -05:00
customCss: [
'./src/styles/global.css'
],
2024-12-22 15:27:14 -05:00
sidebar: [
{
2024-12-23 02:56:09 -05:00
label: '.NET',
items: [
{
label: 'Guides',
items: [
{ label: 'Concept', slug: 'dotnet/guides/concept' },
{ label: 'Getting Started', slug: 'dotnet/guides/getting-started' },
{ label: 'Adding your first command', slug: 'dotnet/guides/first-command' },
]
},
{
label: 'References',
items: [
'dotnet/references/example'
]
},
{
label: 'Resources',
items: [
'dotnet/resources/nugets',
{ label: 'Git', link: 'https://git.openharbor.io/Open-Harbor/dotnet-cqrs' }
]
}
],
}
2024-12-22 15:27:14 -05:00
],
}),
],
});