Skip to content

Commit bcb00a4

Browse files
committed
Updated more docs to use tabs.
1 parent f9db1fd commit bcb00a4

6 files changed

Lines changed: 79 additions & 69 deletions

File tree

.vortex/docs/content/tools/behat.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import TabItem from '@theme/TabItem';
2222
ahoy test-bdd
2323
```
2424
</TabItem>
25-
<TabItem value="direct" label="Docker Compose">
25+
<TabItem value="docker-compose" label="Docker Compose">
2626
```shell
2727
docker compose exec cli php -d memory_limit=-1 vendor/bin/behat
2828
```
@@ -37,7 +37,7 @@ import TabItem from '@theme/TabItem';
3737
ahoy test-bdd tests/behat/features/my.feature
3838
```
3939
</TabItem>
40-
<TabItem value="direct" label="Docker Compose">
40+
<TabItem value="docker-compose" label="Docker Compose">
4141
```shell
4242
docker compose exec cli vendor/bin/behat tests/behat/features/my.feature
4343
```
@@ -52,7 +52,7 @@ import TabItem from '@theme/TabItem';
5252
ahoy test-bdd --tags=group_name
5353
```
5454
</TabItem>
55-
<TabItem value="direct" label="Docker Compose">
55+
<TabItem value="docker-compose" label="Docker Compose">
5656
```shell
5757
docker compose exec cli vendor/bin/behat --tags=group_name
5858
```
@@ -200,7 +200,7 @@ using a browser thanks to the VNC server running in the container and [noVNC](ht
200200
```
201201
2. Click on the link next to `Selenium VNC URL on host` to open the browser.
202202
</TabItem>
203-
<TabItem value="direct" label="Docker Compose">
203+
<TabItem value="docker-compose" label="Docker Compose">
204204
1. Get the port number:
205205
```shell
206206
docker compose port chrome 7900

.vortex/docs/content/tools/gherkin-lint.mdx

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,21 @@ https://github.com/dantleech/gherkin-lint-php
88

99
## Usage
1010

11-
```shell
12-
vendor/bin/gherkinlint lint tests/behat/features
13-
```
14-
15-
or
16-
17-
```shell
18-
ahoy lint-tests
19-
```
11+
import Tabs from '@theme/Tabs';
12+
import TabItem from '@theme/TabItem';
13+
14+
<Tabs>
15+
<TabItem value="ahoy" label="Ahoy" default>
16+
```shell
17+
ahoy lint-tests
18+
```
19+
</TabItem>
20+
<TabItem value="docker-compose" label="Docker Compose">
21+
```shell
22+
docker compose exec cli vendor/bin/gherkinlint lint tests/behat/features
23+
```
24+
</TabItem>
25+
</Tabs>
2026

2127
## Configuration
2228

.vortex/docs/content/tools/phpmd.mdx

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,21 @@ for Drupal projects.
1919

2020
## Usage
2121

22-
```shell
23-
vendor/bin/phpmd . text phpmd.xml
24-
```
25-
26-
or
27-
28-
```shell
29-
ahoy lint-be
30-
```
22+
import Tabs from '@theme/Tabs';
23+
import TabItem from '@theme/TabItem';
24+
25+
<Tabs>
26+
<TabItem value="ahoy" label="Ahoy" default>
27+
```shell
28+
ahoy lint-be
29+
```
30+
</TabItem>
31+
<TabItem value="docker-compose" label="Docker Compose">
32+
```shell
33+
docker compose exec cli vendor/bin/phpmd . text phpmd.xml
34+
```
35+
</TabItem>
36+
</Tabs>
3137

3238
## Configuration
3339

.vortex/docs/content/tools/phpstan.mdx

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,21 @@ Drupal projects.
1919

2020
## Usage
2121

22-
```shell
23-
vendor/bin/phpstan
24-
```
25-
26-
or
27-
28-
```shell
29-
ahoy lint-be
30-
```
22+
import Tabs from '@theme/Tabs';
23+
import TabItem from '@theme/TabItem';
24+
25+
<Tabs>
26+
<TabItem value="ahoy" label="Ahoy" default>
27+
```shell
28+
ahoy lint-be
29+
```
30+
</TabItem>
31+
<TabItem value="docker-compose" label="Docker Compose">
32+
```shell
33+
docker compose exec cli vendor/bin/phpstan
34+
```
35+
</TabItem>
36+
</Tabs>
3137

3238
:::note
3339

.vortex/docs/content/tools/twig-cs-fixer.mdx

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,21 @@ https://github.com/VincentLanglet/Twig-CS-Fixer
1010

1111
## Usage
1212

13-
```shell
14-
vendor/bin/twig-cs-fixer
15-
```
16-
17-
or
18-
19-
```shell
20-
ahoy lint-fe
21-
```
13+
import Tabs from '@theme/Tabs';
14+
import TabItem from '@theme/TabItem';
15+
16+
<Tabs>
17+
<TabItem value="ahoy" label="Ahoy" default>
18+
```shell
19+
ahoy lint-fe
20+
```
21+
</TabItem>
22+
<TabItem value="docker-compose" label="Docker Compose">
23+
```shell
24+
docker compose exec cli vendor/bin/twig-cs-fixer
25+
```
26+
</TabItem>
27+
</Tabs>
2228

2329
## Configuration
2430

.vortex/docs/content/workflows/testing.mdx

Lines changed: 15 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -14,36 +14,22 @@ import TabItem from '@theme/TabItem';
1414

1515
<Tabs>
1616
<TabItem value="ahoy" label="Ahoy" default>
17-
18-
```shell
19-
ahoy test # Run Unit, Kernel and Functional tests
20-
21-
ahoy test-unit # Run Unit tests
22-
23-
ahoy test-kernel # Run Kernel tests
24-
25-
ahoy test-functional # Run Functional tests
26-
27-
ahoy test-bdd # Run BDD tests
28-
```
29-
17+
```shell
18+
ahoy test # Run Unit, Kernel and Functional tests
19+
ahoy test-unit # Run Unit tests
20+
ahoy test-kernel # Run Kernel tests
21+
ahoy test-functional # Run Functional tests
22+
ahoy test-bdd # Run BDD tests
23+
```
3024
</TabItem>
31-
<TabItem value="direct" label="Direct">
32-
33-
These commands can be run directly from within the container:
34-
35-
```shell
36-
vendor/bin/phpunit # Run Unit, Kernel and Functional tests
37-
38-
vendor/bin/phpunit --testsuite=unit # Run Unit tests
39-
40-
vendor/bin/phpunit --testsuite=kernel # Run Kernel tests
41-
42-
vendor/bin/phpunit --testsuite=functional # Run Functional tests
43-
44-
vendor/bin/behat # Run BDD tests
45-
```
46-
25+
<TabItem value="docker-compose" label="Docker Compose">
26+
```shell
27+
docker compose exec cli vendor/bin/phpunit # Run Unit, Kernel and Functional tests
28+
docker compose exec cli vendor/bin/phpunit --testsuite=unit # Run Unit tests
29+
docker compose exec cli vendor/bin/phpunit --testsuite=kernel # Run Kernel tests
30+
docker compose exec cli vendor/bin/phpunit --testsuite=functional # Run Functional tests
31+
docker compose exec cli vendor/bin/behat # Run BDD tests
32+
```
4733
</TabItem>
4834
</Tabs>
4935

0 commit comments

Comments
 (0)