Skip to content

Commit 3ecbd13

Browse files
committed
v1.0.0
1 parent 5d30c5c commit 3ecbd13

File tree

1 file changed

+59
-2
lines changed

1 file changed

+59
-2
lines changed

demo/README.md

Lines changed: 59 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,60 @@
1-
# Headline
1+
# docsify-plugin-meting-api
2+
A [docsify.js](https://docsify.js.org) plugin for [meting-api](https://github.com/topics/meting).
23

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+
- ...

0 commit comments

Comments
 (0)