Skip to content

Commit

Permalink
docs: fix some examples to use spaces instead of tabs (#2002)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanagustin authored Jan 18, 2025
1 parent 97f41b7 commit bad2c8f
Showing 1 changed file with 41 additions and 41 deletions.
82 changes: 41 additions & 41 deletions website/docs/usage.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -341,43 +341,43 @@ It means that the included Taskfile tasks will be available without the namespac


<Tabs defaultValue="1"
values={[
{label: 'Taskfile.yml', value: '1'},
{label: 'Included.yml', value: '2'}
]}>
values={[
{label: 'Taskfile.yml', value: '1'},
{label: 'Included.yml', value: '2'}
]}>

<TabItem value="1">
<TabItem value="1">

```yaml
version: '3'
```yaml
version: '3'
includes:
lib:
taskfile: ./Included.yml
flatten: true
includes:
lib:
taskfile: ./Included.yml
flatten: true
tasks:
greet:
cmds:
- echo "Greet"
- task: foo
```
tasks:
greet:
cmds:
- echo "Greet"
- task: foo
```


</TabItem>
<TabItem value="2">
</TabItem>
<TabItem value="2">

```yaml
version: '3'
```yaml
version: '3'
tasks:
foo:
cmds:
- echo "Foo"
```
tasks:
foo:
cmds:
- echo "Foo"
```


</TabItem></Tabs>
</TabItem></Tabs>


If you run `task -a` it will print :
Expand All @@ -400,12 +400,12 @@ Foo
If multiple tasks have the same name, an error will be thrown:

<Tabs defaultValue="1"
values={[
{label: 'Taskfile.yml', value: '1'},
{label: 'Included.yml', value: '2'}
]}>
values={[
{label: 'Taskfile.yml', value: '1'},
{label: 'Included.yml', value: '2'}
]}>

<TabItem value="1">
<TabItem value="1">

```yaml
version: '3'
Expand All @@ -419,23 +419,23 @@ If multiple tasks have the same name, an error will be thrown:
cmds:
- echo "Greet"
- task: foo
```
```


</TabItem>
<TabItem value="2">
</TabItem>
<TabItem value="2">

```yaml
version: '3'
```yaml
version: '3'
tasks:
tasks:
greet:
cmds:
- echo "Foo"
```
- echo "Foo"
```


</TabItem></Tabs>
</TabItem></Tabs>

If you run `task -a` it will print:
```text
Expand Down

0 comments on commit bad2c8f

Please sign in to comment.