From cce6e3ef0d021022b77c8acbf3654ffbe19f2e65 Mon Sep 17 00:00:00 2001 From: JP Erasmus Date: Thu, 28 Sep 2017 20:31:47 +0200 Subject: [PATCH] docs: Add new copy-to-clipboard plugin --- docs/plugins.md | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/docs/plugins.md b/docs/plugins.md index 0bc8cc77f..a2118b533 100644 --- a/docs/plugins.md +++ b/docs/plugins.md @@ -113,7 +113,6 @@ When readers expand the demo box, the source code and description are shown ther See https://codesponsor.io - ```html ``` +## Copy to Clipboard + +Add a simple `Click to copy` button to all preformatted code blocks to effortlessly allow users to copy example code from your docs. + +```html + + +``` + +```javascript +window.$docsify = { + plugins: [ + window.DocsifyCopyCodePlugin.init() + ] +} +``` + +See [here](https://github.com/jperasmus/docsify-copy-code/blob/master/README.md) for more details.