Starlight Page Actions v0.5.0 is here
This release focused primarily on completely cleaning up the generated Markdown and adding a menu that allows sharing pages across different platforms.
These are the most important changes.
Remove or replace Starlight components in generated Markdown
The generated Markdown is now cleaned up so that LLMs can process it better while using fewer tokens.
The following components are supported in both their MDX and Markdoc versions: Card, Link Cards, Card Grids, Aside, Badges, Code, File Tree, Icons, Link Buttons Steps and Tabs.
Some of these components are completely removed while preserving their content, and others are replaced with Markdown to give them semantic value.
“Share” dropdown menu
A menu has been added that allows sharing pages across different platforms: LinkedIn, X, Threads, Bluesky, Facebook, Reddit, Hacker News, email, WhatsApp, and Telegram.
This menu is optional, disabled by default, and to enable it, the share property must be set to true.
import starlight from "@astrojs/starlight";
import { defineConfig } from "astro/config";
import starlightPageActions from "starlight-page-actions";
export default defineConfig({
integrations: [
starlight({
plugins: [
starlightPageActions({
share: true,
}),
],
title: "My Docs",
}),
],
});
Try it out and let me know what you think!