docs: clarify using custom attributes for navbar link (#5423)

This commit is contained in:
Alexey Pyltsyn 2021-08-26 15:29:05 +03:00 committed by GitHub
parent 03f8cab5e3
commit e6f4a9b231
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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
],