From 4f07887f4623ad6b94313c2a6575b1b1959ea565 Mon Sep 17 00:00:00 2001 From: Tang ZZ Date: Fri, 21 Aug 2026 16:29:29 +0800 Subject: [PATCH] fix: collapse multiline template-literal pre blocks to single line to avoid MDX lazy-line error --- docs/common/accessories/_wifi-bt.mdx | 23 +++++-------------- .../current/common/accessories/_wifi-bt.mdx | 23 +++++-------------- 2 files changed, 12 insertions(+), 34 deletions(-) diff --git a/docs/common/accessories/_wifi-bt.mdx b/docs/common/accessories/_wifi-bt.mdx index f06c15147..d3ee00f1f 100644 --- a/docs/common/accessories/_wifi-bt.mdx +++ b/docs/common/accessories/_wifi-bt.mdx @@ -22,8 +22,7 @@ {" "} -
{`root@${props.model}:/home/radxa# nmcli dev wifi connect "wifi_name" password
-"wifi_password"`}
+
{`root@${props.model}:/home/radxa# nmcli dev wifi connect "wifi_name" password\n"wifi_password"`}
- 蓝牙的使用 @@ -31,16 +30,13 @@ {" "} -
{`root@${props.model}:/home/radxa# cat /etc/modprobe.d/blacklist.conf blacklist
-pgdrv blacklist btusb blacklist btrtl blacklist btbcm blacklist btintel
-root@${props.model}:~# reboot`}
+
{`root@${props.model}:/home/radxa# cat /etc/modprobe.d/blacklist.conf blacklist\npgdrv blacklist btusb blacklist btrtl blacklist btbcm blacklist btintel\nroot@${props.model}:~# reboot`}
2. Radxa APT 包括用于Broadcom无线模块的broadcom-wifibt-firmware软件包和用于Intel无线模块的intel-wifibt-firmware软件包。需要下载相应的软件包 {" "} -
{`root@${props.model}:/home/radxa# apt-get update -y root@${props.model}
-:/home/radxa# apt-get install -y broadcom-wifibt-firmware intel-wifibt-firmware`}
+
{`root@${props.model}:/home/radxa# apt-get update -y root@${props.model}\n:/home/radxa# apt-get install -y broadcom-wifibt-firmware intel-wifibt-firmware`}
3. 测试蓝牙模块的状态并检查蓝牙设备 @@ -58,17 +54,13 @@ root@${props.model}:~# reboot`} {" "} -
{`root@${props.model}:/home/radxa# hciconfig hci0: Type: Primary Bus: UART BD
-Address: 10:2C:6B:49:D5:53 ACL MTU: 1021:8 SCO MTU: 64:1 UP RUNNING RX
-bytes:850 acl:0 sco:0 events:58 errors:0 TX bytes:2814 acl:0 sco:0
-commands:58 errors:0`}
+
{`root@${props.model}:/home/radxa# hciconfig hci0: Type: Primary Bus: UART BD\nAddress: 10:2C:6B:49:D5:53 ACL MTU: 1021:8 SCO MTU: 64:1 UP RUNNING RX\nbytes:850 acl:0 sco:0 events:58 errors:0 TX bytes:2814 acl:0 sco:0\ncommands:58 errors:0`}
6. 测试:连接蓝牙音箱,首先安装 pulseaudio {" "} -
{`root@${props.model}:/home/radxa# apt-get install -y
-pulseaudio-module-bluetooth pulseaudio`}
+
{`root@${props.model}:/home/radxa# apt-get install -y\npulseaudio-module-bluetooth pulseaudio`}
7. 运行 pulseaudio @@ -80,9 +72,6 @@ pulseaudio-module-bluetooth pulseaudio`} {" "} -
{`root@${props.model}:/home/radxa# bluetoothctl [bluetooth]# default-agent
-[bluetooth]# power on [bluetooth]# scan on [bluetooth]# trust
-41:42:1A:8D:A9:65 #BT-280 [bluetooth]# pair 41:42:1A:8D:A9:65 [bluetooth]#
-connect 41:42:1A:8D:A9:65`}
+
{`root@${props.model}:/home/radxa# bluetoothctl [bluetooth]# default-agent\n[bluetooth]# power on [bluetooth]# scan on [bluetooth]# trust\n41:42:1A:8D:A9:65 #BT-280 [bluetooth]# pair 41:42:1A:8D:A9:65 [bluetooth]#\nconnect 41:42:1A:8D:A9:65`}
9. 现在您可以听音乐了 diff --git a/i18n/en/docusaurus-plugin-content-docs/current/common/accessories/_wifi-bt.mdx b/i18n/en/docusaurus-plugin-content-docs/current/common/accessories/_wifi-bt.mdx index a4c8940a3..dcafd46da 100644 --- a/i18n/en/docusaurus-plugin-content-docs/current/common/accessories/_wifi-bt.mdx +++ b/i18n/en/docusaurus-plugin-content-docs/current/common/accessories/_wifi-bt.mdx @@ -22,8 +22,7 @@ {" "} -
{`root@${props.model}:/home/radxa# nmcli dev wifi connect "wifi_name" password
-"wifi_password"`}
+
{`root@${props.model}:/home/radxa# nmcli dev wifi connect "wifi_name" password\n"wifi_password"`}
- Bluetooth Usage @@ -31,16 +30,13 @@ {" "} -
{`root@${props.model}:/home/radxa# cat /etc/modprobe.d/blacklist.conf blacklist
-pgdrv blacklist btusb blacklist btrtl blacklist btbcm blacklist btintel
-root@${props.model}:~# reboot`}
+
{`root@${props.model}:/home/radxa# cat /etc/modprobe.d/blacklist.conf blacklist\npgdrv blacklist btusb blacklist btrtl blacklist btbcm blacklist btintel\nroot@${props.model}:~# reboot`}
2. Radxa APT includes the broadcom-wifibt-firmware package for Broadcom wireless modules and the intel-wifibt-firmware package for Intel wireless modules. The corresponding packages need to be downloaded {" "} -
{`root@${props.model}:/home/radxa# apt-get update -y root@${props.model}
-:/home/radxa# apt-get install -y broadcom-wifibt-firmware intel-wifibt-firmware`}
+
{`root@${props.model}:/home/radxa# apt-get update -y root@${props.model}\n:/home/radxa# apt-get install -y broadcom-wifibt-firmware intel-wifibt-firmware`}
3. Test the status of the Bluetooth module and check the Bluetooth device @@ -58,17 +54,13 @@ root@${props.model}:~# reboot`} {" "} -
{`root@${props.model}:/home/radxa# hciconfig hci0: Type: Primary Bus: UART BD
-Address: 10:2C:6B:49:D5:53 ACL MTU: 1021:8 SCO MTU: 64:1 UP RUNNING RX
-bytes:850 acl:0 sco:0 events:58 errors:0 TX bytes:2814 acl:0 sco:0
-commands:58 errors:0`}
+
{`root@${props.model}:/home/radxa# hciconfig hci0: Type: Primary Bus: UART BD\nAddress: 10:2C:6B:49:D5:53 ACL MTU: 1021:8 SCO MTU: 64:1 UP RUNNING RX\nbytes:850 acl:0 sco:0 events:58 errors:0 TX bytes:2814 acl:0 sco:0\ncommands:58 errors:0`}
6. Test: Connect the Bluetooth speaker, first install pulseaudio {" "} -
{`root@${props.model}:/home/radxa# apt-get install -y
-pulseaudio-module-bluetooth pulseaudio`}
+
{`root@${props.model}:/home/radxa# apt-get install -y\npulseaudio-module-bluetooth pulseaudio`}
7. Run pulseaudio @@ -80,9 +72,6 @@ pulseaudio-module-bluetooth pulseaudio`} {" "} -
{`root@${props.model}:/home/radxa# bluetoothctl [bluetooth]# default-agent
-[bluetooth]# power on [bluetooth]# scan on [bluetooth]# trust
-41:42:1A:8D:A9:65 #BT-280 [bluetooth]# pair 41:42:1A:8D:A9:65 [bluetooth]#
-connect 41:42:1A:8D:A9:65`}
+
{`root@${props.model}:/home/radxa# bluetoothctl [bluetooth]# default-agent\n[bluetooth]# power on [bluetooth]# scan on [bluetooth]# trust\n41:42:1A:8D:A9:65 #BT-280 [bluetooth]# pair 41:42:1A:8D:A9:65 [bluetooth]#\nconnect 41:42:1A:8D:A9:65`}
9. Now you can listen to music