emigrate/docs/astro.config.mjs

100 lines
2.8 KiB
JavaScript

import { defineConfig } from 'astro/config';
import starlight from '@astrojs/starlight';
// https://astro.build/config
export default defineConfig({
integrations: [
starlight({
title: 'Emigrate',
social: {
github: 'https://github.com/aboviq/emigrate',
},
editLink: {
baseUrl: 'https://github.com/aboviq/emigrate/edit/main/docs/',
},
components: {
PageTitle: './src/components/PageTitle.astro',
},
sidebar: [
{
label: 'Introduction',
items: [
{
label: "What's Emigrate?",
link: '/intro/whats-emigrate/',
},
{
label: 'Quick Start',
link: '/intro/quick-start/',
},
{
label: 'FAQ',
link: '/intro/faq/',
},
],
},
{
label: 'Commands',
items: [
{
label: 'emigrate up',
link: '/commands/up/',
},
{
label: 'emigrate list',
link: '/commands/list/',
},
{
label: 'emigrate new',
link: '/commands/new/',
},
{
label: 'emigrate remove',
link: '/commands/remove/',
},
],
},
{
label: 'Plugins',
items: [
{
label: 'Introduction',
link: '/plugins/',
},
{
label: 'Storage Plugins',
collapsed: true,
items: [
{ label: 'Introduction', link: '/plugins/storage/' },
{ label: 'File System', link: '/plugins/storage/file-system/' },
{ label: 'MySQL', link: '/plugins/storage/mysql/' },
],
},
{
label: 'Loader Plugins',
collapsed: true,
items: [
{ label: 'Introduction', link: '/plugins/loaders/' },
{ label: 'Default Loader', link: '/plugins/loaders/default/' },
{ label: 'MySQL Loader', link: '/plugins/loaders/mysql/' },
],
},
{
label: 'Reporters',
collapsed: true,
items: [
{ label: 'Introduction', link: '/plugins/reporters/' },
{ label: 'Default Reporter', link: '/plugins/reporters/default/', badge: 'WIP' },
{ label: 'Pino Reporter', link: '/plugins/reporters/pino/', badge: 'WIP' },
],
},
],
},
{
label: 'Reference',
autogenerate: { directory: 'reference' },
},
],
}),
],
});