Skip to content

Commit 33441b7

Browse files
committed
Add examples
1 parent 738ae13 commit 33441b7

File tree

3 files changed

+5
-8
lines changed

3 files changed

+5
-8
lines changed

content/components/sticky-examples.mdx renamed to content/components/examples.mdx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
2-
title: "Sidebar Code Examples"
2+
title: "Examples"
33
description: "Display code blocks at the top-right of the page on desktop devices"
4+
icon: 'between-horizontal-start'
45
---
56

67
The `<RequestExample>` and `<ResponseExample>` stick code blocks to the top-right of a page even as you scroll. The components work on all pages even if you don't use an API playground.

content/components/expandables.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
title: "Expandables"
33
description: "Toggle to display nested properties."
4+
icon: 'list-tree'
45
---
56

67
<ResponseField name="user" type="User Object">

docs.json

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,8 @@
239239
"content/components/card-groups",
240240
"content/components/code",
241241
"content/components/code-groups",
242+
"content/components/examples",
243+
"content/components/expandables",
242244
"content/components/fields",
243245
"content/components/frames",
244246
"content/components/icons",
@@ -248,13 +250,6 @@
248250
"content/components/tooltips",
249251
"content/components/update"
250252
]
251-
},
252-
{
253-
"group": "API Components",
254-
"pages": [
255-
"content/components/expandables",
256-
"content/components/sticky-examples"
257-
]
258253
}
259254
]
260255
},

0 commit comments

Comments
 (0)