updux/docs/astro.config.mjs

55 lines
1.7 KiB
JavaScript
Raw Normal View History

2024-08-08 13:28:44 +00:00
import { defineConfig, squooshImageService } from 'astro/config';
import starlight from '@astrojs/starlight';
// https://astro.build/config
export default defineConfig({
image: { service: squooshImageService() },
integrations: [
starlight({
title: 'Updux',
pagefind: false,
social: {
github: 'https://github.com/withastro/starlight',
},
sidebar: [
{
label: 'Home',
slug: '',
},
{
label: 'Tutorial',
autogenerate: {
directory: 'tutorial',
}
// items: [
// { label: 'Introduction', slug: 'tutorial/intro'}
// { label: 'Introduction', slug: 'tutorial/intro'}
// ]
},
{
label: 'API',
items: [
{ label: 'updux', slug: 'api/modules' },
{ label: 'defaults', slug: 'api/classes/default' },
]
},
{
label: 'Guide',
autogenerate: {
directory: 'guides',
}
},
// items: [
// // Each item here is one entry in the navigation menu.
// { label: 'Example Guide', slug: 'guides/example' },
// ],
// },
// {
// label: 'Reference',
// autogenerate: { directory: 'reference' },
// },
],
}),
],
});