From ef24e6f7b4b264fb9ce80d38d9d1f17d6b3cc3a0 Mon Sep 17 00:00:00 2001 From: "gaoyuan.1226" Date: Fri, 13 Dec 2024 11:46:39 +0800 Subject: [PATCH] docs: head config only takes effect in production mode --- packages/document/docs/en/api/config/config-basic.mdx | 2 +- packages/document/docs/zh/api/config/config-basic.mdx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/document/docs/en/api/config/config-basic.mdx b/packages/document/docs/en/api/config/config-basic.mdx index 8509dbcda..48ec0e48c 100644 --- a/packages/document/docs/en/api/config/config-basic.mdx +++ b/packages/document/docs/en/api/config/config-basic.mdx @@ -187,7 +187,7 @@ export default defineConfig({ - Type: `string` | `[string, Record]` | `(route) => string | [string, Record] | undefined` - Can be appended per page via [frontmatter](./config-frontmatter.mdx#head) -Additional elements to render in the `` tag in the page HTML. +Used to set additional elements rendered in the `` tag of the page's HTML in production mode. ```ts title="rspress.config.ts" import { defineConfig } from 'rspress/config'; diff --git a/packages/document/docs/zh/api/config/config-basic.mdx b/packages/document/docs/zh/api/config/config-basic.mdx index cb2a7c9d5..f89f781c6 100644 --- a/packages/document/docs/zh/api/config/config-basic.mdx +++ b/packages/document/docs/zh/api/config/config-basic.mdx @@ -187,7 +187,7 @@ export default defineConfig({ - Type: `string` | `[string, Record]` | `(route) => string | [string, Record] | undefined` - 也可以通过 [frontmatter](./config-frontmatter.mdx#head) 针对每个页面设置 -页面 HTML 的 `` 标签中呈现的附加元素。 +用于设置生产模式下页面 HTML 的 `` 标签中呈现的附加元素。 ```ts title="rspress.config.ts" import { defineConfig } from 'rspress/config';