mvk/astro.config.mjs

65 lines
1.8 KiB
JavaScript

// @ts-check
import { defineConfig } from 'astro/config';
import starlight from '@astrojs/starlight';
import starlightHeadingBadges from 'starlight-heading-badges'
// https://astro.build/config
export default defineConfig({
integrations: [
starlight({
plugins: [starlightHeadingBadges()],
title: 'MinimalViableK8s',
social: [{ icon: 'github', label: 'GitHub', href: 'https://codeberg.org/headshed/infctl-cli' }],
head: [
{
tag: 'script',
attrs: {
defer: true,
'data-domain': 'mvk.headshed.dev',
src: 'https://stats.headshed.dev/js/script.js'
}
}
],
sidebar: [
{
label: 'MVK',
items: [
// Each item here is one entry in the navigation menu.
{ label: 'Minimal Viable Kubernetes', slug: 'mvk/intro' },
],
},
{
label: 'infctl',
items: [
// Each item here is one entry in the navigation menu.
{ label: 'Introduction', slug: 'infctl/intro' },
{ label: 'Quick Start Guide', slug: 'infctl/quick-start' },
{ label: 'Configuration', slug: 'infctl/configuration' },
],
},
{
label: 'Microlearning',
autogenerate: { directory: 'guides' },
// items: [
// { label: 'Local Dev Environment', slug: 'guides/dev-env' },
// { label: 'Create a Local K3d Instance', slug: 'guides/local-k3d' },
// { label: 'Initial Pipeline Run', slug: 'guides/infctl-first-run' },
// { label: 'Create a vagrant 3 node cluster', slug: 'guides/local-vagrant-cluster' },
// { label: 'Add Longhorn Storage', slug: 'guides/local-vagrant-cluster-storage' },
// { label: 'Add Ingress', slug: 'guides/local-vagrant-cluster-ingress' },
// ],
},
{
label: 'Reference',
autogenerate: { directory: 'reference' },
},
],
}),
],
});