Skip to content

Commit

Permalink
Minor upd
Browse files Browse the repository at this point in the history
  • Loading branch information
visortelle committed Mar 14, 2024
1 parent a7b35cf commit bc435d3
Showing 1 changed file with 22 additions and 18 deletions.
40 changes: 22 additions & 18 deletions src/theme/DocsVersionDropdownNavbarItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,24 +11,28 @@ import { useActiveDocContext, useLatestVersion, } from "@docusaurus/plugin-conte
import { useDocsPreferredVersion } from "@docusaurus/theme-common";
import { translate } from "@docusaurus/Translate";

const versions = [{ name: "current", label: "Next", path: "/docs/next" }]
.concat([
{
label: '3.2.x',
name: '3.2.x',
path: `/docs/3.2.x`,
},
{
label: '3.0.x LTS',
name: '3.0.x',
path: `/docs/3.0.x`,
},
{
name: "others",
label: "Others",
path: "/versions",
}
]);
const versions = [
{
name: "current",
label: "Next",
path: "/docs/next"
},
{
label: '3.2.x',
name: '3.2.x',
path: `/docs/3.2.x`,
},
{
label: '3.0.x LTS',
name: '3.0.x',
path: `/docs/3.0.x`,
},
{
name: "others",
label: "Others",
path: "/versions",
}
];

const getVersionMainDoc = (version) =>
version.docs.find((doc) => doc.id === version.mainDocId);
Expand Down

0 comments on commit bc435d3

Please sign in to comment.