diff --git a/website/docs/usage.mdx b/website/docs/usage.mdx index d082b446..aab62912 100644 --- a/website/docs/usage.mdx +++ b/website/docs/usage.mdx @@ -341,43 +341,43 @@ It means that the included Taskfile tasks will be available without the namespac + values={[ + {label: 'Taskfile.yml', value: '1'}, + {label: 'Included.yml', value: '2'} + ]}> - + - ```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 + ``` - - + + - ```yaml - version: '3' + ```yaml + version: '3' - tasks: - foo: - cmds: - - echo "Foo" - ``` + tasks: + foo: + cmds: + - echo "Foo" + ``` - + If you run `task -a` it will print : @@ -400,12 +400,12 @@ Foo If multiple tasks have the same name, an error will be thrown: + values={[ + {label: 'Taskfile.yml', value: '1'}, + {label: 'Included.yml', value: '2'} + ]}> - + ```yaml version: '3' @@ -419,23 +419,23 @@ If multiple tasks have the same name, an error will be thrown: cmds: - echo "Greet" - task: foo - ``` + ``` - - + + - ```yaml - version: '3' + ```yaml + version: '3' - tasks: + tasks: greet: cmds: - - echo "Foo" - ``` + - echo "Foo" + ``` - + If you run `task -a` it will print: ```text