Most sidebar macros do not have a parameter, so they can be specified directly in frontmatter like this:
Other sidebar macros have a parameter like this:
In particular, this means that the sidebar macros have to be replicated in translated content, whereas the sidebar frontmatter is inherited (explaining few matches for sidebar: in translated-content).
Possible solutions:
- Extend the type of the
sidebar frontmatter, e.g. string | Record<string, string>:
- Add a separate API field:
api: Ink API
sidebar: apiref
- Derive the API from the slug following the API reorg