astro-ghostcms/www/astro.config.mjs

45 lines
2.0 KiB
JavaScript
Raw Normal View History

2024-01-23 20:03:56 +00:00
import { defineConfig } from 'astro/config';
import fs from 'node:fs';
import { ExpressiveCodeTheme } from '@astrojs/starlight/expressive-code';
import starlight from "@astrojs/starlight";
2024-01-25 08:54:05 +00:00
const houstonFile = './houston-vscode.jsonc';
2024-01-23 20:03:56 +00:00
const houston = fs.readFileSync(
new URL(houstonFile, import.meta.url),'utf-8');
const houstonTheme = ExpressiveCodeTheme.fromJSONString(houston);
// https://astro.build/config
export default defineConfig({
site: 'https://astro-ghostcms.xyz',
integrations: [
starlight({
title: 'Astro-GhostCMS',
logo: {
2024-01-30 19:53:51 +00:00
src: './src/assets/spaceghost.png'
2024-01-23 20:03:56 +00:00
},
2024-01-30 19:53:51 +00:00
favicon: 'spaceghost.png',
2024-01-23 20:03:56 +00:00
customCss: [ './src/styles/starlight.css' ],
expressiveCode: { themes: [ houstonTheme ] },
social: {
github: 'https://github.com/MatthiesenXYZ/astro-ghostcms',
},
sidebar: [
{ label: 'Docs Home', link: '/docs/' },
{ label: 'Introduction', items: [
{ label: 'Getting Started', link: '/docs/introduction/getting-started' },
{ label: 'Integration Mode', items: [
{ label: 'Quick Install', link: '/docs/introduction/integration/quick' },
{ label: 'Manual Install', link: '/docs/introduction/integration/manual' },
{ label: 'Configuration Options', link: '/docs/introduction/integration/config',
badge: { text: 'BETA', variant: 'caution' }, }, ], },
{ label: 'API ( DIY ) Mode', items: [
{ label: 'Install', link: '/docs/introduction/api/install' },
2024-01-26 08:09:55 +00:00
{ label: 'Basic API Usage', link: '/docs/introduction/api/usage' },
{ label: 'Templates', link: '/docs/introduction/api/templates', badge: { text: 'NEW', variant: 'success' }, } ], }, ], },
2024-01-25 08:54:05 +00:00
{ label: 'Default Theme Usage', autogenerate: { directory: 'docs/theme-default'}, },
2024-01-23 20:03:56 +00:00
{ label: 'Tutorials', autogenerate: { directory: 'docs/tutorials' }, },
{ label: 'Reference', autogenerate: { directory: 'docs/reference' }, },
],
}),
],
});