mirror of
https://github.com/FxEmbed/FxEmbed.git
synced 2026-10-02 01:54:54 +08:00
80 lines
2.9 KiB
JavaScript
80 lines
2.9 KiB
JavaScript
import starlight from '@astrojs/starlight';
|
|
import { defineConfig } from 'astro/config';
|
|
import starlightOpenAPI, { openAPISidebarGroups } from 'starlight-openapi';
|
|
|
|
export default defineConfig({
|
|
redirects: {},
|
|
integrations: [
|
|
starlight({
|
|
title: 'FxEmbed',
|
|
favicon: '/fxembed.svg',
|
|
logo: {
|
|
src: './src/assets/fxembed.svg'
|
|
},
|
|
social: [{ icon: 'github', label: 'GitHub', href: 'https://github.com/FxEmbed/FxEmbed' }],
|
|
customCss: ['./src/styles/custom.css'],
|
|
plugins: [
|
|
starlightOpenAPI([
|
|
{
|
|
base: 'api/twitter',
|
|
label: 'FxTwitter API',
|
|
schema: './specs/fxtwitter-openapi.json'
|
|
},
|
|
{
|
|
base: 'api/bluesky',
|
|
label: 'FxBluesky API',
|
|
schema: './specs/fxbluesky-openapi.json'
|
|
}
|
|
])
|
|
],
|
|
sidebar: [
|
|
{
|
|
label: 'User Guide',
|
|
items: [
|
|
{ label: 'Getting Started', slug: 'guide/getting-started' },
|
|
{ label: 'Built-In Features', slug: 'guide/built-in-features' },
|
|
{
|
|
label: 'URL Modifiers',
|
|
collapsed: false,
|
|
items: [
|
|
{ label: 'Overview', link: '/guide/url-modifiers/' },
|
|
{ label: 'Direct media (d.)', slug: 'guide/url-modifiers/direct-media' },
|
|
{ label: 'Select media', slug: 'guide/url-modifiers/select-photo' },
|
|
{ label: 'Translate', slug: 'guide/url-modifiers/translate' },
|
|
{ label: 'Mosaic (m.)', slug: 'guide/url-modifiers/mosaic' },
|
|
{ label: 'Gallery (g.)', slug: 'guide/url-modifiers/gallery' },
|
|
{ label: 'Text-only (t.)', slug: 'guide/url-modifiers/text-only' },
|
|
{ label: 'Instant View (i.)', slug: 'guide/url-modifiers/instant-view' },
|
|
{ label: 'Old embeds (o.)', slug: 'guide/url-modifiers/old-embeds' }
|
|
]
|
|
},
|
|
{
|
|
label: 'Advanced',
|
|
items: [
|
|
{ label: 'RSS & Atom feeds', slug: 'guide/advanced/rss-atom-feeds' },
|
|
{ label: 'Custom Redirect', slug: 'guide/advanced/custom-redirect' },
|
|
{ label: 'Custom Embed Branding', slug: 'guide/advanced/custom-branding' }
|
|
]
|
|
},
|
|
{ label: 'Compare Features', slug: 'guide/compare' },
|
|
{ label: 'FAQ', slug: 'guide/faq' }
|
|
]
|
|
},
|
|
{
|
|
label: 'API Reference',
|
|
items: [{ label: 'Introduction', slug: 'api/introduction' }, ...openAPISidebarGroups]
|
|
},
|
|
{
|
|
label: 'Deployment',
|
|
items: [
|
|
{ label: 'Self-Hosting', slug: 'deployment' },
|
|
{ label: 'Mosaic', slug: 'deployment/mosaic' },
|
|
{ label: 'Configuration', slug: 'deployment/configuration' },
|
|
{ label: 'Credentials', slug: 'deployment/credentials' }
|
|
]
|
|
}
|
|
]
|
|
})
|
|
]
|
|
});
|