Skip to content

Commit 6a8db07

Browse files
authored
Merge branch 'main' into fix/APIC-345/specs-types
2 parents 24cab30 + 61cd455 commit 6a8db07

16 files changed

+38
-38
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@ nvm use && yarn
1414
yarn docker:setup
1515
```
1616

17-
[Read more on our documentation](https://api-clients-automation.netlify.app/docs/automation/setupRepository)
17+
[Read more on our documentation](https://api-clients-automation.netlify.app/docs/automation/setup-repository)
1818

1919
## Contributing
2020

2121
You can make changes locally and run commands through the docker container.
2222

23-
[Specs CLI commands](https://api-clients-automation.netlify.app/docs/automation/CLI/specsCommands)[Clients CLI commands](https://api-clients-automation.netlify.app/docs/automation/CLI/clientsCommands)[CTS CLI commands](https://api-clients-automation.netlify.app/docs/automation/CLI/ctsCommands)
23+
[Specs CLI commands](https://api-clients-automation.netlify.app/docs/automation/CLI/specs-commands)[Clients CLI commands](https://api-clients-automation.netlify.app/docs/automation/CLI/clients-commands)[CTS CLI commands](https://api-clients-automation.netlify.app/docs/automation/CLI/cts-commands)
2424

2525
### Build and validate specs
2626

@@ -30,7 +30,7 @@ You can make changes locally and run commands through the docker container.
3030
yarn docker build specs <client | all>
3131
```
3232

33-
[Read more on our documentation](https://api-clients-automation.netlify.app/docs/automation/addNewApiClient)
33+
[Read more on our documentation](https://api-clients-automation.netlify.app/docs/automation/add-new-api-client)
3434

3535
### Generate clients based on the [`specs`](./specs/)
3636

@@ -40,11 +40,11 @@ yarn docker build specs <client | all>
4040
yarn docker generate <language | all> <client | all>
4141
```
4242

43-
[Read more on our documentation](https://api-clients-automation.netlify.app/docs/automation/addNewLanguage)
43+
[Read more on our documentation](https://api-clients-automation.netlify.app/docs/automation/add-new-language)
4444

4545
## Testing clients
4646

4747
You can test our generated clients by running:
4848

4949
- The playground [`playground`](./playground) ([Playground](https://api-clients-automation.netlify.app/docs/automation/testing/playground.md))
50-
- Tests with our [`Common Test Suite`](./tests/) ([Common Test Suite](https://api-clients-automation.netlify.app/docs/automation/testing/commonTestSuite.md)).
50+
- Tests with our [`Common Test Suite`](./tests/) ([Common Test Suite](https://api-clients-automation.netlify.app/docs/automation/testing/common-test-suite.md)).

netlify.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[build]
22
command="yarn website:build"
33
publish="website/build"
4-
ignore="git diff --quiet origin/main -- website/"
4+
ignore="git diff --quiet $COMMIT_REF $CACHED_COMMIT_REF -- website/"
55

66
[build.environment]
77
YARN_VERSION = "3.1.1"

website/docs/api-clients/introduction.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Generated code in production can be find on repository of the clients.
1616

1717
## Usage
1818

19-
See [the getting started](/docs/api-clients/gettingStarted) page.
19+
See [the getting started](/docs/api-clients/getting-started) page.
2020

2121
You can also check the [playground](/docs/automation/testing/playground) if you'd like to test clients locally.
2222

website/docs/automation/addNewApiClient.md renamed to website/docs/automation/add-new-api-client.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Adding an API client requires a manual steps in order to setup the tooling, gene
88

99
:::info
1010

11-
Make sure to first [setup the repository tooling](/docs/automation/setupRepository) to ease your journey!
11+
Make sure to first [setup the repository tooling](/docs/automation/setup-repository) to ease your journey!
1212

1313
:::
1414

@@ -61,7 +61,7 @@ Below are the options you need to **make sure to define for your client**, other
6161
| ------------------- | :----: | :--------: | :-----------------------------: | :------------------------------------------------------------------------------------------------------------------- |
6262
| output | string | Common | `path/to/client/client-sources` | The output path of the client. |
6363
| gitRepoId | string | Common | `algoliasearch-client-java-2` | The name of the repository under the Algolia org. |
64-
| packageName | string | common | `AlgoliaSearch` | Name of the API package, used in [CTS](/docs/automation/testing/commonTestSuite). |
64+
| packageName | string | common | `AlgoliaSearch` | Name of the API package, used in [CTS](/docs/automation/testing/common-test-suite). |
6565
| packageVersion | string | JavaScript | `1.2.3` | The version you'd like to publish the first iteration of the generated client. It will be automatically incremented. |
6666
| utilsPackageVersion | string | JavaScript | `0.1.2` | The version you'd like to publish the first iteration of the utils package. It will be automatically incremented. |
6767

@@ -89,12 +89,12 @@ You can copy [an existing client caching step](https://github.com/algolia/api-cl
8989
9090
## 3. Generate new client
9191
92-
> You can find all the commands in the [CLI > clients commands page](/docs/automation/CLI/clientsCommands) and [CLI > specs commands page](/docs/automation/CLI/specsCommands).
92+
> You can find all the commands in the [CLI > clients commands page](/docs/automation/CLI/clients-commands) and [CLI > specs commands page](/docs/automation/CLI/specs-commands).
9393
9494
```bash
9595
yarn docker generate <languageName> <clientName>
9696
```
9797

9898
## 4. Implementing the Common Test Suite
9999

100-
Clients needs to be tested, you can read more in the [Common Test Suite](/docs/automation/testing/commonTestSuite) guide.
100+
Clients needs to be tested, you can read more in the [Common Test Suite](/docs/automation/testing/common-test-suite) guide.

website/docs/automation/addNewLanguage.md renamed to website/docs/automation/add-new-language.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ title: Support a new language
66

77
:::info
88

9-
Make sure to first [setup the repository tooling](/docs/automation/setupRepository) to ease your journey!
9+
Make sure to first [setup the repository tooling](/docs/automation/setup-repository) to ease your journey!
1010

1111
You will also need to have the [openapi-generator](https://openapi-generator.tech/docs/installation/) installed.
1212

@@ -36,7 +36,7 @@ openapi-generator author template -g typescript-node -o templates/javascript/
3636

3737
Add each client in the file [`openapitools.json`](https://github.com/algolia/api-clients-automation/blob/main/openapitools.json), following the others client structure.
3838

39-
> See [`add a new client`](/docs/automation/addNewApiClient) for informations on how to structure your new client.
39+
> See [`add a new client`](/docs/automation/add-new-api-client) for informations on how to structure your new client.
4040
4141
### Algolia requirements
4242

@@ -77,7 +77,7 @@ The retry strategy cannot be generated and needs to be implemented outside of th
7777

7878
Some Algolia clients (search and recommend) targets the default appId host (`${appId}-dsn.algolia.net`, `${appId}.algolia.net`, etc.), while clients like `personalization` have their own regional `host` (`eu` | `us` | `de`).
7979

80-
As the generator does not support reading `servers` in a spec file **yet**, hosts methods and variables are extracted with a custom script and create variables for you to use in the mustache templates, [read more here](/docs/automation/addNewApiClient#generators).
80+
As the generator does not support reading `servers` in a spec file **yet**, hosts methods and variables are extracted with a custom script and create variables for you to use in the mustache templates, [read more here](/docs/automation/add-new-api-client#generators).
8181

8282
### User Agent
8383

website/docs/automation/introduction.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,18 @@ This section hosts informations about the [API clients automation](https://githu
1010

1111
To contribute to the repository, make sure to take a look at our guidelines and recommendations:
1212

13-
- [Setup the repository tooling](/docs/automation/setupRepository): to install our tooling.
14-
- CLI commands can be found at [CLI > specs commands](/docs/automation/CLI/specsCommands), [CLI > clients commands](/docs/automation/CLI/clientsCommands) and [CLI > CTS commands](/docs/automation/CLI/ctsCommands).
15-
- [Add a new client](/docs/automation/addNewApiClient): to add a new API spec to generate a client.
16-
- [Support a new language](/docs/automation/addNewLanguage): to add a new supported language to the API clients.
17-
- [Commit and Pull-request](/docs/automation/commitAndPullRequest): to see what to commit and send pull-requests.
18-
- [Release process](/docs/automation/releaseProcess): to see how to release API clients.
13+
- [Setup the repository tooling](/docs/automation/setup-repository): to install our tooling.
14+
- CLI commands can be found at [CLI > specs commands](/docs/automation/CLI/specs-commands), [CLI > clients commands](/docs/automation/CLI/clients-commands) and [CLI > CTS commands](/docs/automation/CLI/cts-commands).
15+
- [Add a new client](/docs/automation/add-new-api-client): to add a new API spec to generate a client.
16+
- [Support a new language](/docs/automation/add-new-language): to add a new supported language to the API clients.
17+
- [Commit and Pull-request](/docs/automation/commit-and-pull-request): to see what to commit and send pull-requests.
18+
- [Release process](/docs/automation/release-process): to see how to release API clients.
1919

2020
## Testing
2121

2222
Generated clients can be tested via the:
2323

24-
- [Common Test Suite](/docs/automation/testing/commonTestSuite)
24+
- [Common Test Suite](/docs/automation/testing/common-test-suite)
2525
- [Playground](/docs/automation/testing/playground)
2626

2727
## Feedbacks

website/docs/automation/setupRepository.md renamed to website/docs/automation/setup-repository.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,11 @@ yarn docker:clean
5454

5555
Once you've successfully built and mounted the Docker image, you can now play with the repository! Read our guides on:
5656

57-
- [How to add a new client](/docs/automation/addNewApiClient)
58-
- [How to add a new language](/docs/automation/addNewLanguage)
59-
- [Use CLI specs commands](/docs/automation/CLI/specsCommands)
60-
- [Use CLI clients commands](/docs/automation/CLI/clientsCommands)
61-
- [Use CLI Common Test Suite commands](/docs/automation/CLI/specsCommands)
57+
- [How to add a new client](/docs/automation/add-new-api-client)
58+
- [How to add a new language](/docs/automation/add-new-language)
59+
- [Use CLI specs commands](/docs/automation/CLI/specs-commands)
60+
- [Use CLI clients commands](/docs/automation/CLI/clients-commands)
61+
- [Use CLI Common Test Suite commands](/docs/automation/CLI/specs-commands)
6262

6363
## Troubleshooting
6464

website/docs/automation/testing/commonTestSuite.md renamed to website/docs/automation/testing/common-test-suite.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ It is automaticaly generated for all languages, from a JSON entry point.
1111

1212
Common Test Suite requires all clients to be built.
1313

14-
[CLI commands for the Common Test Suite](/docs/automation/CLI/ctsCommands)
14+
[CLI commands for the Common Test Suite](/docs/automation/CLI/cts-commands)
1515

1616
:::
1717

website/docs/automation/testing/playground.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ All of the existing clients should have an active playground for you to test gen
88

99
:::info
1010

11-
Make sure to first [setup the repository tooling](/docs/automation/setupRepository) to ease your journey!
11+
Make sure to first [setup the repository tooling](/docs/automation/setup-repository) to ease your journey!
1212

1313
:::
1414

website/sidebars.js

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@ const sidebars = {
1010
label: 'Getting Started',
1111
collapsed: false,
1212
items: [
13-
'automation/setupRepository',
13+
'automation/setup-repository',
1414
{
1515
type: 'category',
1616
label: 'CLI',
1717
collapsed: false,
1818
items: [
19-
'automation/CLI/specsCommands',
20-
'automation/CLI/clientsCommands',
21-
'automation/CLI/ctsCommands',
19+
'automation/CLI/specs-commands',
20+
'automation/CLI/clients-commands',
21+
'automation/CLI/cts-commands',
2222
],
2323
},
2424
],
@@ -28,24 +28,24 @@ const sidebars = {
2828
label: 'Contributing',
2929
collapsed: false,
3030
items: [
31-
'automation/addNewApiClient',
32-
'automation/addNewLanguage',
31+
'automation/add-new-api-client',
32+
'automation/add-new-language',
3333
{
3434
type: 'category',
3535
label: 'Testing',
3636
collapsed: false,
3737
items: [
38-
'automation/testing/commonTestSuite',
38+
'automation/testing/common-test-suite',
3939
'automation/testing/playground',
4040
],
4141
},
42-
'automation/commitAndPullRequest',
43-
'automation/releaseProcess',
42+
'automation/commit-and-pull-request',
43+
'automation/release-process',
4444
],
4545
},
4646
],
4747
// Everything related to the generated clients usage
48-
clients: ['api-clients/introduction', 'api-clients/gettingStarted'],
48+
clients: ['api-clients/introduction', 'api-clients/getting-started'],
4949
};
5050

5151
// eslint-disable-next-line import/no-commonjs

0 commit comments

Comments
 (0)