From 05be367ef5cde0becc0d716f2d2bc1c70b40b00b Mon Sep 17 00:00:00 2001 From: huyikai Date: Tue, 26 Mar 2024 11:03:18 +0800 Subject: [PATCH 01/15] i18n(zh-cn): Create `dev-toolbar.mdx` --- src/content/docs/zh-cn/guides/dev-toolbar.mdx | 83 +++++++++++++++++++ src/content/docs/zh-cn/install/auto.mdx | 2 +- src/i18n/zh-cn/nav.ts | 1 + 3 files changed, 85 insertions(+), 1 deletion(-) create mode 100644 src/content/docs/zh-cn/guides/dev-toolbar.mdx diff --git a/src/content/docs/zh-cn/guides/dev-toolbar.mdx b/src/content/docs/zh-cn/guides/dev-toolbar.mdx new file mode 100644 index 0000000000000..7a20a444e2f70 --- /dev/null +++ b/src/content/docs/zh-cn/guides/dev-toolbar.mdx @@ -0,0 +1,83 @@ +--- +title: 开发者工具栏 +description: Astro 中使用开发者工具栏的指南 +i18nReady: true +--- + +当开发服务器运行时,Astro 会在你本地浏览器预览的每个页面底部包含一个开发者工具栏。 + +此工具栏包含许多用于在开发过程中调试和检查你的网站的有用工具,并且可以在集成目录中找到[更多开发者工具栏应用程序](#扩展开发工具栏)进行扩展。你甚至可以使用 [开发者工具栏 API](/zh-cn/reference/dev-toolbar-app-reference/)构建你自己的应用程序! + +此工具栏默认启用,并在你将鼠标悬停在页面底部时出现。它仅是一个开发工具,并不会在你的发布网站上出现。 + +## 内置应用程序 + +### Astro 菜单 + +Astro 菜单应用程序提供了便捷的方式来访问当前项目的各种信息和链接到额外资源。值得注意的是,它提供了一键访问 Astro 文档、GitHub 仓库和 Discord 服务器。 + +这个应用程序还包括一个“复制调试信息”按钮,它将运行 [`astro info`](/zh-cn/reference/cli-reference/#astro-info) 命令并将输出复制到你的剪贴板。这在请求帮助或报告问题时可能很有用。 + +### 检查 + +检查应用程序提供了当前页面上任何[群岛结构](/zh-cn/concepts/islands/)的信息。这将向你展示传递给每个群岛的属性,以及用于渲染它们的客户端指令。 + +### 审计 + +审计应用程序会自动在当前页面上运行一系列审计,检查最常见的性能和可访问性问题。当发现问题时,工具栏上会出现一个红点。点击应用程序将弹出一个来自审计的结果列表,并直接在页面中高亮显示相关元素。 + +:::note +开发者工具栏执行的基本性能和可访问性审计,并不能取代专用工具如 [Pa11y](https://pa11y.org/) 或 [Lighthouse](https://developers.google.com/web/tools/lighthouse),更不用说比这些工具更好的人工审查了! + +开发者工具栏旨在提供一种快速简便的方式,在开发过程中捕捉常见问题,无需切换到不同的工具。 +::: + +### 设置 + +设置应用程序允许你切换开发工具栏的不同设置,例如详细日志记录,以及禁用通知的能力。 + +## 扩展开发工具栏 + +Astro 集成可以向开发工具栏添加新的应用程序,允许你使用特定于你的项目的自定义工具来扩展它。你可以在[集成目录中找到更多开发工具应用程序进行安装](https://astro.build/integrations/?search=&categories%5B%5D=toolbar)或使用 [Astro 菜单](#astro-menu)。 + +根据各自的安装说明,像安装任何其他 [Astro 集成](/zh-cn/guides/integrations-guide/) 一样,在你的项目中安装额外的开发工具栏应用程序集成。 + +## 禁用开发者工具栏 + +开发者工具栏默认为每个站点启用。你可以根据需要为单个项目和/或用户禁用它。 + +### 按项目 + +要为在项目中工作的每个人禁用开发者工具栏,请在 [Astro 配置文件](/zh-cn/reference/configuration-reference/)中设置 `devToolbar: false`。 + +```js title="astro.config.mjs" ins={4-6} +import { defineConfig } from "astro/config"; + +export default defineConfig({ + devToolbar: { + enabled: false + } +}) +``` + +要重新启用开发者工具栏,请从你的配置中删除这些行,或设置 `enabled: true`。 + +### 按用户 + +要在特定项目中为自己禁用开发者工具栏,请运行 [`astro preferences`](/zh-cn/reference/cli-reference/#astro-preferences) 命令。 + +```shell +astro preferences disable devToolbar +``` + +要在当前机器上为用户在所有 Astro 项目中禁用开发者工具栏,请在运行 `astro-preferences` 时添加 `--global` 标志: + +```shell +astro preferences disable --global devToolbar +``` + +可以稍后通过以下方式启用开发者工具栏: + +```shell +astro preferences enable devToolbar +``` \ No newline at end of file diff --git a/src/content/docs/zh-cn/install/auto.mdx b/src/content/docs/zh-cn/install/auto.mdx index 8caa12691eaf9..c59ba2c1320b8 100644 --- a/src/content/docs/zh-cn/install/auto.mdx +++ b/src/content/docs/zh-cn/install/auto.mdx @@ -84,7 +84,7 @@ Astro 带有一个内置的开发服务器,拥有项目开发所需的一切 Astro 将实时监听 `src/` 目录中的文件更改,因此你在开发过程中进行更改时无需重新启动服务器。 -在浏览器中查看你的站点时,你可以访问 [Astro 开发者工具栏](/zh-cn/reference/configuration-reference/#开发工具栏选项)。在你进行构建时,它将帮助你检查你的[群岛](/zh-cn/concepts/islands/)、发现无障碍性问题等等。 +在浏览器中查看你的站点时,你可以访问 [Astro 开发者工具栏](/zh-cn/guides/dev-toolbar/)。在你进行构建时,它将帮助你检查你的[群岛](/zh-cn/concepts/islands/)、发现无障碍性问题等等。 如果你无法在浏览器中打开你的项目,请返回运行 `dev` 命令的终端并查看是否发生错误,或者检查你的项目的服务 URL 是否与​上方​链接的 URL 不同。 diff --git a/src/i18n/zh-cn/nav.ts b/src/i18n/zh-cn/nav.ts index 9de94a5402506..ce604cf1f280b 100644 --- a/src/i18n/zh-cn/nav.ts +++ b/src/i18n/zh-cn/nav.ts @@ -26,6 +26,7 @@ export default NavDictionary({ 'guides/content-collections': '内容集合', 'guides/view-transitions': '视图过渡动画', 'guides/prefetch': '预获取', + 'guides/dev-toolbar': '开发者工具栏', addons: '集成', 'guides/integrations-guide': '添加集成', From 9abb29df732a2527dc942293dda18b247d1d0f86 Mon Sep 17 00:00:00 2001 From: huyikai Date: Tue, 26 Mar 2024 12:44:37 +0800 Subject: [PATCH 02/15] i18n(zh-cn): Update `dev-toolbar.mdx` --- src/content/docs/zh-cn/guides/dev-toolbar.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/docs/zh-cn/guides/dev-toolbar.mdx b/src/content/docs/zh-cn/guides/dev-toolbar.mdx index 7a20a444e2f70..e114516855e19 100644 --- a/src/content/docs/zh-cn/guides/dev-toolbar.mdx +++ b/src/content/docs/zh-cn/guides/dev-toolbar.mdx @@ -38,7 +38,7 @@ Astro 菜单应用程序提供了便捷的方式来访问当前项目的各种 ## 扩展开发工具栏 -Astro 集成可以向开发工具栏添加新的应用程序,允许你使用特定于你的项目的自定义工具来扩展它。你可以在[集成目录中找到更多开发工具应用程序进行安装](https://astro.build/integrations/?search=&categories%5B%5D=toolbar)或使用 [Astro 菜单](#astro-menu)。 +Astro 集成可以向开发工具栏添加新的应用程序,允许你使用特定于你的项目的自定义工具来扩展它。你可以在[集成目录中找到更多开发工具应用程序进行安装](https://astro.build/integrations/?search=&categories%5B%5D=toolbar)或使用 [Astro 菜单](#Astro-菜单)。 根据各自的安装说明,像安装任何其他 [Astro 集成](/zh-cn/guides/integrations-guide/) 一样,在你的项目中安装额外的开发工具栏应用程序集成。 From ac1154acf44a81058cac816d2faeaece584bd910 Mon Sep 17 00:00:00 2001 From: huyikai Date: Tue, 26 Mar 2024 13:35:09 +0800 Subject: [PATCH 03/15] i18n(zh-cn): Update `dev-toolbar.mdx` --- src/content/docs/zh-cn/guides/dev-toolbar.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/docs/zh-cn/guides/dev-toolbar.mdx b/src/content/docs/zh-cn/guides/dev-toolbar.mdx index e114516855e19..c87bc349376c8 100644 --- a/src/content/docs/zh-cn/guides/dev-toolbar.mdx +++ b/src/content/docs/zh-cn/guides/dev-toolbar.mdx @@ -38,7 +38,7 @@ Astro 菜单应用程序提供了便捷的方式来访问当前项目的各种 ## 扩展开发工具栏 -Astro 集成可以向开发工具栏添加新的应用程序,允许你使用特定于你的项目的自定义工具来扩展它。你可以在[集成目录中找到更多开发工具应用程序进行安装](https://astro.build/integrations/?search=&categories%5B%5D=toolbar)或使用 [Astro 菜单](#Astro-菜单)。 +Astro 集成可以向开发工具栏添加新的应用程序,允许你使用特定于你的项目的自定义工具来扩展它。你可以在[集成目录中找到更多开发工具应用程序进行安装](https://astro.build/integrations/?search=&categories%5B%5D=toolbar)或使用 [Astro 菜单](#astro菜单)。 根据各自的安装说明,像安装任何其他 [Astro 集成](/zh-cn/guides/integrations-guide/) 一样,在你的项目中安装额外的开发工具栏应用程序集成。 From d0268633528a1fd386a095cba8eb795e5d936707 Mon Sep 17 00:00:00 2001 From: huyikai Date: Tue, 26 Mar 2024 13:54:24 +0800 Subject: [PATCH 04/15] i18n(zh-cn): Update `dev-toolbar.mdx` --- src/content/docs/zh-cn/guides/dev-toolbar.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/docs/zh-cn/guides/dev-toolbar.mdx b/src/content/docs/zh-cn/guides/dev-toolbar.mdx index c87bc349376c8..9c22b849659e1 100644 --- a/src/content/docs/zh-cn/guides/dev-toolbar.mdx +++ b/src/content/docs/zh-cn/guides/dev-toolbar.mdx @@ -38,7 +38,7 @@ Astro 菜单应用程序提供了便捷的方式来访问当前项目的各种 ## 扩展开发工具栏 -Astro 集成可以向开发工具栏添加新的应用程序,允许你使用特定于你的项目的自定义工具来扩展它。你可以在[集成目录中找到更多开发工具应用程序进行安装](https://astro.build/integrations/?search=&categories%5B%5D=toolbar)或使用 [Astro 菜单](#astro菜单)。 +Astro 集成可以向开发工具栏添加新的应用程序,允许你使用特定于你的项目的自定义工具来扩展它。你可以在[集成目录中找到更多开发工具应用程序进行安装](https://astro.build/integrations/?search=&categories%5B%5D=toolbar)或使用 [Astro 菜单](#astro-菜单)。 根据各自的安装说明,像安装任何其他 [Astro 集成](/zh-cn/guides/integrations-guide/) 一样,在你的项目中安装额外的开发工具栏应用程序集成。 From dc9ee64f6eab523dd21b0142ae0a27a737f9d4fd Mon Sep 17 00:00:00 2001 From: huyikai Date: Wed, 27 Mar 2024 13:16:14 +0800 Subject: [PATCH 05/15] Update src/content/docs/zh-cn/guides/dev-toolbar.mdx Co-authored-by: liruifengv --- src/content/docs/zh-cn/guides/dev-toolbar.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/docs/zh-cn/guides/dev-toolbar.mdx b/src/content/docs/zh-cn/guides/dev-toolbar.mdx index 9c22b849659e1..e8e767302f663 100644 --- a/src/content/docs/zh-cn/guides/dev-toolbar.mdx +++ b/src/content/docs/zh-cn/guides/dev-toolbar.mdx @@ -6,7 +6,7 @@ i18nReady: true 当开发服务器运行时,Astro 会在你本地浏览器预览的每个页面底部包含一个开发者工具栏。 -此工具栏包含许多用于在开发过程中调试和检查你的网站的有用工具,并且可以在集成目录中找到[更多开发者工具栏应用程序](#扩展开发工具栏)进行扩展。你甚至可以使用 [开发者工具栏 API](/zh-cn/reference/dev-toolbar-app-reference/)构建你自己的应用程序! +此工具栏包含许多有用的工具,用于在开发过程中调试和检查你的网站,并且可以在集成目录中找到[更多开发者工具栏应用](#扩展开发工具栏)进行扩展。你甚至可以使用 [开发者工具栏 API](/zh-cn/reference/dev-toolbar-app-reference/)构建你自己的应用! 此工具栏默认启用,并在你将鼠标悬停在页面底部时出现。它仅是一个开发工具,并不会在你的发布网站上出现。 From 3c17e0c3b9cb72b25ce84dfac1dec38d87a3de4d Mon Sep 17 00:00:00 2001 From: huyikai Date: Wed, 27 Mar 2024 13:16:26 +0800 Subject: [PATCH 06/15] Update src/content/docs/zh-cn/guides/dev-toolbar.mdx Co-authored-by: liruifengv --- src/content/docs/zh-cn/guides/dev-toolbar.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/docs/zh-cn/guides/dev-toolbar.mdx b/src/content/docs/zh-cn/guides/dev-toolbar.mdx index e8e767302f663..40ceeac7e61b9 100644 --- a/src/content/docs/zh-cn/guides/dev-toolbar.mdx +++ b/src/content/docs/zh-cn/guides/dev-toolbar.mdx @@ -16,7 +16,7 @@ i18nReady: true Astro 菜单应用程序提供了便捷的方式来访问当前项目的各种信息和链接到额外资源。值得注意的是,它提供了一键访问 Astro 文档、GitHub 仓库和 Discord 服务器。 -这个应用程序还包括一个“复制调试信息”按钮,它将运行 [`astro info`](/zh-cn/reference/cli-reference/#astro-info) 命令并将输出复制到你的剪贴板。这在请求帮助或报告问题时可能很有用。 +这个应用程序还包括一个 “Copy debug info” 按钮,它将运行 [`astro info`](/zh-cn/reference/cli-reference/#astro-info) 命令并将输出复制到你的剪贴板。这在请求帮助或报告问题时可能很有用。 ### 检查 From 75ba9b195f69d111f5e4dc53f7d82af6621a8323 Mon Sep 17 00:00:00 2001 From: huyikai Date: Wed, 27 Mar 2024 13:16:40 +0800 Subject: [PATCH 07/15] Update src/content/docs/zh-cn/guides/dev-toolbar.mdx Co-authored-by: liruifengv --- src/content/docs/zh-cn/guides/dev-toolbar.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/docs/zh-cn/guides/dev-toolbar.mdx b/src/content/docs/zh-cn/guides/dev-toolbar.mdx index 40ceeac7e61b9..c403b30bf5b9f 100644 --- a/src/content/docs/zh-cn/guides/dev-toolbar.mdx +++ b/src/content/docs/zh-cn/guides/dev-toolbar.mdx @@ -24,7 +24,7 @@ Astro 菜单应用程序提供了便捷的方式来访问当前项目的各种 ### 审计 -审计应用程序会自动在当前页面上运行一系列审计,检查最常见的性能和可访问性问题。当发现问题时,工具栏上会出现一个红点。点击应用程序将弹出一个来自审计的结果列表,并直接在页面中高亮显示相关元素。 +Audit 应用会自动在当前页面上运行一系列审计,检查最常见的性能和无障碍问题。当发现问题时,工具栏上会出现一个红点。点击应用程序将弹出一个来自审计的结果列表,并直接在页面中高亮显示相关元素。 :::note 开发者工具栏执行的基本性能和可访问性审计,并不能取代专用工具如 [Pa11y](https://pa11y.org/) 或 [Lighthouse](https://developers.google.com/web/tools/lighthouse),更不用说比这些工具更好的人工审查了! From c6a982bd7af344682ed392ee129c9c91b16eaf04 Mon Sep 17 00:00:00 2001 From: huyikai Date: Wed, 27 Mar 2024 13:16:49 +0800 Subject: [PATCH 08/15] Update src/content/docs/zh-cn/guides/dev-toolbar.mdx Co-authored-by: liruifengv --- src/content/docs/zh-cn/guides/dev-toolbar.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/docs/zh-cn/guides/dev-toolbar.mdx b/src/content/docs/zh-cn/guides/dev-toolbar.mdx index c403b30bf5b9f..3c0549eaac221 100644 --- a/src/content/docs/zh-cn/guides/dev-toolbar.mdx +++ b/src/content/docs/zh-cn/guides/dev-toolbar.mdx @@ -12,7 +12,7 @@ i18nReady: true ## 内置应用程序 -### Astro 菜单 +### Astro Menu Astro 菜单应用程序提供了便捷的方式来访问当前项目的各种信息和链接到额外资源。值得注意的是,它提供了一键访问 Astro 文档、GitHub 仓库和 Discord 服务器。 From 6d485a99d464dbf66c4859942e9f48ef4c775bce Mon Sep 17 00:00:00 2001 From: huyikai Date: Wed, 27 Mar 2024 13:16:55 +0800 Subject: [PATCH 09/15] Update src/content/docs/zh-cn/guides/dev-toolbar.mdx Co-authored-by: liruifengv --- src/content/docs/zh-cn/guides/dev-toolbar.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/docs/zh-cn/guides/dev-toolbar.mdx b/src/content/docs/zh-cn/guides/dev-toolbar.mdx index 3c0549eaac221..49193ac69d268 100644 --- a/src/content/docs/zh-cn/guides/dev-toolbar.mdx +++ b/src/content/docs/zh-cn/guides/dev-toolbar.mdx @@ -18,7 +18,7 @@ Astro 菜单应用程序提供了便捷的方式来访问当前项目的各种 这个应用程序还包括一个 “Copy debug info” 按钮,它将运行 [`astro info`](/zh-cn/reference/cli-reference/#astro-info) 命令并将输出复制到你的剪贴板。这在请求帮助或报告问题时可能很有用。 -### 检查 +### Inspect 检查应用程序提供了当前页面上任何[群岛结构](/zh-cn/concepts/islands/)的信息。这将向你展示传递给每个群岛的属性,以及用于渲染它们的客户端指令。 From c37154846bdfe8251a88b49c5b7218b047d8c75b Mon Sep 17 00:00:00 2001 From: huyikai Date: Wed, 27 Mar 2024 13:17:05 +0800 Subject: [PATCH 10/15] Update src/content/docs/zh-cn/guides/dev-toolbar.mdx Co-authored-by: liruifengv --- src/content/docs/zh-cn/guides/dev-toolbar.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/docs/zh-cn/guides/dev-toolbar.mdx b/src/content/docs/zh-cn/guides/dev-toolbar.mdx index 49193ac69d268..ed1831d1940ab 100644 --- a/src/content/docs/zh-cn/guides/dev-toolbar.mdx +++ b/src/content/docs/zh-cn/guides/dev-toolbar.mdx @@ -38,7 +38,7 @@ Audit 应用会自动在当前页面上运行一系列审计,检查最常见 ## 扩展开发工具栏 -Astro 集成可以向开发工具栏添加新的应用程序,允许你使用特定于你的项目的自定义工具来扩展它。你可以在[集成目录中找到更多开发工具应用程序进行安装](https://astro.build/integrations/?search=&categories%5B%5D=toolbar)或使用 [Astro 菜单](#astro-菜单)。 +Astro 集成可以向开发工具栏添加新的应用,允许你使用特定于你的项目的自定义工具来扩展它。你可以在[集成目录中找到更多开发工具应用进行安装](https://astro.build/integrations/?search=&categories%5B%5D=toolbar)或使用 [Astro Menu](#astro-菜单)。 根据各自的安装说明,像安装任何其他 [Astro 集成](/zh-cn/guides/integrations-guide/) 一样,在你的项目中安装额外的开发工具栏应用程序集成。 From 086e6aa65b2221cc89f5979abc80c47d95aeee30 Mon Sep 17 00:00:00 2001 From: huyikai Date: Wed, 27 Mar 2024 13:17:12 +0800 Subject: [PATCH 11/15] Update src/content/docs/zh-cn/guides/dev-toolbar.mdx Co-authored-by: liruifengv --- src/content/docs/zh-cn/guides/dev-toolbar.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/docs/zh-cn/guides/dev-toolbar.mdx b/src/content/docs/zh-cn/guides/dev-toolbar.mdx index ed1831d1940ab..8d07271f162ec 100644 --- a/src/content/docs/zh-cn/guides/dev-toolbar.mdx +++ b/src/content/docs/zh-cn/guides/dev-toolbar.mdx @@ -40,7 +40,7 @@ Audit 应用会自动在当前页面上运行一系列审计,检查最常见 Astro 集成可以向开发工具栏添加新的应用,允许你使用特定于你的项目的自定义工具来扩展它。你可以在[集成目录中找到更多开发工具应用进行安装](https://astro.build/integrations/?search=&categories%5B%5D=toolbar)或使用 [Astro Menu](#astro-菜单)。 -根据各自的安装说明,像安装任何其他 [Astro 集成](/zh-cn/guides/integrations-guide/) 一样,在你的项目中安装额外的开发工具栏应用程序集成。 +根据各自的安装说明,像安装任何其他 [Astro 集成](/zh-cn/guides/integrations-guide/) 一样,在你的项目中安装额外的开发工具栏应用集成。 ## 禁用开发者工具栏 From 25728c2371671a6d7da7c44071636d9c8a1b2cff Mon Sep 17 00:00:00 2001 From: huyikai Date: Wed, 27 Mar 2024 13:17:24 +0800 Subject: [PATCH 12/15] Update src/content/docs/zh-cn/guides/dev-toolbar.mdx Co-authored-by: liruifengv --- src/content/docs/zh-cn/guides/dev-toolbar.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/docs/zh-cn/guides/dev-toolbar.mdx b/src/content/docs/zh-cn/guides/dev-toolbar.mdx index 8d07271f162ec..30d804eeaa76b 100644 --- a/src/content/docs/zh-cn/guides/dev-toolbar.mdx +++ b/src/content/docs/zh-cn/guides/dev-toolbar.mdx @@ -20,7 +20,7 @@ Astro 菜单应用程序提供了便捷的方式来访问当前项目的各种 ### Inspect -检查应用程序提供了当前页面上任何[群岛结构](/zh-cn/concepts/islands/)的信息。这将向你展示传递给每个群岛的属性,以及用于渲染它们的客户端指令。 +Inspect 应用提供了当前页面上任何[群岛结构](/zh-cn/concepts/islands/)的信息。这将向你展示传递给每个群岛的属性,以及用于渲染它们的客户端指令。 ### 审计 From 24601afbf78c0e5343d009eccc316b6b29faa57d Mon Sep 17 00:00:00 2001 From: huyikai Date: Wed, 27 Mar 2024 13:17:31 +0800 Subject: [PATCH 13/15] Update src/content/docs/zh-cn/guides/dev-toolbar.mdx Co-authored-by: liruifengv --- src/content/docs/zh-cn/guides/dev-toolbar.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/docs/zh-cn/guides/dev-toolbar.mdx b/src/content/docs/zh-cn/guides/dev-toolbar.mdx index 30d804eeaa76b..5534c4557ce85 100644 --- a/src/content/docs/zh-cn/guides/dev-toolbar.mdx +++ b/src/content/docs/zh-cn/guides/dev-toolbar.mdx @@ -14,7 +14,7 @@ i18nReady: true ### Astro Menu -Astro 菜单应用程序提供了便捷的方式来访问当前项目的各种信息和链接到额外资源。值得注意的是,它提供了一键访问 Astro 文档、GitHub 仓库和 Discord 服务器。 +Astro Menu 应用提供了便捷的方式来访问当前项目的各种信息和链接到额外资源。值得注意的是,它提供了一键访问 Astro 文档、GitHub 仓库和 Discord 服务器。 这个应用程序还包括一个 “Copy debug info” 按钮,它将运行 [`astro info`](/zh-cn/reference/cli-reference/#astro-info) 命令并将输出复制到你的剪贴板。这在请求帮助或报告问题时可能很有用。 From bb51c464473a7f45c7009d3eb5a771901f222d5a Mon Sep 17 00:00:00 2001 From: huyikai Date: Wed, 27 Mar 2024 13:17:37 +0800 Subject: [PATCH 14/15] Update src/content/docs/zh-cn/guides/dev-toolbar.mdx Co-authored-by: liruifengv --- src/content/docs/zh-cn/guides/dev-toolbar.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/docs/zh-cn/guides/dev-toolbar.mdx b/src/content/docs/zh-cn/guides/dev-toolbar.mdx index 5534c4557ce85..e629cad822689 100644 --- a/src/content/docs/zh-cn/guides/dev-toolbar.mdx +++ b/src/content/docs/zh-cn/guides/dev-toolbar.mdx @@ -10,7 +10,7 @@ i18nReady: true 此工具栏默认启用,并在你将鼠标悬停在页面底部时出现。它仅是一个开发工具,并不会在你的发布网站上出现。 -## 内置应用程序 +## 内置应用 ### Astro Menu From 1074edeb6c7285538a2658c477fb7a136ef08190 Mon Sep 17 00:00:00 2001 From: huyikai Date: Wed, 27 Mar 2024 13:34:06 +0800 Subject: [PATCH 15/15] Update dev-toolbar.mdx --- src/content/docs/zh-cn/guides/dev-toolbar.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/content/docs/zh-cn/guides/dev-toolbar.mdx b/src/content/docs/zh-cn/guides/dev-toolbar.mdx index e629cad822689..ad8227a2731fe 100644 --- a/src/content/docs/zh-cn/guides/dev-toolbar.mdx +++ b/src/content/docs/zh-cn/guides/dev-toolbar.mdx @@ -38,7 +38,7 @@ Audit 应用会自动在当前页面上运行一系列审计,检查最常见 ## 扩展开发工具栏 -Astro 集成可以向开发工具栏添加新的应用,允许你使用特定于你的项目的自定义工具来扩展它。你可以在[集成目录中找到更多开发工具应用进行安装](https://astro.build/integrations/?search=&categories%5B%5D=toolbar)或使用 [Astro Menu](#astro-菜单)。 +Astro 集成可以向开发工具栏添加新的应用,允许你使用特定于你的项目的自定义工具来扩展它。你可以在[集成目录中找到更多开发工具应用进行安装](https://astro.build/integrations/?search=&categories%5B%5D=toolbar)或使用 [Astro Menu](#astro-menu)。 根据各自的安装说明,像安装任何其他 [Astro 集成](/zh-cn/guides/integrations-guide/) 一样,在你的项目中安装额外的开发工具栏应用集成。 @@ -80,4 +80,4 @@ astro preferences disable --global devToolbar ```shell astro preferences enable devToolbar -``` \ No newline at end of file +```