Skip to content

Commit

Permalink
docs: how to add "Copy" button to code blocks (#1047)
Browse files Browse the repository at this point in the history
* Update guides-custom-pages.md

Guide on how to add "Copy" to clipboard buttons on code blocks in Docusaurus.

* Update guides-custom-pages.md

Changed wall of text to be a link to a gist describing the code you need to add to add copy clipboard

* Add to markdown instead

* Update guides-custom-pages.md
  • Loading branch information
aenuros authored and yangshun committed Oct 24, 2018
1 parent 2cac006 commit edde297
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/api-doc-markdown.md
Original file line number Diff line number Diff line change
Expand Up @@ -206,3 +206,7 @@ class Example extends React.Component {
}
}
```

### Adding Copy Code Buttons

Docusaurus allows for adding buttons to copy code within fenced code blocks. Please follow the instructions [here](https://gist.github.com/yangshun/55db997ed0f8f4e6527571fc3bee4675) to add "Copy" buttons to your code blocks.

0 comments on commit edde297

Please sign in to comment.