Skip to content

Commit

Permalink
fix: remove codesponsor
Browse files Browse the repository at this point in the history
  • Loading branch information
QingWei-Li committed Dec 13, 2017
1 parent d60f6f0 commit 66c8fd5
Show file tree
Hide file tree
Showing 7 changed files with 1 addition and 138 deletions.
3 changes: 0 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,6 @@
</p>


<a target='_blank' rel='nofollow' href='https://app.codesponsor.io/link/YdWAqnN2kHQmLtFQhEddaaPT/QingWei-Li/docsify'> <img alt='Sponsor' width='888' height='68' src='https://app.codesponsor.io/embed/YdWAqnN2kHQmLtFQhEddaaPT/QingWei-Li/docsify.svg' /></a>


## Links

- [Documentation](https://docsify.js.org)
Expand Down
1 change: 0 additions & 1 deletion build/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ var plugins = [
{ name: 'external-script', entry: 'external-script.js' },
{ name: 'front-matter', entry: 'front-matter/index.js' },
{ name: 'zoom-image', entry: 'zoom-image.js' },
{ name: 'codesponsor', entry: 'codesponsor.js' },
{ name: 'disqus', entry: 'disqus.js' },
{ name: 'gitalk', entry: 'gitalk.js' }
]
Expand Down
16 changes: 0 additions & 16 deletions docs/de-de/plugins.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,19 +106,3 @@ Exclude the special 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)


## CodeSponsor

See https://codesponsor.io


```html
<script>
window.$docsify = {
codesponsor: 'id'
}
</script>
<script src="//unpkg.com/docsify/lib/plugins/codesponsor.min.js"></script>
```

4 changes: 1 addition & 3 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
mergeNavbar: true,
maxLevel: 4,
subMaxLevel: 2,
codesponsor: '7c9Ms7xRs-j_y_8abU03DA',
ga: 'UA-106147152-1',
name: 'docsify',
search: {
Expand All @@ -56,7 +55,7 @@
hook.beforeEach(function (html) {
var url = 'https://github.com/QingWei-Li/docsify/blob/master/docs/' + vm.route.file
var editHtml = '[:memo: Edit Document](' + url + ')\n'

return editHtml
+ html
+ '\n----\n'
Expand All @@ -69,7 +68,6 @@
</script>
<script src="//unpkg.com/docsify/lib/docsify.min.js"></script>
<script src="//unpkg.com/docsify/lib/plugins/search.min.js"></script>
<script src="//unpkg.com/docsify/lib/plugins/codesponsor.min.js"></script>
<script src="//unpkg.com/docsify/lib/plugins/ga.min.js"></script>
<script src="//unpkg.com/prismjs/components/prism-bash.min.js"></script>
<script src="//unpkg.com/prismjs/components/prism-markdown.min.js"></script>
Expand Down
12 changes: 0 additions & 12 deletions docs/plugins.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,18 +116,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.

## CodeSponsor

See https://codesponsor.io

```html
<script>
window.$docsify = {
codesponsor: 'id'
}
</script>
<script src="//unpkg.com/docsify/lib/plugins/codesponsor.min.js"></script>
```

## Copy to Clipboard

Expand Down
16 changes: 0 additions & 16 deletions docs/zh-cn/plugins.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,19 +103,3 @@ Medium's 风格的图片缩放插件. 基于 [medium-zoom](https://github.com/fr
## 在 Github 上编辑

在每一页上添加 `Edit on github` 按钮. 由第三方库提供, 查看 [document](https://github.com/njleonzhang/docsify-edit-on-github)


## CodeSponsor

参考 https://codesponsor.io


```html
<script>
window.$docsify = {
codesponsor: 'id'
}
</script>
<script src="//unpkg.com/docsify/lib/plugins/codesponsor.min.js"></script>
```

87 changes: 0 additions & 87 deletions src/plugins/codesponsor.js

This file was deleted.

0 comments on commit 66c8fd5

Please sign in to comment.