This is an automated email from the ASF dual-hosted git repository.

popduke pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/bifromq-sites.git


The following commit(s) were added to refs/heads/master by this push:
     new 8eb89337 update linux&windows steps
8eb89337 is described below

commit 8eb8933791779180296b13e26d1db4a6d4a519c7
Author: Yonny Hao <[email protected]>
AuthorDate: Tue Dec 2 15:40:20 2025 +0800

    update linux&windows steps
---
 docs/installation/linux.md    | 16 ----------------
 docs/installation/linux.mdx   | 17 +++++++++++++++++
 docs/installation/windows.md  | 17 -----------------
 docs/installation/windows.mdx | 18 ++++++++++++++++++
 4 files changed, 35 insertions(+), 33 deletions(-)

diff --git a/docs/installation/linux.md b/docs/installation/linux.md
deleted file mode 100644
index e04647af..00000000
--- a/docs/installation/linux.md
+++ /dev/null
@@ -1,16 +0,0 @@
----
-sidebar_position: 2
-title: "Linux"
----
-
-## Prerequisites
-
-- JDK 17+
-- Latest version BifroMQ [Releases](/download)
-
-## Shell Commands
-
-```
-tar -zxvf bifromq-*-standalone.tar.gz --strip-components 1  -C 
/usr/share/bifromq/
-cd /usr/share/bifromq && ./bin/standalone.sh start
-```
diff --git a/docs/installation/linux.mdx b/docs/installation/linux.mdx
new file mode 100644
index 00000000..ad4b776f
--- /dev/null
+++ b/docs/installation/linux.mdx
@@ -0,0 +1,17 @@
+---
+sidebar_position: 2
+title: "Linux"
+---
+import React from 'react';
+import CodeBlock from '@theme/CodeBlock';
+import { useDocsVersion } from '@docusaurus/plugin-content-docs/client';
+
+## Prerequisites
+
+- JDK 17+
+- Latest version BifroMQ [Releases](/download)
+
+## Shell Commands
+
+<CodeBlock language="bash">{`tar -zxvf 
apache-bifromq-${useDocsVersion()?.label}.tar.gz --strip-components 1  -C 
/usr/share/bifromq/
+cd /usr/share/bifromq && ./bin/standalone.sh start`}</CodeBlock>
diff --git a/docs/installation/windows.md b/docs/installation/windows.md
deleted file mode 100644
index 308709d0..00000000
--- a/docs/installation/windows.md
+++ /dev/null
@@ -1,17 +0,0 @@
----
-sidebar_position: 3
-title: "Windows"
----
-
-## Prerequisites
-
-- JDK 17+
-- Latest version from BifroMQ [Releases](/download)
-
-## Shell Commands
-
-```
-unzip -zxvf bifromq-*-standalone-windows.zip
-cd bifromq\bin
-standalone.bat start
-```
diff --git a/docs/installation/windows.mdx b/docs/installation/windows.mdx
new file mode 100644
index 00000000..602db86b
--- /dev/null
+++ b/docs/installation/windows.mdx
@@ -0,0 +1,18 @@
+---
+sidebar_position: 3
+title: "Windows"
+---
+import React from 'react';
+import CodeBlock from '@theme/CodeBlock';
+import { useDocsVersion } from '@docusaurus/plugin-content-docs/client';
+
+## Prerequisites
+
+- JDK 17+
+- Latest version from BifroMQ [Releases](/download)
+
+## Shell Commands
+
+<CodeBlock language="bash">{`unzip -zxvf 
apache-bifromq-${useDocsVersion()?.label}-windows.zip
+cd bifromq\bin
+standalone.bat start`}</CodeBlock>

Reply via email to