Starlight Blog Changelog
Version 0.5.0
🚨 Breaking Changes
-
Bumps minimum required Astro version to 4.2.7 and Starlight to 0.19.0 - by @HiDeoo (a9fc3)
-
Starlight Blog is now a Starlight plugin - by @HiDeoo (bbb9d)
You will need to update your Astro configuration to remove the previous version and add the new version as a Starlight plugin in your
astro.config.mjs
file:import starlight from "@astrojs/starlight";import { defineConfig } from "astro/config";import starlightBlog from 'starlight-blog';export default defineConfig({// …integrations: [starlightBlog(),starlight({plugins: [starlightBlog()],title: "My Docs",}),],});You will also need to update Starlight’s frontmatter schema in the
src/content/config.ts
file:import { docsSchema, i18nSchema } from '@astrojs/starlight/schema';import { defineCollection } from 'astro:content';import { docsAndBlogSchema } from 'starlight-blog/schema';import { blogSchema } from 'starlight-blog/schema';export const collections = {docs: defineCollection({ schema: docsAndBlogSchema }),docs: defineCollection({ schema: docsSchema({ extend: blogSchema() }) }),i18n: defineCollection({ type: 'data', schema: i18nSchema() }),}
🚀 Features
- Exports the
StarlightBlogConfig
TypeScript type representing the user’s plugin configuration - by @HiDeoo (012f5)