Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -189,45 +189,45 @@ Docsy 和 Hugo 使用的 markdown 规范没有提供使用 markdown 符号调整
整体格式是:

```
{{</* tabs [Tab1] [Tab2]>}}
{{</* tabpane text=true>}}

{{% tab %}}
{{% tab header="[Tab1]" %}}
[Tab1 的内容]
{{% /tab %}}

{{% tab %}}
{{% tab header="[Tab2]" %}}
[Tab2 的内容]
{{% /tab %}}

{{< /tabs */>}}
{{< /tabpane */>}}
```

您撰写的所有内容都将被渲染为 markdown,因此您可以包含图像、代码块、YouTube 视频等。

#### 示例

````
{{</* tabs Windows Linux MacOS>}}
{{</* tabpane text=true >}}

{{% 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 */>}}
````

此示例将呈现为:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -732,7 +732,7 @@ response, err := client.Do(req)

{{% /tab %}}

{{% /tabs %}}
{{< /tabpane >}}

## 一次运行一个应用程序

Expand Down Expand Up @@ -1405,7 +1405,7 @@ Dapr 在任何 Dapr 实例上调用应用程序。在代码中,边车编程模

{{% /tab %}}

{{% /tabs %}}
{{< /tabpane >}}

## 告诉我们您的想法!
我们正在不断努力改进我们的快速入门示例,并重视您的反馈。您觉得这个快速入门有帮助吗?您有改进建议吗?
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand All @@ -315,7 +315,7 @@ spec:

{{% /tab %}}

{{% tab %}}
{{% tab header="Windows" %}}

```powershell
$env:DAPR_TRUST_ANCHORS=$(Get-Content -raw $env:USERPROFILE\.dapr\certs\ca.crt)
Expand All @@ -326,7 +326,7 @@ spec:

{{% /tab %}}

{{< /tabs >}}
{{< /tabpane >}}

1. 运行daprd以启动Node.js应用程序的Dapr sidecar,启用mTLS,引用本地Sentry服务:

Expand All @@ -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`
Expand All @@ -356,7 +356,7 @@ spec:
```
{{% /tab %}}

{{% tab %}}
{{% tab header="Windows" %}}

```powershell
$env:DAPR_TRUST_ANCHORS=$(Get-Content -raw $env:USERPROFILE\.dapr\certs\ca.crt)
Expand All @@ -367,7 +367,7 @@ spec:

{{% /tab %}}

{{< /tabs >}}
{{< /tabpane >}}

1. 运行daprd以启动Python应用程序的Dapr sidecar,启用mTLS,引用本地Sentry服务:

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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:<dapr-port>/v1.0/bindings/<binding-name>
```
{{% /tab %}}

{{% tab %}}
{{% tab header="Linux" %}}
```bash
curl -d '{ "operation": "create", "data": "YOUR_BASE_64_CONTENT", "metadata": { "fileName": "my-test-file.jpg" } }' \
http://localhost:<dapr-port>/v1.0/bindings/<binding-name>
Expand Down Expand Up @@ -123,13 +123,13 @@ spec:

{{< tabpane text=true >}}

{{% tab %}}
{{% tab header="Windows" %}}
```bash
curl -d '{ \"operation\": \"get\", \"metadata\": { \"fileName\": \"filename\" }}' http://localhost:<dapr-port>/v1.0/bindings/<binding-name>
```
{{% /tab %}}

{{% tab %}}
{{% tab header="Linux" %}}
```bash
curl -d '{ "operation": "get", "metadata": { "fileName": "filename" }}' \
http://localhost:<dapr-port>/v1.0/bindings/<binding-name>
Expand Down Expand Up @@ -167,13 +167,13 @@ spec:

{{< tabpane text=true >}}

{{% tab %}}
{{% tab header="Windows" %}}
```bash
curl -d '{ \"operation\": \"list\", \"metadata\": { \"fileName\": \"my/cool/directory\" }}' http://localhost:<dapr-port>/v1.0/bindings/<binding-name>
```
{{% /tab %}}

{{% tab %}}
{{% tab header="Linux" %}}
```bash
curl -d '{ "operation": "list", "metadata": { "fileName": "my/cool/directory" }}' \
http://localhost:<dapr-port>/v1.0/bindings/<binding-name>
Expand Down Expand Up @@ -203,13 +203,13 @@ spec:

{{< tabpane text=true >}}

{{% tab %}}
{{% tab header="Windows" %}}
```bash
curl -d '{ \"operation\": \"delete\", \"metadata\": { \"fileName\": \"myfile\" }}' http://localhost:<dapr-port>/v1.0/bindings/<binding-name>
```
{{% /tab %}}

{{% tab %}}
{{% tab header="Linux" %}}
```bash
curl -d '{ "operation": "delete", "metadata": { "fileName": "myfile" }}' \
http://localhost:<dapr-port>/v1.0/bindings/<binding-name>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -661,7 +661,7 @@ app.include_router(router)

{{% /tab %}}

{{< /tabs >}}
{{< /tabpane >}}



Expand Down