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: fern/products/docs/pages/api-references/http-snippets.mdx
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,27 +10,27 @@ subtitle: HTTP snippets allow users to see API request examples using common HTT
10
10
11
11
## Configuration
12
12
13
-
All documentation sites include HTTP snippets by default. **curl always appears in HTTP snippets and you can't remove it via configuration.** To control other HTTP snippet languages, use the `settings.http-snippets` configuration in your `docs.yml` file:
13
+
All documentation sites include HTTP snippets by default. To control which languages appear in the HTTP snippet selector, use the `settings.http-snippets` configuration in your `docs.yml` file.
14
+
15
+
<Note>
16
+
curl is always displayed in the HTTP snippets selector and cannot be removed via `docs.yml` configuration. To hide it, [use custom CSS](/docs/customization/custom-css-js#custom-css).
17
+
</Note>
14
18
15
19
<CodeBlocktitle="docs.yml">
16
20
17
21
```yaml
18
-
# Disable all HTTP snippets except curl (curl is always shown)
22
+
# Disable all HTTP snippets except curl
19
23
settings:
20
24
http-snippets: false
21
25
22
-
# Enable only specific languages (curl is always shown in addition to these)
26
+
# Enable only specific languages (in addition to curl)
23
27
settings:
24
28
http-snippets:
25
29
- python
26
30
- ruby
27
31
```
28
32
</CodeBlock>
29
33
30
-
<Callout intent="info">
31
-
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.
0 commit comments