45 lines
993 B
Markdown

---
url: /guide/api/node/index.md
---
## 使用
```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) 了解更多。