Skip to content

Commit d80c9d7

Browse files
committed
improve pageGrid docs
1 parent 23bb214 commit d80c9d7

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

docs/contributing/pages/components.mdx

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,9 +119,19 @@ See also the [Alert component](#alert).
119119

120120
## PageGrid
121121

122-
Render all child pages or `next_steps` of this document, including their `description` if available.
122+
Render all `next_steps` of this document or default child pages, including their `description` if available.
123+
124+
You can specify `next_steps` in the frontmatter of a page to include them in the grid. It supports relative paths and will automatically resolve them.
123125

124126
```markdown {tabTitle:Example}
127+
---
128+
# in the frontmatter of a page:
129+
next_steps:
130+
- ./child-one
131+
- ./child-two
132+
- ../parent/child-three
133+
---
134+
125135
<PageGrid />
126136
```
127137

0 commit comments

Comments
 (0)