Skip to content

dionysuzx/starlight-copy-button

Repository files navigation

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

About

Copy full docs page markdown with a polished button.

Resources

License

Stars

Watchers

Forks

Contributors