From f0aca1905ce4be47a4b68a6164681788338ff70f Mon Sep 17 00:00:00 2001 From: Leon Zhang Date: Tue, 5 Sep 2017 09:46:05 +0800 Subject: [PATCH] feat: add doc for react and vue demo box plugin (#247) --- docs/plugins.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/plugins.md b/docs/plugins.md index e2d1303c8..ba4ef463a 100644 --- a/docs/plugins.md +++ b/docs/plugins.md @@ -100,3 +100,11 @@ Medium's Image Zoom. Based on [zoom-image](https://github.com/egoist/zoom-image) ## Edit on github Add `Edit on github` button on every pages. provided by 3rd party, check [document](https://github.com/njleonzhang/docsify-edit-on-github) + +## Demo code with instant preview and jsfiddle integration + +With this plugin, sample code can be rendered on the page instantly, so that the readers can see the preview immediately. +When readers expand the demo box, the source code and description are shown there. if they click the button `Try in Jsfiddle`, +`jsfiddle.net` will be open with the code of this sample, which allow readers to revise the code and try on their own. + +[Vue](https://njleonzhang.github.io/docsify-demo-box-vue/) and [React](https://njleonzhang.github.io/docsify-demo-box-react/) are both supported.