Skip to content

Commit

Permalink
Merge pull request #25 from WTFAcademy/dev
Browse files Browse the repository at this point in the history
fix(docusaurus-plugin): fix plugin transform-model.ts import error lib
  • Loading branch information
chongqiangchen authored Apr 20, 2023
2 parents 7e93a6b + ebb8ef5 commit 80bcca2
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

2 comments on commit 80bcca2

@vercel
Copy link

@vercel vercel bot commented on 80bcca2 Apr 20, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on 80bcca2 Apr 20, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

solive-doc – ./

solive-doc-wtfacademy.vercel.app
solive-doc-git-main-wtfacademy.vercel.app
solive-doc.vercel.app

Please sign in to comment.