You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: website/docs/introduction.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,7 +11,7 @@ This section hosts informations about the [API clients automation](https://githu
11
11
To contribute to the repository, make sure to take a look at our guidelines and recommendations:
12
12
13
13
-[Setup the repository tooling](/docs/setup-repository): to install our tooling.
14
-
- CLI commands can be found at [CLI > specs commands](/docs/CLI/specs-commands), [CLI > clients commands](/docs/CLI/clients-commands) and [CLI > CTS commands](/docs/CLI/cts-commands).
14
+
- CLI commands can be found at [CLI > build commands](/docs/CLI/build-commands), [CLI > generate commands](/docs/CLI/generate-commands) and [CLI > CTS commands](/docs/CLI/cts-commands).
15
15
-[Add a new client](/docs/add-new-api-client): to add a new API spec to generate a client.
16
16
-[Support a new language](/docs/add-new-language): to add a new supported language to the API clients.
17
17
-[Commit and Pull-request](/docs/commit-and-pull-request): to see what to commit and send pull-requests.
Copy file name to clipboardExpand all lines: website/docs/setup-repository.md
+11-18Lines changed: 11 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,9 @@ title: Setup repository
6
6
7
7
:::info
8
8
9
-
Make sure to have Docker installed so you don't have to install the tooling for every API clients. [Installation guide](https://docs.docker.com/desktop/mac/install/)
9
+
Make sure to have:
10
+
-[Docker installed so you don't have to install the tooling for every API clients](https://docs.docker.com/desktop/mac/install/)
11
+
-[jq because it's nice](https://jqlang.github.io/jq/download/)
10
12
11
13
:::
12
14
@@ -18,28 +20,19 @@ nvm use && yarn
18
20
19
21
## Mounting the docker images
20
22
21
-
```bash
22
-
yarn docker:setup
23
-
```
24
-
25
-
### Docker
26
-
27
-
#### Build
28
-
29
-
We use 1 docker image per language to simplify the build, and reuse them on the CI.
30
-
There is one base image containing node, java, scala and kotlin, located in [scripts/docker/Dockerfile](https://github.com/algolia/api-clients-automation/blob/main/scripts/docker/Dockerfile)
23
+
We use multiple docker images to simplify the build. There is [one base image](https://github.com/algolia/api-clients-automation/blob/main/scripts/docker/Dockerfile.base) that contains everything except [swift](https://github.com/algolia/api-clients-automation/blob/main/scripts/docker/Dockerfile.swift) and [ruby](https://github.com/algolia/api-clients-automation/blob/main/scripts/docker/Dockerfile.ruby), they have their own Dockerfile
31
24
32
25
```bash
33
26
yarn docker:setup
34
27
```
35
28
36
-
:::caution
29
+
## Tooling
37
30
38
-
The swift images takes a really long time to build (~5 minutes) because of swift-format, but it's only needed when you want to format swift.
31
+
:::info
39
32
40
-
:::
33
+
This step is optional, using `yarn cli ...` should work perfectly as well.
41
34
42
-
## Tooling
35
+
:::
43
36
44
37
Install the CLI tool by following the instructions at the top of [scripts/install.sh](https://github.com/algolia/api-clients-automation/blob/main/scripts/install.sh) to acces `apic` from your terminal, with bash autocompletion.
45
38
You can run `apic help` to check if it's working properly.
@@ -58,10 +51,10 @@ Once you've successfully built and mounted the Docker image, you can now play wi
58
51
59
52
-[How to add a new client](/docs/add-new-api-client)
60
53
-[How to add a new language](/docs/add-new-language)
Copy file name to clipboardExpand all lines: website/docs/testing/common-test-suite.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ It is automatically generated for all languages from JSON files and ensure prope
9
9
10
10
:::info
11
11
12
-
While some clients can run tests from source, languages like Java or JavaScript and other requires clients to be built, see [CLI > clients commands page](/docs/CLI/clients-commands)
12
+
While some clients can run tests from source, languages like Java or JavaScript and other requires clients to be built, see [CLI > generate commands page](/docs/CLI/generate-commands)
0 commit comments