diff --git a/fern/products/docs/pages/api-references/sdk-snippets.mdx b/fern/products/docs/pages/api-references/sdk-snippets.mdx
index 2631bd69c..2803c27fc 100644
--- a/fern/products/docs/pages/api-references/sdk-snippets.mdx
+++ b/fern/products/docs/pages/api-references/sdk-snippets.mdx
@@ -3,7 +3,9 @@ title: Display SDK snippets
description: Enable SDK code examples in TypeScript, Python, Go, and more from the request and response examples documented in your API definition. Once enabled, Fern Docs will automatically populate the snippets within your API Reference.
---
-If you use Fern's SDK Generator, you can automatically show SDK code snippets in your API Reference. SDK languages appear in a drop-down. By default, cURL snippets will be displayed to users.
+When you use Fern's SDK Generator, you can automatically display SDK code snippets in your API Reference. These snippets appear in a language selector dropdown, with cURL as the default option.
+
+ Fern supports SDK snippets for TypeScript, Python, Ruby, Go, and .NET/C#.

@@ -11,7 +13,9 @@ If you use Fern's SDK Generator, you can automatically show SDK code snippets in
## Configuring SDK Snippets
-To configure SDK snippets, you'll need to name your SDKs in `generators.yml` and then reference that name in `docs.yml`. In the following example, we'll use `your-organization` as the package name because it is a common practice. For example, Stripe calls their npm package `stripe` and Twilio calls their PyPI package `twilio`.
+To configure SDK snippets, you'll need to name your SDKs in `generators.yml` and then reference that name in `docs.yml`.
+
+
### Add examples to your API definition
@@ -20,7 +24,7 @@ In order to generate code snippets, Fern needs to read request examples from you
### Define a package name for your SDK(s)
Configure package names in your `generators.yml` file:
-* For **Python/TypeScript/Ruby**, add `package-name: your-package-name` to the `output` section.
+* For **Python, TypeScript, Ruby, and .NET/C#**, add `package-name: your-package-name` to the `output` section.
* For **Go**, add `repository: your-organization/your-repository` to the `github` section.
@@ -29,26 +33,32 @@ groups:
production:
generators:
- name: fernapi/fern-python-sdk
- version: 2.8.0
+ version:
output:
location: pypi
token: ${PYPI_TOKEN}
package-name: your-package-name # <--- add this field
...
- name: fernapi/fern-typescript-node-sdk
- version: 0.20.9
+ version:
output:
location: npm
token: ${NPM_TOKEN}
package-name: your-package-name # <--- add this field
- name: fernapi/fern-ruby-sdk
- version: 0.6.3
+ version:
output:
location: rubygems
token: ${RUBYGEMS_TOKEN}
package-name: your-package-name # <--- add this field
+ - name: fernapi/fern-csharp-sdk
+ version:
+ output:
+ location: nuget
+ api-key: ${NUGET_API_KEY}
+ package-name: your-package-name # <--- add this field
- name: fernapi/fern-go-sdk
- version: 0.22.0
+ version:
github:
repository: your-organization/your-repository # <--- add this field
...
@@ -62,7 +72,7 @@ groups:
### Add the package name to your docs configuration
Add the package name for the corresponding SDK to your `docs.yml` file:
- * **For Python, TypeScript, and Ruby**, `your-package-name` must match the `your-package-name` that you configured in your `generators.yml` file.
+ * **For Python, TypeScript, Ruby, and .NET/C#**, `your-package-name` must match the `your-package-name` that you configured in your `generators.yml` file.
* **For Go**, use the exact URL where the SDK repository is located, including the `https://github.com/`.
@@ -73,6 +83,7 @@ navigation:
python: your-package-name # <--- needs to match the naming in generators.yml
typescript: your-package-name # <--- needs to match the naming in generators.yml
ruby: your-package-name # <--- needs to match the naming in generators.yml
+ csharp: your-package-name # <--- needs to match the naming in generators.yml
go: https://github.com/your-organization/your-repository # <--- needs the https://github.com/ prefix
```
@@ -87,17 +98,6 @@ As the final step, trigger your docs generation by running `fern generate --docs
### Set default snippet language
-SDK code snippets support several languages. Our development work is driven by customer requests, so please request support for languages not listed here by [opening an issue](https://github.com/fern-api/fern/issues/new/choose).
-
-* csharp
-* curl
-* go
-* java
-* javascript
-* python
-* ruby
-* typescript
-
To set the default snippet language, use the `default-language` key at the top indentation level of `docs.yml`.
@@ -112,6 +112,8 @@ navigation:
```
+
+
## Access via API
If you'd like to bring SDK snippets into your own documentation, you can use the [Snippets API](/learn/api-reference/snippets/get). API access requires a [SDK Business plan](https://buildwithfern.com/pricing) or above.