File tree Expand file tree Collapse file tree 1 file changed +59
-2
lines changed Expand file tree Collapse file tree 1 file changed +59
-2
lines changed Original file line number Diff line number Diff line change 1
- # Headline
1
+ # docsify-plugin-meting-api
2
+ A [ docsify.js] ( https://docsify.js.org ) plugin for [ meting-api] ( https://github.com/topics/meting ) .
2
3
3
- > An awesome project.
4
+ ## Install
5
+
6
+ 1 . Insert APlayer into ** head** tag (index.html)
7
+
8
+ ``` html
9
+ <!-- require APlayer -->
10
+ <link rel =" stylesheet" href =" https://cdn.jsdelivr.net/npm/aplayer/dist/APlayer.min.css" >
11
+ <script src =" https://cdn.jsdelivr.net/npm/aplayer/dist/APlayer.min.js" ></script >
12
+ ```
13
+
14
+ 2 . Then insert docsify-plugin-meting-api plugin into ** body** tag
15
+
16
+ ``` html
17
+ <!-- docsify-plugin-meting-api -->
18
+ <!-- required axios -->
19
+ <script type =" text/javascript" src =" https://cdn.jsdelivr.net/npm/axios/dist/axios.min.js" ></script >
20
+ <script type =" text/javascript" src =" https://cdn.jsdelivr.net/gh/lisuke/docsify-plugin-meting-api/dist/docsify-plugin-meting-api.min.js" ></script >
21
+ ```
22
+
23
+ ## Usage
24
+
25
+ You can set ** MetingAPI** option, example:
26
+
27
+ ``` html
28
+ window.$docsify = {
29
+ MetingAPI: {
30
+ elementId: 'meting',
31
+ api: 'https://api.i-meto.com/meting/api',
32
+ fixed: true,
33
+ autoplay: true,
34
+ lrcType: 3,
35
+ order: 'random',
36
+ loop: 'all',
37
+ mutex: true,
38
+ theme: '#b7daff',
39
+ playlists: [
40
+ { server: 'netease', type: 'playlist', id: '7597958861' },
41
+ { server: 'netease', type: 'playlist', id: '379025025' },
42
+ { server: 'netease', type: 'playlist', id: '7383516738' },
43
+ ],
44
+ },
45
+ };
46
+ ```
47
+
48
+ ## Example
49
+
50
+ 1 . Run ` npm i `
51
+ 2 . Run ` npm run demo `
52
+ 3 . Go to [ http://localhost:3000/ ] ( http://localhost:3000/ )
53
+
54
+ ## License
55
+
56
+ [ MIT license] ( LICENSE )
57
+
58
+ ## TODO
59
+
60
+ - ...
You can’t perform that action at this time.
0 commit comments