mirror of
https://github.com/facebook/docusaurus.git
synced 2025-08-06 10:20:09 +02:00
Update navigation guide
This commit is contained in:
parent
5f09602440
commit
15358cad71
1 changed files with 18 additions and 7 deletions
|
@ -113,3 +113,14 @@ headerLinks: [
|
|||
{ doc: 'bar', label: 'Bar' },
|
||||
],
|
||||
```
|
||||
## Languages drop down position in nav bar
|
||||
|
||||
If translations is enabled on your site, the language drop down will appear to the right of your links (and to the left of the search bar, if search is enabled). If you want to put the language selection drop down between links in the header, add a languages entry in the `headerLinks` config array:
|
||||
|
||||
```
|
||||
headerLinks: [
|
||||
{ doc: 'foo', label: 'Foo' },
|
||||
{ languages: true },
|
||||
{ doc: 'bar', label: 'Bar' },
|
||||
],
|
||||
```
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue