Skip to content

Commit b547d41

Browse files
committed
Sync open source content 🐝 (from 25fcc8a10ae9d157faf60ba90eed188bb5540c2b)
1 parent cd3c949 commit b547d41

File tree

8 files changed

+262
-109
lines changed

8 files changed

+262
-109
lines changed

.cursor/prompts/style-guide.md

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
### **Markdown language**
44

5-
Speakeasy documentation and blog posts are written in [MDX](https://mdxjs.com/) (`.mdx` files). You may encounter some Markdown (`.md`) files.
5+
Speakeasy documentation and blog posts are written in [MDX](https://mdxjs.com/) (`.mdx` files). You may encounter some Markdown (`.md`) files.
66

7-
MDX (Markdown with JSX) uses the same formatting syntax for basic text elements as standard Markdown. This [guide to basic Markdown syntax](https://www.markdownguide.org/basic-syntax/) shows you how to format elements like headers, bold text, italic text, lists, and links.
7+
MDX (Markdown with JSX) uses the same formatting syntax for basic text elements as standard Markdown. This [guide to basic Markdown syntax](https://www.markdownguide.org/basic-syntax/) shows you how to format elements like headers, bold text, italic text, lists, and links.
88

99
### **Style specifics**
1010

@@ -14,23 +14,23 @@ Speakeasy uses sentence case for titles and section headings globally.
1414

1515
#### **Backticks**
1616

17-
- In body text, place all references to code in backticks, including class names and `description` values.
17+
- In body text, place all references to code in backticks, including class names and `description` values.
1818
- Don’t use backticks in titles, headings, or subheadings because they don’t render well.
1919
- Don’t put language names in backticks unless it’s part of a code snippet:
20-
- ❌ In `go`, all types from all operations are collected into a global `AcceptHeaderEnum` type.
21-
- ✅ In Go, all types from all operations are collected into a global `AcceptHeaderEnum` type.
20+
- ❌ In `go`, all types from all operations are collected into a global `AcceptHeaderEnum` type.
21+
- ✅ In Go, all types from all operations are collected into a global `AcceptHeaderEnum` type.
2222

2323
#### **Code blocks**
2424

25-
Speakeasy documentation uses [Code Hike](https://codehike.org/) for code blocks.
25+
Speakeasy documentation uses [Code Hike](https://codehike.org/) for code blocks.
2626

2727
- Prefer code blocks to inline code for code snippets.
2828
- Prefer YAML to JSON for code snippets where possible to improve readability. For example, use YAML for all OpenAPI document examples.
2929
- Try to add a language to all code blocks. This helps with syntax highlighting.
30-
- Use the `bash` language for shell commands.
31-
- Terminal output can be highlighted by copying the output with control sequences (copy using iTerm2), then pasting the output to a code block and selecting the `ansi` language. This will render the output with the correct colors and formatting.
32-
- The `ansi` language isn’t rendered as a Code Hike component. If you need to use the `ansi` language, use a standard code block.
33-
- The `mermaid` language is used for diagrams. This language is excluded from Code Hike rendering.
30+
- Use the `bash` language for shell commands.
31+
- Terminal output can be highlighted by copying the output with control sequences (copy using iTerm2), then pasting the output to a code block and selecting the `ansi` language. This will render the output with the correct colors and formatting.
32+
- The `ansi` language isn’t rendered as a Code Hike component. If you need to use the `ansi` language, use a standard code block.
33+
- The `mermaid` language is used for diagrams. This language is excluded from Code Hike rendering.
3434

3535
#### **UI element labels**
3636

@@ -141,21 +141,21 @@ Place inline code between backticks.
141141

142142
Use backticks to reference bits of code you're narrating, but not for labels or button text.
143143

144-
- ❌ Enter the filename and click `OK`.
145-
- ✅ Import the built-in node `http` package.
144+
- ❌ Enter the filename and click `OK`.
145+
- ✅ Import the built-in node `http` package.
146146

147147
Avoid starting headings or sentences with backticks or code:
148148

149-
- `request.args` is an ImmutableMultiDict.
150-
- ✅ The `request.args` attribute is an ImmutableMultiDict.
149+
- `request.args` is an ImmutableMultiDict.
150+
- ✅ The `request.args` attribute is an ImmutableMultiDict.
151151

152152
### Capitalization
153153

154154
#### Titles and headings
155155

156156
Capitalize titles and headings according to the customer's style guide if they have one or match capitalization to their existing documentation.
157157

158-
At Speakeasy, we default to **sentence case** for titles and headings.
158+
At Speakeasy, we default to **sentence case** for titles and headings.
159159

160160
- ✅ Using multiplayer with anonymous users
161161

@@ -208,7 +208,7 @@ Correct comma splices by rewriting the independent clauses as complete sentences
208208

209209
Alternatively, add a conjunction:
210210

211-
- ✅ Download the files you need **and** unzip them on your computer.
211+
- ✅ Download the files you need **and** unzip them on your computer.
212212

213213
Comma splices can be corrected by replacing the comma with a semicolon, but this approach is not recommended for our content:
214214

@@ -237,17 +237,17 @@ Use decimal points when a number is not easily written out as a fraction: 1.273.
237237

238238
### Login, log in, log in to
239239

240-
**login** (noun)
240+
**login** (noun)
241241

242242
Your access credentials:
243243

244244
- ✅ Keep your login details handy.
245245

246-
**log in** (phrasal verb)
246+
**log in** (phrasal verb)
247247

248248
- ✅ To make these changes, you'll need to log in.
249249

250-
**log in to** The term "log in" is a phrasal verb, so we add the preposition after a space:
250+
**log in to** The term "log in" is a phrasal verb, so we add the preposition after a space:
251251

252252
- ✅ Log in to GitHub.
253253

@@ -299,18 +299,18 @@ Use double quotation marks to identify labels or button text:
299299

300300
### Setup vs set up
301301

302-
We use **setup** as a noun or adjective:
302+
We use **setup** as a noun or adjective:
303303

304304
- ✅ A microservices setup.
305305
- ✅ Follow the setup instructions.
306306

307-
We use **set up** as a verb:
307+
We use **set up** as a verb:
308308

309309
- ✅ How to set up your account.
310310

311311
### URLs and websites
312312

313-
Avoid spelling out URLs, but when you need to, leave off `http://www.`.
313+
Avoid spelling out URLs, but when you need to, leave off `http://www.`.
314314

315315
### Word list
316316

api-design/errors.mdx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,5 +358,6 @@ bombarding the API with requests when it's already struggling.
358358
Learn more about [Retry-After on MDN](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Retry-After).
359359

360360
<Callout title="Note" type="info">
361-
Help API consumers out by <a href="/docs/runtime/retries">enabling retry logic</a> in Speakeasy SDKs.
361+
Help API consumers out by
362+
<a href="/docs/runtime/retries">enabling retry logic</a> in Speakeasy SDKs.
362363
</Callout>

claude.md

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
### **Markdown language**
44

5-
Speakeasy documentation and blog posts are written in [MDX](https://mdxjs.com/) (`.mdx` files). You may encounter some Markdown (`.md`) files.
5+
Speakeasy documentation and blog posts are written in [MDX](https://mdxjs.com/) (`.mdx` files). You may encounter some Markdown (`.md`) files.
66

7-
MDX (Markdown with JSX) uses the same formatting syntax for basic text elements as standard Markdown. This [guide to basic Markdown syntax](https://www.markdownguide.org/basic-syntax/) shows you how to format elements like headers, bold text, italic text, lists, and links.
7+
MDX (Markdown with JSX) uses the same formatting syntax for basic text elements as standard Markdown. This [guide to basic Markdown syntax](https://www.markdownguide.org/basic-syntax/) shows you how to format elements like headers, bold text, italic text, lists, and links.
88

99
### **Style specifics**
1010

@@ -14,23 +14,23 @@ Speakeasy uses sentence case for titles and section headings globally.
1414

1515
#### **Backticks**
1616

17-
- In body text, place all references to code in backticks, including class names and `description` values.
17+
- In body text, place all references to code in backticks, including class names and `description` values.
1818
- Don’t use backticks in titles, headings, or subheadings because they don’t render well.
1919
- Don’t put language names in backticks unless it’s part of a code snippet:
20-
- ❌ In `go`, all types from all operations are collected into a global `AcceptHeaderEnum` type.
21-
- ✅ In Go, all types from all operations are collected into a global `AcceptHeaderEnum` type.
20+
- ❌ In `go`, all types from all operations are collected into a global `AcceptHeaderEnum` type.
21+
- ✅ In Go, all types from all operations are collected into a global `AcceptHeaderEnum` type.
2222

2323
#### **Code blocks**
2424

25-
Speakeasy documentation uses [Code Hike](https://codehike.org/) for code blocks.
25+
Speakeasy documentation uses [Code Hike](https://codehike.org/) for code blocks.
2626

2727
- Prefer code blocks to inline code for code snippets.
2828
- Prefer YAML to JSON for code snippets where possible to improve readability. For example, use YAML for all OpenAPI document examples.
2929
- Try to add a language to all code blocks. This helps with syntax highlighting.
30-
- Use the `bash` language for shell commands.
31-
- Terminal output can be highlighted by copying the output with control sequences (copy using iTerm2), then pasting the output to a code block and selecting the `ansi` language. This will render the output with the correct colors and formatting.
32-
- The `ansi` language isn’t rendered as a Code Hike component. If you need to use the `ansi` language, use a standard code block.
33-
- The `mermaid` language is used for diagrams. This language is excluded from Code Hike rendering.
30+
- Use the `bash` language for shell commands.
31+
- Terminal output can be highlighted by copying the output with control sequences (copy using iTerm2), then pasting the output to a code block and selecting the `ansi` language. This will render the output with the correct colors and formatting.
32+
- The `ansi` language isn’t rendered as a Code Hike component. If you need to use the `ansi` language, use a standard code block.
33+
- The `mermaid` language is used for diagrams. This language is excluded from Code Hike rendering.
3434

3535
#### **UI element labels**
3636

@@ -141,21 +141,21 @@ Place inline code between backticks.
141141

142142
Use backticks to reference bits of code you're narrating, but not for labels or button text.
143143

144-
- ❌ Enter the filename and click `OK`.
145-
- ✅ Import the built-in node `http` package.
144+
- ❌ Enter the filename and click `OK`.
145+
- ✅ Import the built-in node `http` package.
146146

147147
Avoid starting headings or sentences with backticks or code:
148148

149-
- `request.args` is an ImmutableMultiDict.
150-
- ✅ The `request.args` attribute is an ImmutableMultiDict.
149+
- `request.args` is an ImmutableMultiDict.
150+
- ✅ The `request.args` attribute is an ImmutableMultiDict.
151151

152152
### Capitalization
153153

154154
#### Titles and headings
155155

156156
Capitalize titles and headings according to the customer's style guide if they have one or match capitalization to their existing documentation.
157157

158-
At Speakeasy, we default to **sentence case** for titles and headings.
158+
At Speakeasy, we default to **sentence case** for titles and headings.
159159

160160
- ✅ Using multiplayer with anonymous users
161161

@@ -208,7 +208,7 @@ Correct comma splices by rewriting the independent clauses as complete sentences
208208

209209
Alternatively, add a conjunction:
210210

211-
- ✅ Download the files you need **and** unzip them on your computer.
211+
- ✅ Download the files you need **and** unzip them on your computer.
212212

213213
Comma splices can be corrected by replacing the comma with a semicolon, but this approach is not recommended for our content:
214214

@@ -237,17 +237,17 @@ Use decimal points when a number is not easily written out as a fraction: 1.273.
237237

238238
### Login, log in, log in to
239239

240-
**login** (noun)
240+
**login** (noun)
241241

242242
Your access credentials:
243243

244244
- ✅ Keep your login details handy.
245245

246-
**log in** (phrasal verb)
246+
**log in** (phrasal verb)
247247

248248
- ✅ To make these changes, you'll need to log in.
249249

250-
**log in to** The term "log in" is a phrasal verb, so we add the preposition after a space:
250+
**log in to** The term "log in" is a phrasal verb, so we add the preposition after a space:
251251

252252
- ✅ Log in to GitHub.
253253

@@ -299,18 +299,18 @@ Use double quotation marks to identify labels or button text:
299299

300300
### Setup vs set up
301301

302-
We use **setup** as a noun or adjective:
302+
We use **setup** as a noun or adjective:
303303

304304
- ✅ A microservices setup.
305305
- ✅ Follow the setup instructions.
306306

307-
We use **set up** as a verb:
307+
We use **set up** as a verb:
308308

309309
- ✅ How to set up your account.
310310

311311
### URLs and websites
312312

313-
Avoid spelling out URLs, but when you need to, leave off `http://www.`.
313+
Avoid spelling out URLs, but when you need to, leave off `http://www.`.
314314

315315
### Word list
316316

docs/customize-testing/customizing-sdk-tests.mdx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import { Callout } from "@/mdx/components";
77

88
# Customizing SDK Tests
99

10-
1110
## Disable auto generation of tests for specific operations
1211

1312
When `generateNewTests` is enabled in the `.speakeasy/gen.yaml` file, all new operations found on the next generation after they are added will automatically have workflows created for then in the `.speakeasy/tests.arazzo.yaml` file and therefore tests will be generated for them.
@@ -27,7 +26,6 @@ paths:
2726

2827
alternatively if a workflow/test already exists that references the operation in the `.speakeasy/tests.arazzo.yaml` file, then no new workflow will be created for the operation.
2928

30-
3129
## Grouping tests
3230

3331
By default, all tests will be generated into a single file related to the main SDK class for example `sdk.test.ts` , `test_sdk.py`, or `SDKTest.java`. This can be configured by adding a `x-speakeasy-test-group` extension to the workflow which will determine which tests will be grouped together in seperate test files.
@@ -41,7 +39,6 @@ workflows:
4139
# ...
4240
```
4341

44-
4542
## Generate tests only for specific targets
4643

4744
By default, all tests will be generated for all supported targets. Using the `x-speakeasy-test-targets` or `x-speakeasy-test-targets-exclude` extensions, it is possible to generate tests only for specific targets. This may be useful if tests are either not needed for certain languages or they may be failing in a certain language.
@@ -55,7 +52,9 @@ workflows:
5552
- typescript
5653
# ...
5754
```
55+
5856
or
57+
5958
```yaml
6059
arazzo: 1.0.0
6160
# ...
@@ -85,6 +84,7 @@ speakeasy configure tests --rebuild
8584
```
8685

8786
You can also selectively bootstrap individual tests by:
87+
8888
1. Deleting the specific workflow from the arazzo doc in `.speakeasy/tests.arazzo.yaml`
8989
2. Removing the corresponding entry in `.speakeasy/gen.lock` under `generatedTests`
9090

@@ -96,4 +96,5 @@ generatedTests:
9696
```
9797
9898
This approach preserves any other manual changes you've made to your arazzo doc.
99+
99100
</Callout>

docs/customize/typescript/react-hooks.mdx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ import { Callout, CodeWithTabs } from "@/mdx/components";
1010
Speakeasy can optionally generate React hooks as part of your TypeScript SDK. React hooks are built from your OpenAPI specification using TanStack Query (formerly React Query), making it easier to build web applications that interact with your API.
1111

1212
<Callout title="Availability" type="info">
13-
Generated React query hooks are available as part of the Speakeasy [business tier](/pricing).
13+
Generated React query hooks are available as part of the Speakeasy [business
14+
tier](/pricing).
1415
</Callout>
1516

1617
## Getting started

0 commit comments

Comments
 (0)