Skip to content

i18n(zh-cn): Add new guides/build-with-ai.mdx translation#13987

Open
isyuah wants to merge 2 commits into
withastro:mainfrom
isyuah:i18n/zh-cn/build-with-ai
Open

i18n(zh-cn): Add new guides/build-with-ai.mdx translation#13987
isyuah wants to merge 2 commits into
withastro:mainfrom
isyuah:i18n/zh-cn/build-with-ai

Conversation

@isyuah
Copy link
Copy Markdown
Contributor

@isyuah isyuah commented Jun 5, 2026

Description (required)

Translate guides/build-with-ai.mdx to Simplified Chinese.

Related issues & labels (optional)

  • Closes #
  • Suggested label: i18n

username: _isyuah

Copilot AI review requested due to automatic review settings June 5, 2026 07:58
@netlify
Copy link
Copy Markdown

netlify Bot commented Jun 5, 2026

Deploy Preview for astro-docs-2 ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 2863a26
🔍 Latest deploy log https://app.netlify.com/projects/astro-docs-2/deploys/6a22828767c0540008d63146
😎 Deploy Preview https://deploy-preview-13987--astro-docs-2.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@github-actions github-actions Bot added the i18n Anything to do with internationalization & translation efforts - ask @YanThomas for help! label Jun 5, 2026
@astrobot-houston
Copy link
Copy Markdown
Contributor

astrobot-houston commented Jun 5, 2026

Lunaria Status Overview

🌕 This pull request will trigger status changes.

Learn more

By default, every PR changing files present in the Lunaria configuration's files property will be considered and trigger status changes accordingly.

You can change this by adding one of the keywords present in the ignoreKeywords property in your Lunaria configuration file in the PR's title (ignoring all files) or by including a tracker directive in the merged commit's description.

Tracked Files

File Note
zh-cn/guides/build-with-ai.mdx Localization added, will be marked as complete.
Warnings reference
Icon Description
🔄️ The source for this localization has been updated since the creation of this pull request, make sure all changes in the source have been applied.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

新增一篇中文指南,介绍如何通过 Astro Docs MCP 服务器为常见 AI 工具提供最新 Astro 文档上下文,并给出 AI 辅助开发 Astro 的实践建议。

Changes:

  • 新增 build-with-ai.mdx 中文文档页面,说明 Astro Docs MCP 服务器用途与原理
  • 提供多种工具(CLI/编辑器/Action 等)配置 MCP 的示例与安装入口
  • 添加面向 AI 构建 Astro 的操作建议与排查指引

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +221 to +223
"Astro docs": {
"httpUrl": "https://mcp.docs.astro.build/mcp",
}
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This issue exists in the original English documentation. As a translator, I must keep the translated version consistent with the source.

Comment on lines +302 to +305
"Astro docs": {
"type": "remote",
"url": "https://mcp.docs.astro.build/mcp",
"enabled": true
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This issue exists in the original English documentation. As a translator, I must keep the translated version consistent with the source.

allowed_tools: "mcp__astro-docs__search_astro_docs"
```

[在 Claude Code Github Action 中使用 MCP 服务器的更多信息](https://github.com/anthropics/claude-code-action?tab=readme-ov-file#using-custom-mcp-configuration)
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed


### 服务器详情

- **名称**: Astro Docs
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The terms Astro docs and astro-docs were originally used as key names in the English source. Regarding Astro Docs, I preserved two instances that involve configuring the MCP name, and translated the remaining ones

```json title="MCP 配置" {3-6}
{
"mcpServers": {
"Astro docs": {
mcp_config: |
{
"mcpServers": {
"astro-docs": {
1. 导航至 [Claude.ai 连接器设置](https://claude.ai/settings/connectors)。
2. 点击 "Add custom connector"(添加自定义连接器)。你可能需要向下滚动才能找到此选项。
3. 输入服务器 URL: `https://mcp.docs.astro.build/mcp`。
4. 将名称设置为 "Astro Docs"。
一旦配置完成,你可以询问你的 AI 工具有关 Astro 的问题,它将直接从最新文档中检索信息。编码智能体将能够在执行编码任务时访问最新的文档,聊天机器人将能够准确回答关于 Astro 特性、API 和最佳实践的问题。

:::note[请记住]
Astro 文档 MCP server 提供了对于最新文档的访问能力,但你的 AI 工具仍需负责解释和代码生成,AI 也会犯错,请务必仔细审查生成的代码并进行充分测试。
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

i18n Anything to do with internationalization & translation efforts - ask @YanThomas for help!

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants