Skip to content

Commit

Permalink
fix(docusaurus-plugin): fix plugin transform-model.ts import error lib
Browse files Browse the repository at this point in the history
  • Loading branch information
chongqiangchen committed Apr 20, 2023
1 parent 91a216e commit ebb8ef5
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/happy-fans-complain.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"solive-docusaurus-theme-code": patch
---

fix plugin transform-model.ts import error lib
5 changes: 5 additions & 0 deletions apps/doc/docs/expansion/docusaurus-plugins/guide.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ slug: /docusaurus-plugins
npm install --save solive-docusaurus-theme-code
```

2. 安装一些配置需要的依赖项(暂未找到较好的方案内置):
```bash npm2yarn
npm install -D stream-http https-browserify stream-browserify crypto-browserify stream-browserify path-browserify events os-browserify buffer url assert tty-browserify util browserify-zlib
```

2. 其次你需要在你的 `docusaurus.config.js` 中配置 `solive` 插件.

```js {3}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { SupportLanguage } from 'solive-core';
import { ModelInfoType } from 'solive-core/src';
import { ModelInfoType, SupportLanguage } from 'solive-core';

import { TMeta } from './resolve-meta';
import solidityFormatter from './format-code';
Expand Down

0 comments on commit ebb8ef5

Please sign in to comment.