We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ad2289d commit 689eed1Copy full SHA for 689eed1
docs/write-a-plugin.md
@@ -22,16 +22,14 @@ window.$docsify = {
22
Alternatively, a plugin can be stored in a separate file and "installed" using a standard `<script>` tag:
23
24
```js
25
-// docsify-plugin-myplugin.js
26
-
27
(function () {
28
var myPlugin = function (hook, vm) {
29
// ...
30
};
31
32
// Add plugin to docsify's plugin array
33
$docsify = $docsify || {};
34
- $docsify.plugins = [].concat($docsify.plugins || [], myPlugin);
+ $docsify.plugins = [].concat(myPlugin, $docsify.plugins || []);
35
})();
36
```
37
0 commit comments