astro-ghostcms/playgrounds/starlight-playground/astro.config.mjs

38 lines
864 B
JavaScript
Raw Normal View History

2024-03-03 16:49:15 +00:00
import starlight from "@astrojs/starlight";
import starlightGhostCMS from "@matthiesenxyz/starlight-ghostcms";
import { defineConfig } from "astro/config";
2024-02-20 07:01:54 +00:00
// https://astro.build/config
export default defineConfig({
2024-02-21 13:36:27 +00:00
site: "http://localhost:4321",
2024-02-20 07:01:54 +00:00
integrations: [
starlight({
2024-03-03 16:49:15 +00:00
title: "My Docs",
2024-02-21 13:36:27 +00:00
plugins: [
starlightGhostCMS({
ghostURL: "https://ghostdemo.matthiesen.xyz",
2024-02-21 13:36:27 +00:00
title: "Demo Blog",
2024-03-03 16:49:15 +00:00
rssDescription: "Starlight Playground",
route: "blog",
2024-03-03 16:49:15 +00:00
}),
2024-02-21 13:36:27 +00:00
],
2024-02-20 07:01:54 +00:00
social: {
2024-03-03 16:49:15 +00:00
github: "https://github.com/withastro/starlight",
2024-02-20 07:01:54 +00:00
},
sidebar: [
{
2024-03-03 16:49:15 +00:00
label: "Guides",
2024-02-20 07:01:54 +00:00
items: [
// Each item here is one entry in the navigation menu.
2024-03-03 16:49:15 +00:00
{ label: "Example Guide", link: "/guides/example/" },
2024-02-20 07:01:54 +00:00
],
},
{
2024-03-03 16:49:15 +00:00
label: "Reference",
autogenerate: { directory: "reference" },
2024-02-20 07:01:54 +00:00
},
],
}),
],
2024-03-03 16:49:15 +00:00
});