Skip to content

Commit f8a0070

Browse files
fix: move supported languages documentation to code blocks page
Co-Authored-By: Chris McDonnell <[email protected]>
1 parent d7ec961 commit f8a0070

File tree

2 files changed

+17
-17
lines changed

2 files changed

+17
-17
lines changed

fern/products/api-def/openapi-pages/extensions/examples.mdx

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -68,20 +68,3 @@ paths:
6868
6969
client.users.get("user-1234")
7070
```
71-
72-
#### Supported languages
73-
74-
Fern supports syntax highlighting for the following languages in custom code samples:
75-
76-
- `curl`
77-
- `python`
78-
- `javascript` (aliases: `js`, `node`)
79-
- `typescript` (aliases: `ts`)
80-
- `go`
81-
- `ruby`
82-
- `csharp`
83-
- `php`
84-
- `swift`
85-
- `rust`
86-
87-
If you specify a language that's not in this list, Fern will still display the code sample but without syntax highlighting.

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

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,23 @@ console.log("hello world")
2222
```
2323
````
2424

25+
## Supported languages
26+
27+
Fern supports syntax highlighting for the following languages in code blocks:
28+
29+
- `curl`
30+
- `python`
31+
- `javascript` (aliases: `js`, `node`)
32+
- `typescript` (aliases: `ts`)
33+
- `go`
34+
- `ruby`
35+
- `csharp`
36+
- `php`
37+
- `swift`
38+
- `rust`
39+
40+
If you specify a language that's not in this list, Fern will still display the code block but without syntax highlighting.
41+
2542
## Variants
2643

2744
### Titles

0 commit comments

Comments
 (0)