starlight-markdown
v0.1.5
Published
Generate Markdown files from your Starlight documentation.
Maintainers
Readme
starlight-markdown
Generate Markdown files from your Starlight documentation.

See it on a live documentation page: HTML vs. Markdown
Usage
Install the plugin by running the following command:
npm i starlight-markdownInside your astro.config.mjs file add the starlightMarkdown plugin:
import { defineConfig } from "astro/config";
import starlight from "@astrojs/starlight";
import starlightMarkdown from "starlight-markdown";
export default defineConfig({
integrations: [
starlight({
title: "My Docs",
plugins: [starlightMarkdown()],
sidebar: [
...
],
}),
],
});How It Works
During Starlight build process, in addition to the HTML files, the plugin will generate the Markdown version of the page under /index.md suffix.
These are static files, meaning you can still any static hosting site without a server.
