Skip to content

Commit b9c5a78

Browse files
docs: add example for anchors in YAML format (#277)
1 parent b26ee64 commit b9c5a78

File tree

1 file changed

+25
-8
lines changed

1 file changed

+25
-8
lines changed

docs/configuration.mdx

Lines changed: 25 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -196,14 +196,31 @@ type Anchor = {
196196

197197
For the icons, you can use the name of any standard [Font Awesome Classic Icon](https://fontawesome.com/search?o=r&s=solid)
198198
or [Brand Icons](https://fontawesome.com/search?o=r&f=brands), for example:
199-
200-
```json
201-
{
202-
"anchors": [
203-
{ title: "Homepage", icon: "house", link: "https://example.com" }
204-
]
205-
}
206-
```
199+
200+
<Tabs
201+
values={[
202+
{ label: 'JSON', value: 'json' },
203+
{ label: 'YAML', value: 'yaml' },
204+
]}
205+
>
206+
<TabItem value="json">
207+
```json
208+
{
209+
"anchors": [
210+
{ title: "Homepage", icon: "house", link: "https://example.com" }
211+
]
212+
}
213+
```
214+
</TabItem>
215+
<TabItem value="yaml">
216+
```yaml
217+
anchors:
218+
- title: "Homepage"
219+
link: "https://example.com"
220+
icon: "house"
221+
```
222+
</TabItem>
223+
</Tabs>
207224
</Property>
208225

209226
<hr />

0 commit comments

Comments
 (0)