Skip to content

Commit a0f5d45

Browse files
Pull Request Summary (#1129)
* Update navigation.mdx * fix: Set default expanded state to false for 'Getting started' group in navigation --------- Co-authored-by: mintlify[bot] <109931778+mintlify[bot]@users.noreply.github.com> Co-authored-by: Nick K <nick.k@trieve.ai>
1 parent b786623 commit a0f5d45

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

navigation.mdx

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ Use groups to organize your sidebar navigation into sections. Groups can be nest
5757
alt=""
5858
/>
5959

60-
In the `navigation` object, `groups` is an array where each entry is an object that requires a `group` field and a `pages` field. The `icon` and `tag` fields are optional.
60+
In the `navigation` object, `groups` is an array where each entry is an object that requires a `group` field and a `pages` field. The `icon`, `tag`, and `expanded` fields are optional.
6161

6262
```json
6363
{
@@ -66,6 +66,7 @@ In the `navigation` object, `groups` is an array where each entry is an object t
6666
{
6767
"group": "Getting started",
6868
"icon": "play",
69+
"expanded": false,
6970
"pages": [
7071
"quickstart",
7172
{
@@ -92,6 +93,18 @@ In the `navigation` object, `groups` is an array where each entry is an object t
9293
}
9394
```
9495

96+
### Default expanded state
97+
98+
Set `expanded: true` on a group to make it expanded by default in the navigation sidebar. This is useful for highlighting important sections or improving discoverability of key content.
99+
100+
```json
101+
{
102+
"group": "Getting started",
103+
"expanded": true,
104+
"pages": ["quickstart", "installation"]
105+
}
106+
```
107+
95108
## Tabs
96109

97110
Tabs create distinct sections of your documentation with separate URL paths. Tabs create a horizontal navigation bar at the top of your documentation that lets users switch between sections.

0 commit comments

Comments
 (0)