From 24a43afa0953629869a6510bba88b7816a8a164f Mon Sep 17 00:00:00 2001 From: Tang ZZ Date: Fri, 21 Aug 2026 15:03:57 +0800 Subject: [PATCH 1/2] docs(common/general): convert multiline pre block to standard format in etcher template --- docs/common/general/_etcher.mdx | 8 +++----- .../current/common/general/_etcher.mdx | 10 ++++------ 2 files changed, 7 insertions(+), 11 deletions(-) diff --git a/docs/common/general/_etcher.mdx b/docs/common/general/_etcher.mdx index 1d6e1d024..ea726d1ae 100644 --- a/docs/common/general/_etcher.mdx +++ b/docs/common/general/_etcher.mdx @@ -71,11 +71,9 @@ sudo dpkg -i balena-etcher_1.19.16_amd64.deb 7. 启动系统 -
-  按照上述步骤成功烧录 microSD 卡后, 将 microSD 卡插入 {props.product} 的
-  MicroSD 插槽内(如下图所示), 使用 {props.power_supply}{" "}
-  电源适配器上电,然后系统开始启动,HDMI显示桌面。
-
+
{`按照上述步骤成功烧录 microSD 卡后, 将 microSD 卡插入 ${props.product} 的
+MicroSD 插槽内(如下图所示), 使用 ${props.power_supply}
+电源适配器上电,然后系统开始启动,HDMI显示桌面。`}
diff --git a/i18n/en/docusaurus-plugin-content-docs/current/common/general/_etcher.mdx b/i18n/en/docusaurus-plugin-content-docs/current/common/general/_etcher.mdx index 661478e5f..642857158 100644 --- a/i18n/en/docusaurus-plugin-content-docs/current/common/general/_etcher.mdx +++ b/i18n/en/docusaurus-plugin-content-docs/current/common/general/_etcher.mdx @@ -70,12 +70,10 @@ The downloaded system image is in compressed format. You must decompress it firs 7. Starting the system -
-  After successfully burning the microSD card according to the above steps,
-  insert the microSD card into the MicroSD slot of {props.product}(as shown
-  below), power on the system with the {props.power_supply} power adapter, and
-  then the system will start booting and HDMI will display the desktop.
-
+
{`After successfully burning the microSD card according to the above steps,
+insert the microSD card into the MicroSD slot of ${props.product}(as shown
+below), power on the system with the ${props.power_supply} power adapter, and
+then the system will start booting and HDMI will display the desktop.`}
From 98a0e349bfac8e16849188b604f6e8c777eb51dc Mon Sep 17 00:00:00 2001 From: Tang ZZ Date: Fri, 21 Aug 2026 16:17:00 +0800 Subject: [PATCH 2/2] fix: collapse multiline template-literal pre blocks to single line to avoid MDX lazy-line error --- docs/common/general/_etcher.mdx | 4 +--- .../current/common/general/_etcher.mdx | 5 +---- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/docs/common/general/_etcher.mdx b/docs/common/general/_etcher.mdx index ea726d1ae..fa467c375 100644 --- a/docs/common/general/_etcher.mdx +++ b/docs/common/general/_etcher.mdx @@ -71,9 +71,7 @@ sudo dpkg -i balena-etcher_1.19.16_amd64.deb 7. 启动系统 -
{`按照上述步骤成功烧录 microSD 卡后, 将 microSD 卡插入 ${props.product} 的
-MicroSD 插槽内(如下图所示), 使用 ${props.power_supply}
-电源适配器上电,然后系统开始启动,HDMI显示桌面。`}
+
{`按照上述步骤成功烧录 microSD 卡后, 将 microSD 卡插入 ${props.product} 的\nMicroSD 插槽内(如下图所示), 使用 ${props.power_supply}\n电源适配器上电,然后系统开始启动,HDMI显示桌面。`}
diff --git a/i18n/en/docusaurus-plugin-content-docs/current/common/general/_etcher.mdx b/i18n/en/docusaurus-plugin-content-docs/current/common/general/_etcher.mdx index 642857158..afb8dc888 100644 --- a/i18n/en/docusaurus-plugin-content-docs/current/common/general/_etcher.mdx +++ b/i18n/en/docusaurus-plugin-content-docs/current/common/general/_etcher.mdx @@ -70,10 +70,7 @@ The downloaded system image is in compressed format. You must decompress it firs 7. Starting the system -
{`After successfully burning the microSD card according to the above steps,
-insert the microSD card into the MicroSD slot of ${props.product}(as shown
-below), power on the system with the ${props.power_supply} power adapter, and
-then the system will start booting and HDMI will display the desktop.`}
+
{`After successfully burning the microSD card according to the above steps,\ninsert the microSD card into the MicroSD slot of ${props.product}(as shown\nbelow), power on the system with the ${props.power_supply} power adapter, and\nthen the system will start booting and HDMI will display the desktop.`}