wcb/docs/astro.config.mjs

32 lines
745 B
JavaScript

// @ts-check
import { defineConfig } from 'astro/config'
import starlight from '@astrojs/starlight'
// https://astro.build/config
export default defineConfig({
redirects: {
'/': '/guides',
},
integrations: [
starlight({
title: 'WCB',
social: {
npm: 'https://www.npmjs.com/package/web-component-base',
sourcehut: 'https://sr.ht/~ayoayco/wcb/',
},
sidebar: [
{
label: 'Guides',
items: [
// Each item here is one entry in the navigation menu.
{ label: 'Getting Started', slug: 'guides' },
],
},
{
label: 'Reference',
autogenerate: { directory: 'reference' },
},
],
}),
],
})