mirror of
https://github.com/pengzhanbo/vuepress-theme-plume.git
synced 2026-04-23 10:58:13 +08:00
49 lines
1.0 KiB
Markdown
49 lines
1.0 KiB
Markdown
---
|
|
title: Node
|
|
icon: fa6-brands:node
|
|
createTime: 2024/03/07 21:59:13
|
|
permalink: /guide/api/node/
|
|
---
|
|
|
|
## 使用
|
|
|
|
```ts
|
|
import { plumeTheme } from 'vuepress-theme-plume'
|
|
```
|
|
|
|
## `plumeTheme(options)`
|
|
|
|
__options__ : `PlumeThemeOptions`
|
|
|
|
主题配置函数。
|
|
|
|
查看 [主题配置](../config/theme.md) 了解更多。
|
|
|
|
## `defineThemeConfig(options)`
|
|
|
|
主题配置帮助函数,用于在单独的 `plume.config.ts` 中使用。
|
|
|
|
查看 [主题配置文件](../config/intro.md#主题配置文件) 了解更多。
|
|
|
|
## `defineNavbarConfig(options)`
|
|
|
|
主题导航栏配置类型帮助函数。
|
|
|
|
查看 [主题配置](../config/navbar.md) 了解更多。
|
|
|
|
## `defineCollections(options)`
|
|
|
|
__options:__ `(ThemePostCollection | ThemeDocCollection)[]`
|
|
|
|
主题 collections 配置类型帮助函数
|
|
|
|
查看 [主题配置](../config/collection.md) 了解更多。
|
|
|
|
## `defineCollection(options)`
|
|
|
|
__options:__ `ThemePostCollection | ThemeDocCollection`
|
|
|
|
主题 单个 collection 配置类型帮助函数
|
|
|
|
查看 [主题配置](../config/collection.md) 了解更多。
|