Skip to content

Getting Started

  1. Install the starlight-dot-md package in your Starlight project:

    Terminal window
    npm install starlight-dot-md@latest
  2. Add starlightDotMd() to your Astro config file:

    astro.config.mjs
    import starlight from "@astrojs/starlight";
    import { defineConfig } from "astro/config";
    import starlightDotMd from "starlight-dot-md";
    export default defineConfig({
    integrations: [
    starlight({
    // ...
    plugins: [starlightDotMd()],
    }),
    ],
    });
  3. Start the development server:

    Terminal window
    npm run dev
  4. Access any page’s source by appending .md to its URL (e.g., for a page at /guides/example, access /guides/example.md).