From fb144b2e6907f019593112ebafe86139866ba088 Mon Sep 17 00:00:00 2001 From: JP Erasmus Date: Thu, 26 Apr 2018 06:36:16 +0200 Subject: [PATCH] docs: Update installation instructions for v2 of `docsify-copy-code` plugin (#465) --- docs/de-de/plugins.md | 19 ++----------------- docs/plugins.md | 17 ++--------------- docs/zh-cn/plugins.md | 20 +------------------- 3 files changed, 5 insertions(+), 51 deletions(-) diff --git a/docs/de-de/plugins.md b/docs/de-de/plugins.md index c968add..63363d5 100644 --- a/docs/de-de/plugins.md +++ b/docs/de-de/plugins.md @@ -4,7 +4,6 @@ Als Standardeinstellung werden Hyperlinks auf der aktuellen Seite erkannt und der Inhalt in `localStorage` gespeichert. Du kannst den Pfad zu den Dateien auch anpassen: - ```html ``` - ## emoji Als Standardeinstellung werden emojis umgewandelt. Als Beispiel wird `:100:` umgewandelt in :100:. Aber das ist nicht genau, das es keine passende Nicht-emoji Zeichenfolge gibt. Solltest du emojis richtig umwandeln wollen, musst du diese Erweiterung verwenden. @@ -106,7 +104,6 @@ When readers expand the demo box, the source code and description are shown ther [Vue](https://njleonzhang.github.io/docsify-demo-box-vue/) and [React](https://njleonzhang.github.io/docsify-demo-box-react/) are both supported. - ## Edit on github Add `Edit on github` button on every pages. Provided by [@njleonzhang](https://github.com/njleonzhang), check [document](https://github.com/njleonzhang/docsify-edit-on-github) @@ -116,22 +113,11 @@ Add `Edit on github` button on every pages. Provided by [@njleonzhang](https://g Add a simple `Click to copy` button to all preformatted code blocks to effortlessly allow users to copy example code from your docs. Provided by [@jperasmus](https://github.com/jperasmus) ```html - - -``` - -```javascript -window.$docsify = { - plugins: [ - window.DocsifyCopyCodePlugin.init() - ] -} + ``` See [here](https://github.com/jperasmus/docsify-copy-code/blob/master/README.md) for more details. - - ## Disqus Disqus comments. https://disqus.com/ @@ -145,10 +131,9 @@ Disqus comments. https://disqus.com/ ``` - ## Gitalk -[Gitalk](https://github.com/gitalk/gitalk) is a modern comment component based on Github Issue and Preact. +[Gitalk](https://github.com/gitalk/gitalk) is a modern comment component based on Github Issue and Preact. ```html diff --git a/docs/plugins.md b/docs/plugins.md index 3c3afb0..c90f9df 100644 --- a/docs/plugins.md +++ b/docs/plugins.md @@ -4,7 +4,6 @@ By default, the hyperlink on the current page is recognized and the content is saved in `localStorage`. You can also specify the path to the files. - ```html ``` - ## emoji The default is to support parsing emoji. For example `:100:` will be parsed to :100:. But it is not precise because there is no matching non-emoji string. If you need to correctly parse the emoji string, you need install this plugin. @@ -98,7 +96,6 @@ Exclude the special image ![](image.png ':no-zoom') ``` - ## Edit on github Add `Edit on github` button on every pages. Provided by [@njleonzhang](https://github.com/njleonzhang), check [document](https://github.com/njleonzhang/docsify-edit-on-github) @@ -111,27 +108,16 @@ When readers expand the demo box, the source code and description are shown ther [Vue](https://njleonzhang.github.io/docsify-demo-box-vue/) and [React](https://njleonzhang.github.io/docsify-demo-box-react/) are both supported. - ## 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. Provided by [@jperasmus](https://github.com/jperasmus) ```html - - -``` - -```javascript -window.$docsify = { - plugins: [ - window.DocsifyCopyCodePlugin.init() - ] -} + ``` See [here](https://github.com/jperasmus/docsify-copy-code/blob/master/README.md) for more details. - ## Disqus Disqus comments. https://disqus.com/ @@ -190,3 +176,4 @@ window.$docsify = { ] } ``` + diff --git a/docs/zh-cn/plugins.md b/docs/zh-cn/plugins.md index d7ce081..b872175 100644 --- a/docs/zh-cn/plugins.md +++ b/docs/zh-cn/plugins.md @@ -4,7 +4,6 @@ 全文搜索插件会根据当前页面上的超链接获取文档内容,在 `localStorage` 内建立文档索引。默认过期时间为一天,当然我们可以自己指定需要缓存的文件列表或者配置过期时间。 - ```html ``` - 忽略某张图片 ```markdown ![](image.png ':no-zoom') ``` - - ## 在 Github 上编辑 在每一页上添加 `Edit on github` 按钮. 由第三方库提供, 查看 [document](https://github.com/njleonzhang/docsify-edit-on-github) - ## 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. Provided by [@jperasmus](https://github.com/jperasmus) ```html - - -``` - -```javascript -window.$docsify = { - plugins: [ - window.DocsifyCopyCodePlugin.init() - ] -} + ``` See [here](https://github.com/jperasmus/docsify-copy-code/blob/master/README.md) for more details. - - ## Disqus Disqus comments. https://disqus.com/ @@ -148,7 +131,6 @@ Disqus comments. https://disqus.com/ ``` - ## Gitalk [Gitalk](https://github.com/gitalk/gitalk) is a modern comment component based on Github Issue and Preact.