Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions src/content/docs/zh-cn/guides/cms/storyblok.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import PackageManagerTabs from '~/components/tabs/PackageManagerTabs.astro'

## 与 Astro 集成

在本小节中,你将使用 [Storyblok 集成](https://github.com/storyblok/storyblok-astro) 来将 Storyblok 连接到 Astro。
在本小节中,你将使用 [Storyblok 集成](https://github.com/storyblok/monoblok/tree/main/packages/astro) 来将 Storyblok 连接到 Astro。

### 前期准备

Expand Down Expand Up @@ -47,7 +47,7 @@ STORYBLOK_TOKEN=YOUR_PREVIEW_TOKEN

### 安装依赖

为了将 Astro 连接到你的 Storyblok 空间,使用以下命令安装官方的 [Storyblok 集成](https://github.com/storyblok/storyblok-astro),可以用你偏好的包管理器执行相应命令:
为了将 Astro 连接到你的 Storyblok 空间,使用以下命令安装官方的 [Storyblok 集成](https://github.com/storyblok/monoblok/tree/main/packages/astro),可以用你偏好的包管理器执行相应命令:

<PackageManagerTabs>
<Fragment slot="npm">
Expand Down Expand Up @@ -108,7 +108,7 @@ Storyblok 集成需要一个包含以下属性的对象:
组件路径是相对于 `src` 目录的。例如,如果你的组件位于 `src/storyblok/MyComponent.astro`,路径将是 `storyblok/MyComponent`(不包括 `.astro` 扩展名)。
:::

3. `apiOptions` - 一个包含 [Storyblok API 选项](https://github.com/storyblok/storyblok-astro#options) 的对象。
3. `apiOptions` - 一个包含 [Storyblok API 选项](https://www.storyblok.com/docs/packages/storyblok-astro#api) 的对象。

:::caution
默认情况下,区域是 `eu`。如果你的 Storyblok 空间创建在美国区域,你需要将区域设置为 `us`。
Expand Down Expand Up @@ -540,7 +540,9 @@ try {

## 官方资源

- Storyblok 提供了一个 [Astro 集成](https://www.storyblok.com/mp/announcing-storyblok-astro),可以将 Storyblok 添加到你的项目中。
- 使用 [Storyblok Astro 集成](https://www.storyblok.com/mp/announcing-storyblok-astro) 可以将 Storyblok 添加到你的项目中。
- [Storyblok Astro 指南](https://www.storyblok.com/docs/guides/astro/)
- [Storyblok Astro 包参考](https://www.storyblok.com/docs/packages/storyblok-astro)

## 社区资源

Expand Down