From a91765eb87f3a8b7d5a0b845f5ecfaa6d7fdf48f Mon Sep 17 00:00:00 2001 From: njleonzhang Date: Thu, 26 Apr 2018 11:36:35 +0800 Subject: [PATCH] add plugin for codefund --- docs/plugins.md | 16 +++++++++++++++- docs/zh-cn/plugins.md | 18 +++++++++++++++++- 2 files changed, 32 insertions(+), 2 deletions(-) diff --git a/docs/plugins.md b/docs/plugins.md index 631d27910..3c3afb094 100644 --- a/docs/plugins.md +++ b/docs/plugins.md @@ -147,7 +147,7 @@ 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 @@ -176,3 +176,17 @@ Pagination for docsify. By [@imyelo](https://github.com/imyelo) ``` +## codefund +a [plugin](https://github.com/njleonzhang/docsify-plugin-codefund) to make it easy to join up [codefund](https://codesponsor.io/) + +> codefund is formerly known as "codesponsor" + +``` + + +window.$docsify = { + plugins: [ + DocsifyCodefund.create('51d43327-eea3-4e27-bd44-e075e67a84fb') // change to your codefund id + ] +} +``` diff --git a/docs/zh-cn/plugins.md b/docs/zh-cn/plugins.md index b65cec4e3..d7ce0819e 100644 --- a/docs/zh-cn/plugins.md +++ b/docs/zh-cn/plugins.md @@ -151,7 +151,7 @@ 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 @@ -179,3 +179,19 @@ Pagination for docsify. By [@imyelo](https://github.com/imyelo) ``` + + +## Code Fund +帮你快速接入[Code Fund](https://codesponsor.io/)的[插件](https://github.com/njleonzhang/docsify-plugin-codefund), 由[@njleonzhang](https://github.com/njleonzhang)提供。 + +> Code Fund 以前叫 codesponsor + +``` + + +window.$docsify = { + plugins: [ + DocsifyCodefund.create('51d43327-eea3-4e27-bd44-e075e67a84fb') // 把这个id改成你的codefund id + ] +} +```