Skip to content

Commit e9b673d

Browse files
committed
feat: surface locale and version dropdowns in the navbar
Docusaurus does not add these automatically: docsVersionDropdown (Next / 4.6) and localeDropdown (中文 / English) are now declared in navbar items, so both switchers are visible on every page.
1 parent c6d5219 commit e9b673d

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

‎docusaurus.config.js‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,10 @@ const config = {
7979
position: 'left',
8080
label: '文档',
8181
},
82+
{
83+
type: 'docsVersionDropdown',
84+
position: 'left',
85+
},
8286
{
8387
href: 'https://github.com/baomidou/dynamic-datasource/wiki',
8488
label: 'FAQ 排查',
@@ -89,6 +93,10 @@ const config = {
8993
label: 'GitHub',
9094
position: 'right',
9195
},
96+
{
97+
type: 'localeDropdown',
98+
position: 'right',
99+
},
92100
],
93101
},
94102
footer: {

0 commit comments

Comments
 (0)