docsify-plugin-meting-api

1.0.0-beta • Public • Published

docsify-plugin-meting-api

A docsify.js plugin for meting-api.

Install

  1. Insert APlayer into head tag (index.html)
    <!-- require APlayer -->
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/aplayer/dist/APlayer.min.css">
    <script src="https://cdn.jsdelivr.net/npm/aplayer/dist/APlayer.min.js"></script>
  1. Then insert docsify-plugin-meting-api plugin into body tag
    <!-- docsify-plugin-meting-api -->
    <!-- required axios -->
    <script type="text/javascript" src="https://cdn.jsdelivr.net/npm/axios/dist/axios.min.js"></script>
    <script type="text/javascript" src="https://cdn.jsdelivr.net/npm/docsify-plugin-meting-api/dist/docsify-plugin-meting-api.min.js"></script>

Usage

You can set MetingAPI option, example:

window.$docsify = {
    MetingAPI: {
        elementId: 'meting',
        api: 'https://api.i-meto.com/meting/api',
        fixed: true,
        autoplay: true,
        lrcType: 3,
        order: 'random',
        loop: 'all',
        mutex: true,
        theme: '#b7daff',
        playlists: [
            { server: 'netease', type: 'playlist', id: '7597958861' },
            { server: 'netease', type: 'playlist', id: '379025025' },
            { server: 'netease', type: 'playlist', id: '7383516738' },
        ],
    },
};

Example

  1. Run npm i
  2. Run npm run docs
  3. Go to http://localhost:3000/

License

MIT license

TODO

  • ...

Package Sidebar

Install

npm i docsify-plugin-meting-api

Weekly Downloads

0

Version

1.0.0-beta

License

MIT

Unpacked Size

13.2 kB

Total Files

5

Last publish

Collaborators

  • lisuke