Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

i18n(zh-cn): Update flotiq.mdx #11017

Merged
merged 2 commits into from
Feb 21, 2025
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
14 changes: 7 additions & 7 deletions src/content/docs/zh-cn/guides/cms/flotiq.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ i18nReady: true
import PackageManagerTabs from '~/components/tabs/PackageManagerTabs.astro';
import { Steps } from '@astrojs/starlight/components';

[Flotiq](https://flotiq.com) 是专为各种前端设计的无头 CMS,例如静态网站,移动端以及 web 应用。开发人员和内容创作者们通过 REST 和基于 GraphQL 的 API 管理和交付内容。
[Flotiq](https://flotiq.com?utm_campaign=flotiq_at_astro_headless_cms&utm_medium=referral&utm_source=astro) 是专为各种前端设计的无头 CMS,例如静态网站,移动端以及 web 应用。开发人员和内容创作者们通过 REST 和基于 GraphQL 的 API 管理和交付内容。

## 与 Astro 集成

Expand All @@ -20,8 +20,8 @@ import { Steps } from '@astrojs/starlight/components';
要开始集成,你需要具备以下条件:

1. **一个 Astro 项目** - 你可以使用 `npm create astro@latest` 命令以创建一个新项目。
2. **一个 Flotiq 账户** - 如果你还没有账户,可以[免费注册](https://editor.flotiq.com/register)一个。
3. **Flotiq 的只读 API 秘钥** - 查看[如何获取你的秘钥](https://flotiq.com/docs/API/)。
2. **一个 Flotiq 账户** - 如果你还没有账户,可以[免费注册](https://editor.flotiq.com/register?utm_campaign=flotiq_at_astro_headless_cms&utm_medium=referral&utm_source=astro)一个。
3. **Flotiq 的只读 API 秘钥** - 查看[如何获取你的秘钥](https://flotiq.com/docs/API/?utm_campaign=flotiq_at_astro_headless_cms&utm_medium=referral&utm_source=astro)。

### 配置环境变量

Expand All @@ -33,7 +33,7 @@ FLOTIQ_API_KEY=__YOUR_FLOTIQ_API_KEY__

### 在 Flotiq 中定义内容类型

首先,你需要在 Flotiq 中定义一个示例[内容类型定义](https://flotiq.com/docs/panel/content-types/)来存储数据。
首先,你需要在 Flotiq 中定义一个示例[内容类型定义](https://flotiq.com/docs/panel/content-types/?utm_campaign=flotiq_at_astro_headless_cms&utm_medium=referral&utm_source=astro)来存储数据。

登录你的 Flotiq 账户并且使用如下的 `Blog Post` 配置项来创建一个自定义的内容类型定义:
- **Label**: Blog Post
Expand All @@ -43,7 +43,7 @@ FLOTIQ_API_KEY=__YOUR_FLOTIQ_API_KEY__
- **Slug**: text, required
- **Content**: rich text, required

然后,使用此 `Blog Post` 类型创建一个或多个示例[内容对象](https://flotiq.com/docs/panel/content-objects/)。
然后,使用此 `Blog Post` 类型创建一个或多个示例[内容对象](https://flotiq.com/docs/panel/content-objects/?utm_campaign=flotiq_at_astro_headless_cms&utm_medium=referral&utm_source=astro)。

### 安装 Flotiq TypeScript SDK

Expand Down Expand Up @@ -288,8 +288,8 @@ Astro 既支持提前预渲染所有页面,也支持在请求时按需创建

要更新你发布的站点,请将 Flotiq 配置为向托管服务提供商发送 webhook,以便在你的内容发生更改时触发重建。

在 Flotiq 中,你可以定义它应该触发的内容类型和事件,并相应地对其进行配置。有关更多详细信息,请参阅 [Flotiq Webhooks 文档](https://flotiq.com/docs/panel/webhooks/async-co-webhook/)。
在 Flotiq 中,你可以定义它应该触发的内容类型和事件,并相应地对其进行配置。有关更多详细信息,请参阅 [Flotiq Webhooks 文档](https://flotiq.com/docs/panel/webhooks/async-co-webhook/?utm_campaign=flotiq_at_astro_headless_cms&utm_medium=referral&utm_source=astro)。

## 官方资源

- [Flotiq 文档](https://flotiq.com/docs)
- [Flotiq 文档](https://flotiq.com/docs?utm_campaign=flotiq_at_astro_headless_cms&utm_medium=referral&utm_source=astro)