// @ts-check import { defineConfig } from 'astro/config'; import starlight from '@astrojs/starlight'; // https://astro.build/config export default defineConfig({ site: 'https://tibi-docs.code.testversion.online', vite: { server: { allowedHosts: [ 'tibi-docs.code.testversion.online', 'localhost', '127.0.0.1', ], }, }, integrations: [ starlight({ title: 'Tibi Doku', description: 'Entwickler- und Anwender-Dokumentation für Tibi-Server und Tibi-Admin-Nova', defaultLocale: 'root', locales: { root: { label: 'Deutsch', lang: 'de' }, }, logo: { src: './src/assets/favicon.svg', replacesTitle: false, }, favicon: '/favicon.svg', customCss: ['./src/styles/custom.css'], social: [ { icon: 'github', label: 'gitbase.de', href: 'https://gitbase.de/cms/tibi-docs' }, ], editLink: { baseUrl: 'https://gitbase.de/cms/tibi-docs/_edit/master/', }, tableOfContents: { minHeadingLevel: 2, maxHeadingLevel: 3 }, sidebar: [ { label: 'Einstieg', items: [ { label: 'Was ist Tibi?', slug: 'einstieg/was-ist-tibi' }, { label: 'Schnellstart', slug: 'einstieg/schnellstart' }, { label: 'Begriffe', slug: 'einstieg/begriffe' }, ], }, ], head: [ { tag: 'link', attrs: { rel: 'preconnect', href: 'https://fonts.googleapis.com', }, }, ], }), ], });