mirror of https://github.com/dapr/docs.git
Add missing tab header values
Signed-off-by: Marc Duiker <marcduiker@users.noreply.github.com>
This commit is contained in:
parent
082756caa6
commit
cd1b1d91b8
|
|
@ -14,13 +14,13 @@ To get started, create and configure your namespace.
|
|||
|
||||
{{< tabpane text=true >}}
|
||||
|
||||
{{% tab "Self-Hosted" %}}
|
||||
{{% tab header="Self-Hosted" %}}
|
||||
|
||||
In self-hosted mode, specify the namespace for a Dapr instance by setting the `NAMESPACE` environment variable.
|
||||
|
||||
{{% /tab %}}
|
||||
|
||||
{{% tab "Kubernetes" %}}
|
||||
{{% tab header="Kubernetes" %}}
|
||||
|
||||
On Kubernetes, create and configure the namespace:
|
||||
|
||||
|
|
|
|||
|
|
@ -191,11 +191,11 @@ The overall format is:
|
|||
```
|
||||
{{< tabpane text=true >}}
|
||||
|
||||
{{% tab "Tab1" %}}
|
||||
{{% tab header="Tab1" %}}
|
||||
[Content for Tab1]
|
||||
{{% /tab %}}
|
||||
|
||||
{{% tab "Tab2" %}}
|
||||
{{% tab header="Tab2" %}}
|
||||
[Content for Tab2]
|
||||
{{% /tab %}}
|
||||
|
||||
|
|
@ -209,19 +209,19 @@ All content you author will be rendered to markdown, so you can include images,
|
|||
````
|
||||
{{< tabpane text=true >}}
|
||||
|
||||
{{% tab "Windows" %}}
|
||||
{{% tab header="Windows" %}}
|
||||
```powershell
|
||||
powershell -Command "iwr -useb https://raw.githubusercontent.com/dapr/cli/master/install/install.ps1 | iex"
|
||||
```
|
||||
{{% /tab %}}
|
||||
|
||||
{{% tab "Linux" %}}
|
||||
{{% tab header="Linux" %}}
|
||||
```bash
|
||||
wget -q https://raw.githubusercontent.com/dapr/cli/master/install/install.sh -O - | /bin/bash
|
||||
```
|
||||
{{% /tab %}}
|
||||
|
||||
{{% tab "MacOS" %}}
|
||||
{{% tab header="MacOS" %}}
|
||||
```bash
|
||||
brew install dapr/tap/dapr-cli
|
||||
```
|
||||
|
|
@ -234,7 +234,7 @@ This example will render to this:
|
|||
|
||||
{{< tabpane text=true >}}
|
||||
|
||||
{{% tab "Windows" %}}
|
||||
{{% tab header="Windows" %}}
|
||||
|
||||
```powershell
|
||||
powershell -Command "iwr -useb https://raw.githubusercontent.com/dapr/cli/master/install/install.ps1 | iex"
|
||||
|
|
@ -242,7 +242,7 @@ powershell -Command "iwr -useb https://raw.githubusercontent.com/dapr/cli/master
|
|||
|
||||
{{% /tab %}}
|
||||
|
||||
{{% tab "Linux" %}}
|
||||
{{% tab header="Linux" %}}
|
||||
|
||||
```bash
|
||||
wget -q https://raw.githubusercontent.com/dapr/cli/master/install/install.sh -O - | /bin/bash
|
||||
|
|
@ -250,7 +250,7 @@ wget -q https://raw.githubusercontent.com/dapr/cli/master/install/install.sh -O
|
|||
|
||||
{{% /tab %}}
|
||||
|
||||
{{% tab "MacOS" %}}
|
||||
{{% tab header="MacOS" %}}
|
||||
|
||||
```bash
|
||||
brew install dapr/tap/dapr-cli
|
||||
|
|
|
|||
|
|
@ -54,16 +54,16 @@ check_markdown_file() {
|
|||
issues+=("tabpane exists but no tab elements found")
|
||||
fi
|
||||
|
||||
# Check 4: Tab element format should be {{% tab header=VALUE text=true %}}
|
||||
# Check 4: Tab element format should be {{% tab header=VALUE %}}
|
||||
# Allow VALUE to be a word with/without quotes or multiple words within quotes
|
||||
tab_lines=$(echo "$content" | grep -n "{% tab")
|
||||
while IFS= read -r line; do
|
||||
if [ -n "$line" ]; then
|
||||
line_content=$(echo "$line" | cut -d: -f2-)
|
||||
if ! echo "$line_content" | grep -qE '\{\{%\s*tab\s+header=(("[^"]*")|([a-zA-Z0-9_-]+))\s+text=true\s*%\}\}'; then
|
||||
if ! echo "$line_content" | grep -qE '\{\{%\s*tab\s+header=(("[^"]*")|([a-zA-Z0-9_-]+))\s*%\}\}'; then
|
||||
has_issues=true
|
||||
line_num=$(echo "$line" | cut -d: -f1)
|
||||
issues+=("Line $line_num: Incorrect tab opening format - should be '{{% tab header=VALUE text=true %}}' where VALUE can be a word or quoted string")
|
||||
issues+=("Line $line_num: Incorrect tab opening format - should be '{{% tab header=VALUE %}}' where VALUE can be a word or quoted string")
|
||||
fi
|
||||
fi
|
||||
done <<< "$tab_lines"
|
||||
|
|
|
|||
Loading…
Reference in New Issue