Skip to content

Commit 689eed1

Browse files
authored
Revert "Docs: Fix plugin insertion order in docs (#1850)"
This reverts commit 5ca330c.
1 parent ad2289d commit 689eed1

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

docs/write-a-plugin.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,14 @@ window.$docsify = {
2222
Alternatively, a plugin can be stored in a separate file and "installed" using a standard `<script>` tag:
2323

2424
```js
25-
// docsify-plugin-myplugin.js
26-
2725
(function () {
2826
var myPlugin = function (hook, vm) {
2927
// ...
3028
};
3129

3230
// Add plugin to docsify's plugin array
3331
$docsify = $docsify || {};
34-
$docsify.plugins = [].concat($docsify.plugins || [], myPlugin);
32+
$docsify.plugins = [].concat(myPlugin, $docsify.plugins || []);
3533
})();
3634
```
3735

0 commit comments

Comments
 (0)