Skip to content

Commit

Permalink
Merge pull request #151 from FriedRiceNoodles/docs/markdown
Browse files Browse the repository at this point in the history
docs: docs of autoloader
  • Loading branch information
FriedRiceNoodles authored Jun 18, 2024
2 parents d0faf6f + eeff83c commit 0c20185
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 4 deletions.
15 changes: 11 additions & 4 deletions docs/guide/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,28 +7,35 @@ order: 2

## 原生环境和非 React 框架

NPM 安装:
### NPM 安装:

```bash
npm i @banana-ui/banana
```

CDN 引入:
### CDN 引入:

```html
/* UMD Namespace: Banana */
<script src="https://cdn.jsdelivr.net/npm/@banana-ui/banana/umd/index.js"></script>
```

or

```html
<!-- 按需引入 -->
<script type="module" src="https://cdn.jsdelivr.net/npm/@banana-ui/banana/dist/banana-autoloader.js"></script>
```

## React

NPM 安装:
### NPM 安装:

```bash
npm i @banana-ui/react
```

CDN 引入:
### CDN 引入:

```html
/* UMD Namespace: BananaReact */
Expand Down
8 changes: 8 additions & 0 deletions docs/guide/quick-start.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,17 @@ order: 1
### CDN

```html
<!-- 全量引入 -->
<script src="https://cdn.jsdelivr.net/npm/@banana-ui/banana/umd/index.js"></script>
```

or

```html
<!-- 按需引入 -->
<script type="module" src="https://cdn.jsdelivr.net/npm/@banana-ui/banana/dist/banana-autoloader.js"></script>
```

### NPM 安装

```bash
Expand Down

0 comments on commit 0c20185

Please sign in to comment.