mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-01 19:27:48 +02:00
docs: explain more clearly the purpose of a ref sidebar type (#7159)
This commit is contained in:
parent
d2082ba49b
commit
ec109737e9
1 changed files with 2 additions and 0 deletions
|
@ -118,6 +118,8 @@ The pagination label by default is the sidebar label. You can use the front matt
|
|||
|
||||
The `ref` type is identical to the [`doc` type](#sidebar-item-doc) in every way, except that it doesn't participate in generating navigation metadata. It only registers itself as a link. When [generating pagination](#generating-pagination) and [displaying sidebar](#sidebar-association), `ref` items are completely ignored.
|
||||
|
||||
It is particularly useful where you wish to link to the same document from multiple sidebars. The document only belongs to one sidebar (the one where it's registered as `type: 'doc'` or from an autogenerated directory), but its link will appear in all sidebars that it's registered in.
|
||||
|
||||
Consider this example:
|
||||
|
||||
```js title="sidebars.js"
|
||||
|
|
Loading…
Add table
Reference in a new issue