mirror of
https://github.com/facebook/docusaurus.git
synced 2025-07-30 15:00:09 +02:00
feat(v2): version dropdown before/after items + move site "All Versions" link (#3548)
* add dropdownItemsAfter option + reorg a bit docusaurus site navbar * fix isActive react warning * Update theme-classic.md Co-authored-by: Alexey Pyltsyn <lex61rus@gmail.com>
This commit is contained in:
parent
5b79f2ebc2
commit
649882d867
7 changed files with 44 additions and 17 deletions
|
@ -262,11 +262,6 @@ module.exports = {
|
|||
srcDark: 'img/docusaurus_keytar.svg',
|
||||
},
|
||||
items: [
|
||||
{
|
||||
type: 'docsVersionDropdown',
|
||||
position: 'left',
|
||||
dropdownActiveClassDisabled: true,
|
||||
},
|
||||
{
|
||||
type: 'doc',
|
||||
position: 'left',
|
||||
|
@ -287,10 +282,17 @@ module.exports = {
|
|||
position: 'left',
|
||||
activeBaseRegex: `/community/`,
|
||||
},
|
||||
// right
|
||||
{
|
||||
to: '/versions',
|
||||
label: 'All versions',
|
||||
type: 'docsVersionDropdown',
|
||||
position: 'right',
|
||||
dropdownActiveClassDisabled: true,
|
||||
dropdownItemsAfter: [
|
||||
{
|
||||
to: '/versions',
|
||||
label: 'All versions',
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
href: 'https://github.com/facebook/docusaurus',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue