Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/trueberryless/starlight-customize-toc-additional-content. Add additional content to Starlight's tab
Something went wrong. Try again.
starlight-customize-toc-additional-content astro.config.mjs
893 B · 32 lines
JavaScript
at main
123456789101112131415161718192021222324252627282930313233// @ts-checkimport { defineConfig } from 'astro/config';import starlight from '@astrojs/starlight';
// https://astro.build/configexport default defineConfig({ integrations: [ starlight({ title: 'My Docs', social: [{ icon: 'github', label: 'GitHub', href: 'https://github.com/withastro/starlight' }], sidebar: [ { label: 'Guides', items: [ // Each item here is one entry in the navigation menu. { label: 'Example Guide', slug: 'guides/example' }, ], }, { label: 'Reference', autogenerate: { directory: 'reference' }, }, ], components: { TableOfContents: "./src/components/TableOfContents.astro", // TableOfContents: "./src/components/TableOfContentsAbove.astro", // TableOfContents: "./src/components/TableOfContentsFlexbox.astro", Pagination: "./src/components/Pagination.astro" } }), ],});