Skip to content

Commit

Permalink
docs: update import codes
Browse files Browse the repository at this point in the history
  • Loading branch information
Blackman99 committed Feb 20, 2024
1 parent cffa21b commit fd7890a
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ const defaultGradient = {

为一个对象,键是分类名称,值是该分类下需要预构建的图标集合,下面是此站点的配置

@code(/vite.config.ts,28,40)
@code(/vite.config.ts,29,41)

这些图标看起来像这样:
```svelte live
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ title: Vite 插件

## 插件选项

@code(/../vite/src/types.ts,25,31)
@code(/../vite/src/types.ts,26,32)

### `siteConfig`

@code(/../vite/src/types.ts,8,11)
@code(/../vite/src/types.ts,9,12)

* `title`: 站点标题,默认为:`'Untitled site'`
* `description`: 站点描述,默认为:`'Build by sveltepress'`
Expand All @@ -31,7 +31,7 @@ title: Vite 插件

## `ResolvedTheme`

@code(/../vite/src/types.ts,12,24)
@code(/../vite/src/types.ts,13,25)

### `name`

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ The icons in [Iconify](https://iconify.design/) that you want to pre-build for f
An object, key is the collection name, value is the icons array.
For example these are the icons this site using:

@code(/vite.config.ts,29,40)
@code(/vite.config.ts,29,41)

These icons looks like this:

Expand Down
6 changes: 3 additions & 3 deletions packages/docs-site/src/routes/reference/vite-plugin/+page.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ title: Vite plugin

## Plugin options

@code(/../vite/src/types.ts,25,31)
@code(/../vite/src/types.ts,26,32)

### `siteConfig`

@code(/../vite/src/types.ts,8,11)
@code(/../vite/src/types.ts,9,12)

* `title`: The site title. Would be `'Untitled site'` if not provided.
* `description`: The site description. Would be `'Build by sveltepress'` if not provided.
Expand All @@ -34,7 +34,7 @@ Read [Rehype plugins](https://github.com/rehypejs/rehype#plugins) for more detai

## ResolvedTheme

@code(/../vite/src/types.ts,12,24)
@code(/../vite/src/types.ts,13,25)

### `name`

Expand Down

0 comments on commit fd7890a

Please sign in to comment.