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/component-library/default-components/code-blocks.mdx
+5-1Lines changed: 5 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -326,7 +326,7 @@ automatically sync and switch to match. Language preferences are stored in
326
326
client-side local storage and persist across browser sessions.
327
327
328
328
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:
330
330
331
331
<CodeBlocks>
332
332
```python title="Python"
@@ -384,6 +384,10 @@ either set of code blocks will automatically update both sets to match:
384
384
`CodeBlocks` automatically synchronize with [`<Tab>` components that have a `language` property](/docs/writing-content/components/tabs#language-synchronization).
385
385
</Note>
386
386
387
+
### Linking to language-specific content
388
+
389
+
<Markdownsrc="snippets/language-url.mdx" />
390
+
387
391
### Override synchronization
388
392
389
393
You can override the synchronization of code blocks by setting the `for` prop.
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.
Copy file name to clipboardExpand all lines: fern/products/sdks/overview/ruby/configuration.mdx
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,9 +24,13 @@ The name of the generated client class. This allows you to customize the class n
24
24
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.
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.
0 commit comments