Skip to content

Latest commit

 

History

History
33 lines (24 loc) · 680 Bytes

File metadata and controls

33 lines (24 loc) · 680 Bytes

starlight-copy-button

Add a polished copy-to-clipboard button to Starlight docs page titles that copies full pages as Markdown.

Quickstart

  1. Install the plugin:
pnpm add github:dionysuzx/starlight-copy-button
  1. Add it to your Starlight config:
// astro.config.mjs
import starlight from '@astrojs/starlight';
import { defineConfig } from 'astro/config';
import starlightCopyButton from 'starlight-copy-button';

export default defineConfig({
  integrations: [
    starlight({
      title: 'My Docs',
      plugins: [starlightCopyButton()],
    }),
  ],
});

License

MIT