diff --git a/src/theme/NavbarItem/DocsVersionDropdownNavbarItem.js b/src/theme/NavbarItem/DocsVersionDropdownNavbarItem.js new file mode 100644 index 000000000..237c749e7 --- /dev/null +++ b/src/theme/NavbarItem/DocsVersionDropdownNavbarItem.js @@ -0,0 +1,14 @@ +import React from "react"; +import DocsVersionDropdownNavbarItem from '@theme-original/NavbarItem/DocsVersionDropdownNavbarItem'; +import { useLocation } from '@docusaurus/router'; + +export default function DocsVersionDropdownNavbarItemWrapper(props) { + const { docsPluginId, className, type } = props + const { pathname } = useLocation() + + const doesPathnameContainDocsPluginId = pathname.includes("/docs/") + if (!doesPathnameContainDocsPluginId) { + return null + } + return ; +} \ No newline at end of file