-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: update contribution guides [skip-bc] (#4051)
- Loading branch information
Showing
11 changed files
with
156 additions
and
103 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,107 @@ | ||
--- | ||
title: Build commands | ||
--- | ||
|
||
# Build commands | ||
|
||
:::info | ||
|
||
You can use `yarn cli` as a drop in replacement for `apic`. | ||
|
||
::: | ||
|
||
The Build commands are used to [`build`](#build) API specs, clients, playground, snippets and guides. | ||
|
||
## Usage for specs | ||
|
||
> `client` defaults to `all` | ||
> The `client` parameter is variadic, you can pass multiple `client` name | ||
```bash | ||
apic build specs <client... | all> | ||
``` | ||
|
||
### Available options | ||
|
||
| Option | Command | Description | | ||
| ---------- | :--------------- | :------------------------------------------------------------- | | ||
| verbose | -v, --verbose | Make the process verbose, display logs from third party tools | | ||
| skip cache | -s, --skip-cache | Skip cache checking to force building specs | | ||
| docs | -d, --docs | Builds the specs for the Algolia doc, which embeds the snippets| | ||
|
||
## Build specs | ||
|
||
### Build all specs | ||
|
||
```bash | ||
apic build specs | ||
``` | ||
|
||
### Build specific spec | ||
|
||
```bash | ||
apic build specs recommend | ||
``` | ||
|
||
### Build many spec | ||
|
||
```bash | ||
apic build specs recommend search ingestion | ||
``` | ||
|
||
## Lint | ||
|
||
### Fix specs | ||
|
||
> Automatically done when building specs | ||
```bash | ||
yarn specs:fix | ||
``` | ||
|
||
### Check specs | ||
|
||
If you just want to check the format (not override the files) | ||
|
||
```bash | ||
yarn specs:lint search | ||
``` | ||
|
||
## Usage for clients, playground, snippets and guides | ||
|
||
> `language` and `client` defaults to `all` | ||
> The `client` parameter is variadic, you can pass multiple `client` name | ||
> scope is one of: `clients` | `playground` | `snippets` | `guides` | ||
```bash | ||
apic build <scope> <language | all> <client... | all> | ||
``` | ||
|
||
### Available options | ||
|
||
| Option | Command | Description | | ||
| ------- | :------------ | :------------------------------------------------------------ | | ||
| verbose | -v, --verbose | Make the process verbose, display logs from third party tools | | ||
|
||
## Build | ||
|
||
### Build all clients for all supported languages | ||
|
||
```bash | ||
apic build clients | ||
``` | ||
|
||
### Build playground for specific language | ||
|
||
```bash | ||
apic build playground javascript recommend | ||
``` | ||
|
||
### Build many snippets for specific language | ||
|
||
```bash | ||
apic build snippets java insights recommend search | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 9 additions & 3 deletions
12
website/docs/CLI/clients-commands.md → website/docs/CLI/generate-commands.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters