This repository has been archived on 2024-10-15. You can view files and clone it, but cannot push or open issues or pull requests.
starlight/astro.config.mjs

49 lines
1.1 KiB
JavaScript
Raw Permalink Normal View History

2024-09-21 09:38:00 +00:00
import { defineConfig } from 'astro/config';
import starlight from '@astrojs/starlight';
2024-09-28 11:04:57 +00:00
import remarkMath from 'remark-math';
import rehypeMathjax from 'rehype-mathjax';
2024-09-21 09:38:00 +00:00
// https://astro.build/config
export default defineConfig({
integrations: [
starlight({
title: 'My Docs',
social: {
github: 'https://github.com/withastro/starlight',
},
sidebar: [
{
label: 'Guides',
items: [
// Each item here is one entry in the navigation menu.
{ label: 'Example Guide', slug: 'guides/example' },
2024-09-28 11:04:57 +00:00
{ label: 'Privacy', slug: 'guides/privacy' },
{ label: 'Authoring Tools', slug: 'guides/authoring' }
// { label: 'Mathe Klausur', slug: 'guides/math'}
2024-09-21 09:38:00 +00:00
],
},
{
label: 'Reference',
autogenerate: { directory: 'reference' },
},
],
2024-09-28 11:04:57 +00:00
defaultLocale: 'root',
locales: {
// English docs in `src/content/docs/en/`
root: {
label: 'English',
lang: "en",
},
// de: {
// label: 'Deutsch',
// },
},
2024-09-21 09:38:00 +00:00
}),
],
2024-09-28 11:04:57 +00:00
markdown: {
remarkPlugins: [remarkMath], // I need math support!
rehypePlugins: [rehypeMathjax],
},
2024-09-21 09:38:00 +00:00
});