Skip to content

Commit 15c98b1

Browse files
mcanouilgithub-actions[bot]
authored andcommitted
docs: add note and example on how to reuse a sidebar for a page
(cherry picked from commit ea24a03)
1 parent 1c1a3c5 commit 15c98b1

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

docs/websites/website-navigation.qmd

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,13 @@ website:
376376
title: "Reference"
377377
contents:
378378
# navigation items
379-
379+
```
380+
381+
To use a specific sidebar on a page or a group of pages, specify the `sidebar` ID in the front matter of the page or in the `_metadata.yml` file.
382+
For example, to include the tutorials sidebar, from the above example, on a page, add the following to the page's front matter:
383+
384+
```yaml
385+
sidebar: tutorials
380386
```
381387

382388
## Breadcrumbs

0 commit comments

Comments
 (0)