Skip to content

Commit adaa1cf

Browse files
committed
document setting language in url
1 parent 218b888 commit adaa1cf

File tree

5 files changed

+19
-2
lines changed

5 files changed

+19
-2
lines changed

fern/products/cli-api-reference/cli-changelog/2025-09-22.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88

99
## 0.78.4
10-
**`(fix):`** Collapse any combination of optional and nullable to optional<nullable<T>>.
10+
**`(fix):`** Collapse any combination of optional and nullable to `optional<nullable<T>>`.
1111

1212
## 0.78.3
1313
**`(chore):`** Support IR v59 in the Rust SDK generator.

fern/products/docs/pages/component-library/default-components/code-blocks.mdx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ automatically sync and switch to match. Language preferences are stored in
326326
client-side local storage and persist across browser sessions.
327327

328328
The example below demonstrates language sync in action – choosing a language in
329-
either set of code blocks will automatically update both sets to match:
329+
either set of `CodeBlocks` will automatically update both sets to match:
330330

331331
<CodeBlocks>
332332
```python title="Python"
@@ -384,6 +384,10 @@ either set of code blocks will automatically update both sets to match:
384384
`CodeBlocks` automatically synchronize with [`<Tab>` components that have a `language` property](/docs/writing-content/components/tabs#language-synchronization).
385385
</Note>
386386

387+
### Linking to language-specific content
388+
389+
<Markdown src="snippets/language-url.mdx" />
390+
387391
### Override synchronization
388392

389393
You can override the synchronization of code blocks by setting the `for` prop.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
You can link directly to content in a specific language by adding `?language=<some-language>` to the end of a URL. This sets which language tab wil be displayed by default when users visit the page.
2+
3+
For example, the following link opens with Java tabs displayed: https://buildwithfern.com/learn/docs/writing-content/components/tabs?language=java
4+
5+
This works with both `CodeBlocks` and `Tab` components that have a `language` property.

fern/products/docs/pages/component-library/default-components/tabs.mdx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,3 +186,7 @@ either set of tabs doesn't affect the other set of tabs:
186186

187187
</Accordion>
188188

189+
### Linking to language-specific content
190+
191+
<Markdown src="snippets/language-url.mdx" />
192+

fern/products/sdks/overview/ruby/configuration.mdx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,13 @@ The name of the generated client class. This allows you to customize the class n
2424
The default timeout for network requests in seconds. In the generated client, this can be overridden at the request level. Set to 'infinity' to disable timeouts.
2525
</ParamField>
2626
<ParamField path="extraDependencies" type="ExtraDependenciesSchema" required={false} toc={true}>
27+
<Markdown src="/snippets/pro-plan.mdx"/>
28+
2729
Specify additional dependencies to include in the generated SDK's gemspec. This is useful when you need to add custom gems that your SDK depends on.
2830
</ParamField>
2931
<ParamField path="extraDevDependencies" type="ExtraDependenciesSchema" required={false} toc={true}>
32+
<Markdown src="/snippets/pro-plan.mdx"/>
33+
3034
Specify additional development dependencies to include in the generated SDK's gemspec. These are dependencies used for development and testing but not required by end users.
3135
</ParamField>
3236
<ParamField path="flattenModuleStructure" type="boolean" default="false" required={false} toc={true}>

0 commit comments

Comments
 (0)