We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent da157fe commit 5ca330cCopy full SHA for 5ca330c
docs/write-a-plugin.md
@@ -22,14 +22,16 @@ 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 || {};
- $docsify.plugins = [].concat(myPlugin, $docsify.plugins || []);
34
+ $docsify.plugins = [].concat($docsify.plugins || [], myPlugin);
35
})();
36
```
37
0 commit comments