Skip to content

Commit

Permalink
docs: update docusaurus and adjust extend plugin example
Browse files Browse the repository at this point in the history
fix #320
  • Loading branch information
nartc committed Jul 22, 2021
1 parent f23ee9a commit 023b67d
Show file tree
Hide file tree
Showing 3 changed files with 618 additions and 512 deletions.
2 changes: 1 addition & 1 deletion docs-site/docs/plugins-system/extend-plugin.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const customClasses = (errorHandler: ErrorHandler) => {

// customize the preMap
originalClasses.preMap = (...args) => {
const originalPreMapResult = originalPreMap(...args);
const originalPreMapResult = originalPreMap.apply(originalClasses, args);
nullify(originalPreMapResult[0]);
return originalPreMapResult;
};
Expand Down
4 changes: 2 additions & 2 deletions docs-site/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
"postinstall": "yarn build"
},
"dependencies": {
"@docusaurus/core": "2.0.0-beta.0",
"@docusaurus/preset-classic": "2.0.0-beta.0",
"@docusaurus/core": "2.0.0-beta.3",
"@docusaurus/preset-classic": "2.0.0-beta.3",
"@mdx-js/react": "1.6.22",
"clsx": "1.1.1",
"react": "17.0.2",
Expand Down
Loading

0 comments on commit 023b67d

Please sign in to comment.