Skip to content

Commit cd1b1d9

Browse files
committed
Add missing tab header values
Signed-off-by: Marc Duiker <[email protected]>
1 parent 082756c commit cd1b1d9

File tree

3 files changed

+13
-13
lines changed

3 files changed

+13
-13
lines changed

daprdocs/content/en/concepts/isolation-concept.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@ To get started, create and configure your namespace.
1414

1515
{{< tabpane text=true >}}
1616

17-
{{% tab "Self-Hosted" %}}
17+
{{% tab header="Self-Hosted" %}}
1818

1919
In self-hosted mode, specify the namespace for a Dapr instance by setting the `NAMESPACE` environment variable.
2020

2121
{{% /tab %}}
2222

23-
{{% tab "Kubernetes" %}}
23+
{{% tab header="Kubernetes" %}}
2424

2525
On Kubernetes, create and configure the namespace:
2626

daprdocs/content/en/contributing/docs-contrib/contributing-docs.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -191,11 +191,11 @@ The overall format is:
191191
```
192192
{{< tabpane text=true >}}
193193
194-
{{% tab "Tab1" %}}
194+
{{% tab header="Tab1" %}}
195195
[Content for Tab1]
196196
{{% /tab %}}
197197
198-
{{% tab "Tab2" %}}
198+
{{% tab header="Tab2" %}}
199199
[Content for Tab2]
200200
{{% /tab %}}
201201
@@ -209,19 +209,19 @@ All content you author will be rendered to markdown, so you can include images,
209209
````
210210
{{< tabpane text=true >}}
211211
212-
{{% tab "Windows" %}}
212+
{{% tab header="Windows" %}}
213213
```powershell
214214
powershell -Command "iwr -useb https://raw.githubusercontent.com/dapr/cli/master/install/install.ps1 | iex"
215215
```
216216
{{% /tab %}}
217217
218-
{{% tab "Linux" %}}
218+
{{% tab header="Linux" %}}
219219
```bash
220220
wget -q https://raw.githubusercontent.com/dapr/cli/master/install/install.sh -O - | /bin/bash
221221
```
222222
{{% /tab %}}
223223
224-
{{% tab "MacOS" %}}
224+
{{% tab header="MacOS" %}}
225225
```bash
226226
brew install dapr/tap/dapr-cli
227227
```
@@ -234,23 +234,23 @@ This example will render to this:
234234

235235
{{< tabpane text=true >}}
236236

237-
{{% tab "Windows" %}}
237+
{{% tab header="Windows" %}}
238238

239239
```powershell
240240
powershell -Command "iwr -useb https://raw.githubusercontent.com/dapr/cli/master/install/install.ps1 | iex"
241241
```
242242

243243
{{% /tab %}}
244244

245-
{{% tab "Linux" %}}
245+
{{% tab header="Linux" %}}
246246

247247
```bash
248248
wget -q https://raw.githubusercontent.com/dapr/cli/master/install/install.sh -O - | /bin/bash
249249
```
250250

251251
{{% /tab %}}
252252

253-
{{% tab "MacOS" %}}
253+
{{% tab header="MacOS" %}}
254254

255255
```bash
256256
brew install dapr/tap/dapr-cli

scripts/check-tabpane-format.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,16 +54,16 @@ check_markdown_file() {
5454
issues+=("tabpane exists but no tab elements found")
5555
fi
5656

57-
# Check 4: Tab element format should be {{% tab header=VALUE text=true %}}
57+
# Check 4: Tab element format should be {{% tab header=VALUE %}}
5858
# Allow VALUE to be a word with/without quotes or multiple words within quotes
5959
tab_lines=$(echo "$content" | grep -n "{% tab")
6060
while IFS= read -r line; do
6161
if [ -n "$line" ]; then
6262
line_content=$(echo "$line" | cut -d: -f2-)
63-
if ! echo "$line_content" | grep -qE '\{\{%\s*tab\s+header=(("[^"]*")|([a-zA-Z0-9_-]+))\s+text=true\s*%\}\}'; then
63+
if ! echo "$line_content" | grep -qE '\{\{%\s*tab\s+header=(("[^"]*")|([a-zA-Z0-9_-]+))\s*%\}\}'; then
6464
has_issues=true
6565
line_num=$(echo "$line" | cut -d: -f1)
66-
issues+=("Line $line_num: Incorrect tab opening format - should be '{{% tab header=VALUE text=true %}}' where VALUE can be a word or quoted string")
66+
issues+=("Line $line_num: Incorrect tab opening format - should be '{{% tab header=VALUE %}}' where VALUE can be a word or quoted string")
6767
fi
6868
fi
6969
done <<< "$tab_lines"

0 commit comments

Comments
 (0)