mirror of
https://github.com/SrIzan10/starlight-typedoc.git
synced 2026-05-01 11:05:15 +00:00
62 lines
1.8 KiB
TypeScript
62 lines
1.8 KiB
TypeScript
import starlight from '@astrojs/starlight'
|
|
import { defineConfig } from 'astro/config'
|
|
|
|
const site =
|
|
process.env['VERCEL_ENV'] !== 'production' && process.env['VERCEL_URL']
|
|
? `https://${process.env['VERCEL_URL']}`
|
|
: 'https://starlight-typedoc.vercel.app/'
|
|
|
|
export default defineConfig({
|
|
integrations: [
|
|
starlight({
|
|
customCss: ['./src/styles/custom.css'],
|
|
editLink: {
|
|
baseUrl: 'https://github.com/HiDeoo/starlight-typedoc/edit/main/docs/',
|
|
},
|
|
head: [
|
|
{
|
|
tag: 'meta',
|
|
attrs: { property: 'og:image', content: new URL('og.jpg', site).href },
|
|
},
|
|
{
|
|
tag: 'meta',
|
|
attrs: {
|
|
property: 'og:image:alt',
|
|
content: 'Starlight plugin to generate documentation from TypeScript using TypeDoc.',
|
|
},
|
|
},
|
|
],
|
|
sidebar: [
|
|
{
|
|
label: 'Start Here',
|
|
items: [
|
|
{ label: 'Getting Started', link: '/getting-started/' },
|
|
{ label: 'Configuration', link: '/configuration/' },
|
|
],
|
|
},
|
|
{
|
|
label: 'Guides',
|
|
items: [
|
|
{ label: 'Multiple Instances', link: '/guides/multiple-instances/' },
|
|
{ label: 'Frontmatter', link: '/guides/frontmatter/' },
|
|
],
|
|
},
|
|
{
|
|
label: 'Resources',
|
|
items: [
|
|
{ label: 'Showcase', link: '/resources/showcase/' },
|
|
{ label: 'Plugins and Tools', link: '/resources/starlight/' },
|
|
],
|
|
},
|
|
{ label: 'Demo', link: 'https://starlight-typedoc-example.vercel.app/api/functions/dothingc/' },
|
|
],
|
|
social: {
|
|
blueSky: 'https://bsky.app/profile/hideoo.dev',
|
|
github: 'https://github.com/HiDeoo/starlight-typedoc',
|
|
},
|
|
title: 'Starlight TypeDoc',
|
|
}),
|
|
],
|
|
site,
|
|
})
|