Skip to content
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions fern/products/docs/pages/api-references/http-snippets.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,27 @@

## Configuration

HTTP snippets are enabled by default for all documentation sites. To disable snippets or enable only for certain languages, use the `settings.http-snippets` configuration in your `docs.yml` file:
HTTP snippets are enabled by default for all documentation sites. **curl is always included in HTTP snippets and cannot be disabled via configuration.** To control other HTTP snippet languages, use the `settings.http-snippets` configuration in your `docs.yml` file:

Check warning on line 13 in fern/products/docs/pages/api-references/http-snippets.mdx

View workflow job for this annotation

GitHub Actions / vale

[vale] reported by reviewdog 🐶 [Microsoft.Accessibility] Don't use language (such as 'disabled') that defines people by their disability. Raw Output: {"message": "[Microsoft.Accessibility] Don't use language (such as 'disabled') that defines people by their disability.", "location": {"path": "fern/products/docs/pages/api-references/http-snippets.mdx", "range": {"start": {"line": 13, "column": 124}}}, "severity": "INFO"}

Check warning on line 13 in fern/products/docs/pages/api-references/http-snippets.mdx

View workflow job for this annotation

GitHub Actions / vale

[vale] reported by reviewdog 🐶 [Microsoft.Passive] 'be disabled' looks like passive voice. Raw Output: {"message": "[Microsoft.Passive] 'be disabled' looks like passive voice.", "location": {"path": "fern/products/docs/pages/api-references/http-snippets.mdx", "range": {"start": {"line": 13, "column": 121}}}, "severity": "INFO"}

Check failure on line 13 in fern/products/docs/pages/api-references/http-snippets.mdx

View workflow job for this annotation

GitHub Actions / vale

[vale] reported by reviewdog 🐶 [Microsoft.Contractions] Use 'can't' instead of 'cannot'. Raw Output: {"message": "[Microsoft.Contractions] Use 'can't' instead of 'cannot'.", "location": {"path": "fern/products/docs/pages/api-references/http-snippets.mdx", "range": {"start": {"line": 13, "column": 114}}}, "severity": "ERROR"}

Check warning on line 13 in fern/products/docs/pages/api-references/http-snippets.mdx

View workflow job for this annotation

GitHub Actions / vale

[vale] reported by reviewdog 🐶 [Microsoft.Passive] 'are enabled' looks like passive voice. Raw Output: {"message": "[Microsoft.Passive] 'are enabled' looks like passive voice.", "location": {"path": "fern/products/docs/pages/api-references/http-snippets.mdx", "range": {"start": {"line": 13, "column": 15}}}, "severity": "INFO"}

<CodeBlock title="docs.yml">

```yaml
# Turn off HTTP snippets for all languages
# Disable all HTTP snippets except curl (curl is always shown)
settings:
http-snippets: false

# Enable only for specific languages (here, only Python and Ruby)
# Enable only specific languages (curl is always shown in addition to these)
settings:
http-snippets:
- python
- ruby
```
</CodeBlock>

<Callout intent="info">
curl is always displayed in the HTTP snippets selector, regardless of your `http-snippets` configuration. To hide curl from the UI, you would need to use custom CSS.
</Callout>

## How It Works

### Request Examples
Expand Down