useDuxtSection()
The part of the documentation this page is in.
Signature
const { section, items } = useDuxtSection(navigation);
Returns
| Value | Type | What it is |
|---|---|---|
section | object | The configured section the page sits under |
items | array | That section branch of the tree |
Notes
With no sections configured the whole tree comes back, which is the right shape
for documentation that is not split into parts.
Was this page helpful?