mirror of
https://github.com/facebook/docusaurus.git
synced 2025-08-04 01:09:20 +02:00
docs: clarify using custom attributes for navbar link (#5423)
This commit is contained in:
parent
03f8cab5e3
commit
e6f4a9b231
1 changed files with 7 additions and 0 deletions
|
@ -276,6 +276,12 @@ Accepted fields:
|
|||
|
||||
</small>
|
||||
|
||||
:::note
|
||||
|
||||
In addition to the fields above, you can specify other arbitrary attributes that can be applied to a HTML link.
|
||||
|
||||
:::
|
||||
|
||||
Example configuration:
|
||||
|
||||
```js title="docusaurus.config.js"
|
||||
|
@ -291,6 +297,7 @@ module.exports = {
|
|||
label: 'Introduction',
|
||||
position: 'left',
|
||||
activeBaseRegex: 'docs/(next|v8)',
|
||||
target: '_blank',
|
||||
},
|
||||
// highlight-end
|
||||
],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue