fix(docs): Updated file, to automatically search for MDX files.

The MDX files are automatically placed in the ADM and ADR subfolders in the documentation
This commit is contained in:
2026-07-14 19:48:44 +02:00
parent 080987ca52
commit 869ea55378
+22 -9
View File
@@ -2,23 +2,36 @@
import { defineConfig } from 'astro/config'; import { defineConfig } from 'astro/config';
import starlight from '@astrojs/starlight'; import starlight from '@astrojs/starlight';
// https://astro.build/config // https://astro.build/config
export default defineConfig({ export default defineConfig({
integrations: [ integrations: [
starlight({ starlight({
title: 'My Docs', title: 'LUNA-Charts',
social: [{ icon: 'github', label: 'GitHub', href: 'https://github.com/withastro/starlight' }], social: [
{
icon: 'github',
label: 'GitHub',
href: 'https://git.byting-pandas.ninja/Ninosaurier/LUNA-Charts',
},
],
sidebar: [ sidebar: [
{ {
label: 'Guides', label: 'Start Here',
items: [ items: [{ label: 'Getting Started', slug: 'getting-started' }],
// Each item here is one entry in the navigation menu.
{ label: 'Example Guide', slug: 'guides/example' },
],
}, },
{ {
label: 'Reference', label: 'Architecture',
items: [{ autogenerate: { directory: 'reference' } }], items: [
{
label: 'ADM',
items: [{ autogenerate: { "directory": "architecture/adm" } }],
},
{
label: 'ADRs',
items: [{ autogenerate: { "directory": "architecture/adr" } }],
},
],
}, },
], ],
}), }),