Skip to content

Commit

Permalink
feat(guide): add copy button
Browse files Browse the repository at this point in the history
  • Loading branch information
jaw0r3k committed Mar 23, 2024
1 parent 93c174b commit bfee3c5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion apps/guide/contentlayer.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,10 @@ export default makeSource({
contentDirPath: 'src/content',
documentTypes: [Content],
mdx: {
remarkPlugins: [remarkGfm, [remarkCodeHike, { theme: codeHikeThemeDarkPlus, lineNumbers: true }]],
remarkPlugins: [
remarkGfm,
[remarkCodeHike, { theme: codeHikeThemeDarkPlus, lineNumbers: true, showCopyButton: true }],
],
rehypePlugins: [
rehypeSlug,
[
Expand Down

0 comments on commit bfee3c5

Please sign in to comment.