Skip to content

Commit

Permalink
docs: add usage example (#4)
Browse files Browse the repository at this point in the history
* docs: add usage example

* chore: add usage example in README.md

* docs: use ```` instead of pre tag

* chore: code block lang

---------

Co-authored-by: yuyinws <[email protected]>
  • Loading branch information
fxzer and yuyinws authored Aug 29, 2024
1 parent 8bca776 commit 3ed4767
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 0 deletions.
23 changes: 23 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,29 @@ import 'virtual:group-icons.css'
export default Theme
```

### Usage Example
````markdown
::: code-group

```sh [npm]
npm install vitepress-plugin-group-icons
```

```sh [yarn]
yarn add vitepress-plugin-group-icons
```

```sh [pnpm]
pnpm add vitepress-plugin-group-icons
```

```sh [bun]
bun add vitepress-plugin-group-icons
```

:::
````

### Built-in Icons

```ts
Expand Down
24 changes: 24 additions & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,30 @@ import 'virtual:group-icons.css'
export default Theme
```

## Usage Example

````md
::: code-group

```sh [npm]
npm install vitepress-plugin-group-icons
```

```sh [yarn]
yarn add vitepress-plugin-group-icons
```

```sh [pnpm]
pnpm add vitepress-plugin-group-icons
```

```sh [bun]
bun add vitepress-plugin-group-icons
```

:::
````

## Built-in Icons

::: code-group
Expand Down

0 comments on commit 3ed4767

Please sign in to comment.