From 51d9a4e45b23cca459610fe3d6cffae355cc9d01 Mon Sep 17 00:00:00 2001 From: Marc Duiker Date: Thu, 10 Jul 2025 14:57:17 +0200 Subject: [PATCH] Fix remaining tabpanes for Hugo migration Signed-off-by: Marc Duiker --- .../docs-contrib/contributing-docs.md | 18 +++++++++--------- .../serviceinvocation-quickstart.md | 4 ++-- .../configuration/invoke-allowlist.md | 16 ++++++++-------- .../supported-bindings/sftp.md | 16 ++++++++-------- .../supported-pubsub/setup-apache-kafka.md | 2 +- 5 files changed, 28 insertions(+), 28 deletions(-) diff --git a/translated_content/zh_CN/docs/contributing/docs-contrib/contributing-docs.md b/translated_content/zh_CN/docs/contributing/docs-contrib/contributing-docs.md index 39a1c861..d2a9be22 100644 --- a/translated_content/zh_CN/docs/contributing/docs-contrib/contributing-docs.md +++ b/translated_content/zh_CN/docs/contributing/docs-contrib/contributing-docs.md @@ -189,17 +189,17 @@ Docsy 和 Hugo 使用的 markdown 规范没有提供使用 markdown 符号调整 整体格式是: ``` -{{}} +{{}} -{{% tab %}} +{{% tab header="[Tab1]" %}} [Tab1 的内容] {{% /tab %}} -{{% tab %}} +{{% tab header="[Tab2]" %}} [Tab2 的内容] {{% /tab %}} -{{< /tabs */>}} +{{< /tabpane */>}} ``` 您撰写的所有内容都将被渲染为 markdown,因此您可以包含图像、代码块、YouTube 视频等。 @@ -207,27 +207,27 @@ Docsy 和 Hugo 使用的 markdown 规范没有提供使用 markdown 符号调整 #### 示例 ```` -{{}} +{{}} -{{% tab %}} +{{% tab header="Windows" %}} ```powershell powershell -Command "iwr -useb https://raw.githubusercontent.com/dapr/cli/master/install/install.ps1 | iex" ``` {{% /tab %}} -{{% tab %}} +{{% tab header="Linux" %}} ```bash wget -q https://raw.githubusercontent.com/dapr/cli/master/install/install.sh -O - | /bin/bash ``` {{% /tab %}} -{{% tab %}} +{{% tab header="MacOS" %}} ```bash brew install dapr/tap/dapr-cli ``` {{% /tab %}} -{{< /tabs */>}} +{{< /tabpane */>}} ```` 此示例将呈现为: diff --git a/translated_content/zh_CN/docs/getting-started/quickstarts/serviceinvocation-quickstart.md b/translated_content/zh_CN/docs/getting-started/quickstarts/serviceinvocation-quickstart.md index c8e69e00..7f837f0e 100644 --- a/translated_content/zh_CN/docs/getting-started/quickstarts/serviceinvocation-quickstart.md +++ b/translated_content/zh_CN/docs/getting-started/quickstarts/serviceinvocation-quickstart.md @@ -732,7 +732,7 @@ response, err := client.Do(req) {{% /tab %}} -{{% /tabs %}} +{{< /tabpane >}} ## 一次运行一个应用程序 @@ -1405,7 +1405,7 @@ Dapr 在任何 Dapr 实例上调用应用程序。在代码中,边车编程模 {{% /tab %}} -{{% /tabs %}} +{{< /tabpane >}} ## 告诉我们您的想法! 我们正在不断努力改进我们的快速入门示例,并重视您的反馈。您觉得这个快速入门有帮助吗?您有改进建议吗? diff --git a/translated_content/zh_CN/docs/operations/configuration/invoke-allowlist.md b/translated_content/zh_CN/docs/operations/configuration/invoke-allowlist.md index eb719fa7..cae008d1 100644 --- a/translated_content/zh_CN/docs/operations/configuration/invoke-allowlist.md +++ b/translated_content/zh_CN/docs/operations/configuration/invoke-allowlist.md @@ -302,9 +302,9 @@ spec: 1. 在命令提示符中,设置这些环境变量: - {{< tabs "Linux/MacOS" Windows >}} + {{< tabpane text=true >}} - {{% tab %}} + {{% tab header="Linux/MacOS" %}} ```bash export DAPR_TRUST_ANCHORS=`cat $HOME/.dapr/certs/ca.crt` @@ -315,7 +315,7 @@ spec: {{% /tab %}} - {{% tab %}} + {{% tab header="Windows" %}} ```powershell $env:DAPR_TRUST_ANCHORS=$(Get-Content -raw $env:USERPROFILE\.dapr\certs\ca.crt) @@ -326,7 +326,7 @@ spec: {{% /tab %}} - {{< /tabs >}} + {{< /tabpane >}} 1. 运行daprd以启动Node.js应用程序的Dapr sidecar,启用mTLS,引用本地Sentry服务: @@ -344,9 +344,9 @@ spec: 1. 在另一个命令提示符中,设置这些环境变量: - {{< tabs "Linux/MacOS" Windows >}} + {{< tabpane text=true >}} - {{% tab %}} + {{% tab header="Linux/MacOS" %}} ```bash export DAPR_TRUST_ANCHORS=`cat $HOME/.dapr/certs/ca.crt` @@ -356,7 +356,7 @@ spec: ``` {{% /tab %}} - {{% tab %}} + {{% tab header="Windows" %}} ```powershell $env:DAPR_TRUST_ANCHORS=$(Get-Content -raw $env:USERPROFILE\.dapr\certs\ca.crt) @@ -367,7 +367,7 @@ spec: {{% /tab %}} - {{< /tabs >}} + {{< /tabpane >}} 1. 运行daprd以启动Python应用程序的Dapr sidecar,启用mTLS,引用本地Sentry服务: diff --git a/translated_content/zh_CN/docs/reference/components-reference/supported-bindings/sftp.md b/translated_content/zh_CN/docs/reference/components-reference/supported-bindings/sftp.md index 539591d6..00a7bd79 100644 --- a/translated_content/zh_CN/docs/reference/components-reference/supported-bindings/sftp.md +++ b/translated_content/zh_CN/docs/reference/components-reference/supported-bindings/sftp.md @@ -81,13 +81,13 @@ spec: {{< tabpane text=true >}} - {{% tab %}} + {{% tab header="Windows" %}} ```bash curl -d "{ \"operation\": \"create\", \"data\": \"YOUR_BASE_64_CONTENT\", \"metadata\": { \"fileName\": \"my-test-file.jpg\" } }" http://localhost:/v1.0/bindings/ ``` {{% /tab %}} - {{% tab %}} + {{% tab header="Linux" %}} ```bash curl -d '{ "operation": "create", "data": "YOUR_BASE_64_CONTENT", "metadata": { "fileName": "my-test-file.jpg" } }' \ http://localhost:/v1.0/bindings/ @@ -123,13 +123,13 @@ spec: {{< tabpane text=true >}} - {{% tab %}} + {{% tab header="Windows" %}} ```bash curl -d '{ \"operation\": \"get\", \"metadata\": { \"fileName\": \"filename\" }}' http://localhost:/v1.0/bindings/ ``` {{% /tab %}} - {{% tab %}} + {{% tab header="Linux" %}} ```bash curl -d '{ "operation": "get", "metadata": { "fileName": "filename" }}' \ http://localhost:/v1.0/bindings/ @@ -167,13 +167,13 @@ spec: {{< tabpane text=true >}} - {{% tab %}} + {{% tab header="Windows" %}} ```bash curl -d '{ \"operation\": \"list\", \"metadata\": { \"fileName\": \"my/cool/directory\" }}' http://localhost:/v1.0/bindings/ ``` {{% /tab %}} - {{% tab %}} + {{% tab header="Linux" %}} ```bash curl -d '{ "operation": "list", "metadata": { "fileName": "my/cool/directory" }}' \ http://localhost:/v1.0/bindings/ @@ -203,13 +203,13 @@ spec: {{< tabpane text=true >}} - {{% tab %}} + {{% tab header="Windows" %}} ```bash curl -d '{ \"operation\": \"delete\", \"metadata\": { \"fileName\": \"myfile\" }}' http://localhost:/v1.0/bindings/ ``` {{% /tab %}} - {{% tab %}} + {{% tab header="Linux" %}} ```bash curl -d '{ "operation": "delete", "metadata": { "fileName": "myfile" }}' \ http://localhost:/v1.0/bindings/ diff --git a/translated_content/zh_CN/docs/reference/components-reference/supported-pubsub/setup-apache-kafka.md b/translated_content/zh_CN/docs/reference/components-reference/supported-pubsub/setup-apache-kafka.md index aea44be1..c6a4d30f 100644 --- a/translated_content/zh_CN/docs/reference/components-reference/supported-pubsub/setup-apache-kafka.md +++ b/translated_content/zh_CN/docs/reference/components-reference/supported-pubsub/setup-apache-kafka.md @@ -661,7 +661,7 @@ app.include_router(router) {{% /tab %}} -{{< /tabs >}} +{{< /tabpane >}}