-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: showing versions just if section (plugin) has + more skeleton
- Loading branch information
Showing
11 changed files
with
46 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,4 @@ collapsible: true | |
collapsed: false | ||
label: Plugins install/uninstall | ||
link: null | ||
position: 1 | ||
position: 3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
title: DAO | ||
sidebar_label: DAO | ||
sidebar_position: 0 | ||
--- | ||
|
||
## DAO | ||
|
||
This section will contain DAO definition. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
title: Permission Manager | ||
sidebar_label: Permission Manager | ||
sidebar_position: 3 | ||
--- | ||
|
||
## Permission Manager | ||
|
||
This section will contain Permission Manager definition. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
title: Plugin | ||
sidebar_label: Plugin | ||
sidebar_position: 2 | ||
--- | ||
|
||
## Plugin | ||
|
||
This section will contain Plugin definition. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
title: Proposal | ||
sidebar_label: Proposal | ||
sidebar_position: 3 | ||
--- | ||
|
||
## Proposal | ||
|
||
This section will contain Proposal definition. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,7 +33,6 @@ const config = { | |
versions: { | ||
current: { | ||
label: '1.4.0-alpha', | ||
path: '1.4.0', | ||
}, | ||
}, | ||
}, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,4 @@ collapsible: true | |
collapsed: true | ||
label: DAO | ||
link: null | ||
position: 1 | ||
position: 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,4 @@ collapsible: true | |
collapsed: true | ||
label: Framework | ||
link: null | ||
position: 3 | ||
position: 4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,4 @@ collapsible: true | |
collapsed: true | ||
label: Plugin | ||
link: null | ||
position: 2 | ||
position: 3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,13 @@ | ||
import React from 'react'; | ||
import DocsVersionDropdownNavbarItem from '@theme-original/NavbarItem/DocsVersionDropdownNavbarItem'; | ||
import {useLocation} from '@docusaurus/router'; | ||
import {useActiveDocContext} from '@docusaurus/plugin-content-docs/client'; | ||
|
||
// We don't want to show the Versions Dropdown in the mainpage. | ||
export default function DocsVersionDropdownNavbarItemWrapper(props) { | ||
const {pathname} = useLocation(); | ||
|
||
const isRootPath = pathname === '' || pathname === '/'; | ||
|
||
// Render null if the pathname does not start with /docs | ||
if (isRootPath) { | ||
const {activeDoc} = useActiveDocContext(props.docsPluginId); | ||
if (!activeDoc) { | ||
return null; | ||
} | ||
return ( | ||
<> | ||
<DocsVersionDropdownNavbarItem {...props} /> | ||
</> | ||
); | ||
|
||
return <DocsVersionDropdownNavbarItem {...props} />; | ||
} |