Skip to content

Commit 3bd35bc

Browse files
committed
Removed codefund docs and plugin
1 parent 3f03e78 commit 3bd35bc

File tree

4 files changed

+109
-141
lines changed

4 files changed

+109
-141
lines changed

cypress/fixtures/tpl/docs.index.html

+104-116
Original file line numberDiff line numberDiff line change
@@ -1,123 +1,111 @@
11
<!DOCTYPE html>
22
<html lang="en">
3-
<head>
4-
<meta charset="UTF-8" />
5-
<title>docsify-e2e-tests</title>
6-
<link rel="icon" href="_media/favicon.ico" />
7-
<meta
8-
name="google-site-verification"
9-
content="6t0LoIeFksrjF4c9sqUEsVXiQNxLp2hgoqo0KryT-sE"
10-
/>
11-
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
12-
<meta
13-
name="keywords"
14-
content="doc,docs,documentation,gitbook,creator,generator,github,jekyll,github-pages"
15-
/>
16-
<meta name="description" content="A magical documentation generator." />
17-
<meta
18-
name="viewport"
19-
content="width=device-width, initial-scale=1.0, minimum-scale=1.0"
20-
/>
21-
<link rel="stylesheet" href="lib/themes/vue.css" title="vue" />
22-
<link rel="stylesheet" href="lib/themes/dark.css" title="dark" disabled />
23-
<link rel="stylesheet" href="lib/themes/buble.css" title="buble" disabled />
24-
<link rel="stylesheet" href="lib/themes/pure.css" title="pure" disabled />
25-
<script src="//unpkg.com/docsify-plugin-codefund/index.js"></script>
26-
<style>
27-
nav.app-nav li ul {
28-
min-width: 100px;
29-
}
30-
</style>
31-
</head>
323

33-
<body>
34-
<div id="app">Loading Docsify e2e tests suite...</div>
35-
<script>
36-
window.$docsify = {
37-
alias: {
38-
'.*?/awesome':
39-
'https://raw.githubusercontent.com/docsifyjs/awesome-docsify/master/README.md',
40-
'.*?/changelog':
41-
'https://raw.githubusercontent.com/docsifyjs/docsify/master/CHANGELOG.md',
42-
'/.*/_navbar.md': '/_navbar.md',
43-
'/zh-cn/(.*)':
44-
'https://raw.githubusercontent.com/docsifyjs/docs-zh/master/$1',
45-
'/de-de/(.*)':
46-
'https://raw.githubusercontent.com/docsifyjs/docs-de/master/$1',
47-
'/ru/(.*)':
48-
'https://raw.githubusercontent.com/docsifyjs/docs-ru/master/$1',
49-
'/es/(.*)':
50-
'https://raw.githubusercontent.com/docsifyjs/docs-es/master/$1'
51-
},
52-
auto2top: true,
53-
coverpage: true,
54-
executeScript: true,
55-
loadSidebar: true,
56-
loadNavbar: true,
57-
mergeNavbar: true,
58-
maxLevel: 4,
59-
subMaxLevel: 2,
60-
ga: 'UA-106147152-1',
61-
matomo: {
62-
host: '//matomo.thunderwave.de',
63-
id: 6
64-
},
65-
name: 'docsify',
66-
search: {
67-
noData: {
68-
'/de-de/': 'Keine Ergebnisse!',
69-
'/zh-cn/': '没有结果!',
70-
'/': 'No results!'
71-
},
72-
paths: 'auto',
73-
placeholder: {
74-
'/de-de/': 'Suche',
75-
'/zh-cn/': '搜索',
76-
'/': 'Search'
77-
}
4+
<head>
5+
<meta charset="UTF-8" />
6+
<title>docsify-e2e-tests</title>
7+
<link rel="icon" href="_media/favicon.ico" />
8+
<meta name="google-site-verification" content="6t0LoIeFksrjF4c9sqUEsVXiQNxLp2hgoqo0KryT-sE" />
9+
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
10+
<meta name="keywords" content="doc,docs,documentation,gitbook,creator,generator,github,jekyll,github-pages" />
11+
<meta name="description" content="A magical documentation generator." />
12+
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0" />
13+
<link rel="stylesheet" href="lib/themes/vue.css" title="vue" />
14+
<link rel="stylesheet" href="lib/themes/dark.css" title="dark" disabled />
15+
<link rel="stylesheet" href="lib/themes/buble.css" title="buble" disabled />
16+
<link rel="stylesheet" href="lib/themes/pure.css" title="pure" disabled />
17+
<style>
18+
nav.app-nav li ul {
19+
min-width: 100px;
20+
}
21+
</style>
22+
</head>
23+
24+
<body>
25+
<div id="app">Loading Docsify e2e tests suite...</div>
26+
<script>
27+
window.$docsify = {
28+
alias: {
29+
'.*?/awesome':
30+
'https://raw.githubusercontent.com/docsifyjs/awesome-docsify/master/README.md',
31+
'.*?/changelog':
32+
'https://raw.githubusercontent.com/docsifyjs/docsify/master/CHANGELOG.md',
33+
'/.*/_navbar.md': '/_navbar.md',
34+
'/zh-cn/(.*)':
35+
'https://raw.githubusercontent.com/docsifyjs/docs-zh/master/$1',
36+
'/de-de/(.*)':
37+
'https://raw.githubusercontent.com/docsifyjs/docs-de/master/$1',
38+
'/ru/(.*)':
39+
'https://raw.githubusercontent.com/docsifyjs/docs-ru/master/$1',
40+
'/es/(.*)':
41+
'https://raw.githubusercontent.com/docsifyjs/docs-es/master/$1'
42+
},
43+
auto2top: true,
44+
coverpage: true,
45+
executeScript: true,
46+
loadSidebar: true,
47+
loadNavbar: true,
48+
mergeNavbar: true,
49+
maxLevel: 4,
50+
subMaxLevel: 2,
51+
ga: 'UA-106147152-1',
52+
matomo: {
53+
host: '//matomo.thunderwave.de',
54+
id: 6
55+
},
56+
name: 'docsify',
57+
search: {
58+
noData: {
59+
'/de-de/': 'Keine Ergebnisse!',
60+
'/zh-cn/': '没有结果!',
61+
'/': 'No results!'
7862
},
79-
formatUpdated: '{MM}/{DD} {HH}:{mm}',
80-
plugins: [
81-
function(hook, vm) {
82-
hook.beforeEach(function(html) {
83-
if (/githubusercontent\.com/.test(vm.route.file)) {
84-
url = vm.route.file
85-
.replace('raw.githubusercontent.com', 'github.com')
86-
.replace(/\/master/, '/blob/master')
87-
} else {
88-
url =
89-
'https://github.com/docsifyjs/docsify/blob/master/docs/' +
90-
vm.route.file
91-
}
92-
var editHtml = '[:memo: Edit Document](' + url + ')\n'
93-
return (
94-
editHtml +
95-
html +
96-
'\n\n----\n\n' +
97-
'<a href="https://docsify.js.org" target="_blank" style="color: inherit; font-weight: normal; text-decoration: none;">Powered by docsify</a>'
98-
)
99-
})
100-
}
101-
]
102-
}
103-
</script>
104-
<script src="lib/docsify.min.js"></script>
105-
<script src="lib/plugins/search.min.js"></script>
106-
<script src="lib/plugins/ga.min.js"></script>
107-
<script src="lib/plugins/matomo.min.js"></script>
108-
<script src="//unpkg.com/prismjs/components/prism-bash.min.js"></script>
109-
<script src="//unpkg.com/prismjs/components/prism-markdown.min.js"></script>
110-
<script src="//unpkg.com/prismjs/components/prism-nginx.min.js"></script>
63+
paths: 'auto',
64+
placeholder: {
65+
'/de-de/': 'Suche',
66+
'/zh-cn/': '搜索',
67+
'/': 'Search'
68+
}
69+
},
70+
formatUpdated: '{MM}/{DD} {HH}:{mm}',
71+
plugins: [
72+
function (hook, vm) {
73+
hook.beforeEach(function (html) {
74+
if (/githubusercontent\.com/.test(vm.route.file)) {
75+
url = vm.route.file
76+
.replace('raw.githubusercontent.com', 'github.com')
77+
.replace(/\/master/, '/blob/master')
78+
} else {
79+
url =
80+
'https://github.com/docsifyjs/docsify/blob/master/docs/' +
81+
vm.route.file
82+
}
83+
var editHtml = '[:memo: Edit Document](' + url + ')\n'
84+
return (
85+
editHtml +
86+
html +
87+
'\n\n----\n\n' +
88+
'<a href="https://docsify.js.org" target="_blank" style="color: inherit; font-weight: normal; text-decoration: none;">Powered by docsify</a>'
89+
)
90+
})
91+
}
92+
]
93+
}
94+
</script>
95+
<script src="lib/docsify.min.js"></script>
96+
<script src="lib/plugins/search.min.js"></script>
97+
<script src="lib/plugins/ga.min.js"></script>
98+
<script src="lib/plugins/matomo.min.js"></script>
99+
<script src="//unpkg.com/prismjs/components/prism-bash.min.js"></script>
100+
<script src="//unpkg.com/prismjs/components/prism-markdown.min.js"></script>
101+
<script src="//unpkg.com/prismjs/components/prism-nginx.min.js"></script>
111102

112-
<script>
113-
;((window.gitter = {}).chat = {}).options = {
103+
<script>
104+
; ((window.gitter = {}).chat = {}).options = {
114105
room: 'docsifyjs/Lobby'
115106
}
116-
</script>
117-
<script
118-
src="https://sidecar.gitter.im/dist/sidecar.v1.js"
119-
async
120-
defer
121-
></script>
122-
</body>
123-
</html>
107+
</script>
108+
<script src="https://sidecar.gitter.im/dist/sidecar.v1.js" async defer></script>
109+
</body>
110+
111+
</html>

cypress/integration/sidebar/config.spec.js

-1
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,6 @@ context('sidebar.configurations', () => {
157157
'disqus',
158158
'gitalk',
159159
'pagination',
160-
'codefund',
161160
'tabs',
162161
'more-plugins',
163162
];

docs/index.html

+5-8
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@
1515
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/docsify/lib/themes/buble.css" title="buble" disabled>
1616
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/docsify/lib/themes/pure.css" title="pure" disabled>
1717

18-
<script src="//cdn.jsdelivr.net/npm/docsify-plugin-codefund/index.js"></script>
19-
2018
<style>
2119
nav.app-nav li ul {
2220
min-width: 100px;
@@ -86,8 +84,7 @@
8684
+ '\n\n----\n\n'
8785
+ '<a href="https://docsify.js.org" target="_blank" style="color: inherit; font-weight: normal; text-decoration: none;">Powered by docsify</a>'
8886
})
89-
},
90-
DocsifyCodefund.create('fae1f9a4-870c-4c25-b8e0-c80464f7a95c')
87+
}
9188
]
9289
}
9390
</script>
@@ -99,11 +96,11 @@
9996
<script src="//cdn.jsdelivr.net/npm/prismjs/components/prism-markdown.min.js"></script>
10097
<script src="//cdn.jsdelivr.net/npm/prismjs/components/prism-nginx.min.js"></script>
10198
<script>
102-
((window.gitter = {}).chat = {}).options = {
103-
room: 'docsifyjs/Lobby'
104-
};
99+
((window.gitter = {}).chat = {}).options = {
100+
room: 'docsifyjs/Lobby'
101+
};
105102
</script>
106103
<script src="https://sidecar.gitter.im/dist/sidecar.v1.js" async defer></script>
107104
</body>
108105

109-
</html>
106+
</html>

docs/plugins.md

-16
Original file line numberDiff line numberDiff line change
@@ -168,22 +168,6 @@ Pagination for docsify. By [@imyelo](https://github.com/imyelo)
168168
<script src="//cdn.jsdelivr.net/npm/docsify-pagination/dist/docsify-pagination.min.js"></script>
169169
```
170170

171-
## codefund
172-
173-
a [plugin](https://github.com/njleonzhang/docsify-plugin-codefund) to make it easy to join up [codefund](https://codefund.io/)
174-
175-
> codefund is formerly known as "codesponsor"
176-
177-
```
178-
<script src="//cdn.jsdelivr.net/npm/docsify/lib/docsify.min.js"></script>
179-
180-
window.$docsify = {
181-
plugins: [
182-
DocsifyCodefund.create('xxxx-xxx-xxx') // change to your codefund id
183-
]
184-
}
185-
```
186-
187171
## Tabs
188172

189173
A docsify.js plugin for displaying tabbed content from markdown.

0 commit comments

Comments
 (0)