2024-12-26 15:43:26 -05:00
|
|
|
// @ts-check
|
|
|
|
import { defineConfig } from 'astro/config';
|
|
|
|
import starlight from '@astrojs/starlight';
|
2024-12-27 02:06:36 -05:00
|
|
|
import sidebarFr from './src/sidebars/fr/sidebar';
|
2024-12-26 15:43:26 -05:00
|
|
|
|
|
|
|
// https://astro.build/config
|
|
|
|
export default defineConfig({
|
2024-12-27 02:06:36 -05:00
|
|
|
trailingSlash: 'always',
|
2024-12-26 15:43:26 -05:00
|
|
|
integrations: [
|
|
|
|
starlight({
|
2024-12-27 02:06:36 -05:00
|
|
|
title: 'Open Source Québec',
|
|
|
|
defaultLocale: 'fr',
|
|
|
|
locales: {
|
|
|
|
fr: {
|
|
|
|
label: 'Français'
|
|
|
|
}
|
2024-12-26 15:43:26 -05:00
|
|
|
},
|
2024-12-27 02:06:36 -05:00
|
|
|
social: { // todo: implement gitea social
|
|
|
|
github: 'https://git.quebec',
|
|
|
|
},
|
|
|
|
sidebar: sidebarFr
|
2024-12-26 15:43:26 -05:00
|
|
|
}),
|
|
|
|
],
|
2024-12-27 02:06:36 -05:00
|
|
|
redirects: {
|
|
|
|
'/': {
|
|
|
|
status: 302, // Temporary redirect
|
|
|
|
destination: '/fr/',
|
|
|
|
},
|
|
|
|
},
|
2024-12-26 15:43:26 -05:00
|
|
|
});
|