Skip to content

Commit

Permalink
i18n(zh-cn): add Astro 5 banners in zh-cn version (#9434)
Browse files Browse the repository at this point in the history
* Update `upgrade-astro.mdx`

* Update `upgrade-astro.mdx`

* Update `content-collections.mdx`

* Update `getting-started.mdx`

---------

Co-authored-by: liruifengv <liruifeng1024@gmail.com>
  • Loading branch information
Nin3lee and liruifengv authored Sep 20, 2024
1 parent 084003d commit d580b55
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/content/docs/zh-cn/getting-started.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ hero:
tagline: 本文档由 Astro 和我们的开源贡献者提供支持。
linkText: 加入我们!
link: /zh-cn/contribute/
banner:
content: 想要升级到 Astro 5 的 beta 版本吗?阅读我们的 <a href="https://5-0-0-beta.docs.astro.build/zh-cn/guides/upgrade-to/v5/">v5 升级指南</a>!
---

import { CardGrid } from '@astrojs/starlight/components'
Expand Down
3 changes: 2 additions & 1 deletion src/content/docs/zh-cn/guides/content-collections.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
title: 内容集合
description: >-
内容集合有助于组织你的 Markdown 文件以及通过 schema 使用带有类型检查的 frontmatter。
banner:
content: 想要升级到 Astro 5 的 beta 版本吗?阅读我们的 <a href="https://5-0-0-beta.docs.astro.build/zh-cn/guides/upgrade-to/v5/">v5 升级指南</a>!
i18nReady: true
---
import { FileTree } from '@astrojs/starlight/components';
Expand Down
6 changes: 6 additions & 0 deletions src/content/docs/zh-cn/upgrade-astro.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
title: 升级 Astro
description: 学习如何升级 Astro
i18nReady: true
banner:
content: 想要升级到 Astro 5 的 beta 版本吗?阅读我们的 <a href="https://5-0-0-beta.docs.astro.build/zh-cn/guides/upgrade-to/v5/">v5 升级指南</a>!
---
import PackageManagerTabs from '~/components/tabs/PackageManagerTabs.astro';
import Version from '~/components/Version.astro';
Expand Down Expand Up @@ -104,6 +106,10 @@ Astro 的主要文档页面始终**准确反映 Astro 最新发布版本的内

请参阅下面的升级指南,了解变更的解释,将新版本与旧版本进行比较。升级指南包括所有可能需要你更改自己代码的内容:重大变更、弃用、功能移除和替换以及更新的使用指导。Astro 的每次变更都包括一个“我应该做什么?”部分,以帮助你成功更新项目代码。

:::tip
想要升级到 v5 的 Beta 版本吗?查看 [beta 文档中的 v5 升级指南](https://5-0-0-beta.docs.astro.build/zh-cn/guides/upgrade-to/v5/)。
:::

- [升级到 v4 版本](/zh-cn/guides/upgrade-to/v4/)
- [升级到 v3 版本](/zh-cn/guides/upgrade-to/v3/)
- [升级到 v2 版本](/zh-cn/guides/upgrade-to/v2/)
Expand Down

0 comments on commit d580b55

Please sign in to comment.