Skip to content

Commit

Permalink
Revert "Docs: Fix plugin insertion order in docs (#1850)"
Browse files Browse the repository at this point in the history
This reverts commit 5ca330c.
  • Loading branch information
Koooooo-7 committed Oct 26, 2022
1 parent ad2289d commit 689eed1
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions docs/write-a-plugin.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,14 @@ window.$docsify = {
Alternatively, a plugin can be stored in a separate file and "installed" using a standard `<script>` tag:

```js
// docsify-plugin-myplugin.js

(function () {
var myPlugin = function (hook, vm) {
// ...
};

// Add plugin to docsify's plugin array
$docsify = $docsify || {};
$docsify.plugins = [].concat($docsify.plugins || [], myPlugin);
$docsify.plugins = [].concat(myPlugin, $docsify.plugins || []);
})();
```

Expand Down

0 comments on commit 689eed1

Please sign in to comment.