astro-open-source-quebec/astro.config.mjs

48 lines
973 B
JavaScript
Raw Permalink Normal View History

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',
vite: {
resolve: {
alias: {
'@components': '/src/content/components',
'@assets': '/src/assets'
}
}
},
2024-12-26 15:43:26 -05:00
integrations: [
starlight({
2024-12-27 02:06:36 -05:00
title: 'Open Source Québec',
logo: {
src: './src/assets/images/open-source-quebec-logo-fit.svg',
alt: 'Open Source Québec',
replacesTitle: true
},
2024-12-27 02:06:36 -05:00
defaultLocale: 'fr',
customCss: [
// Chemin relatif vers votre fichier CSS @font-face.
'/src/fonts/font-face.css',
],
2024-12-27 02:06:36 -05:00
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
});