55 lines
1.7 KiB
JavaScript
55 lines
1.7 KiB
JavaScript
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' },
|
|
// },
|
|
],
|
|
}),
|
|
],
|
|
});
|