This commit is contained in:
jose-donato
2023-04-25 14:58:27 +01:00
committed by GitHub
parent 3cf8aea940
commit 67ca8e0ab7

18
website/src/theme/EditThisPage/index.js vendored Normal file
View File

@@ -0,0 +1,18 @@
import React from "react";
import EditThisPage from "@theme-original/EditThisPage";
import { useLocation } from "@docusaurus/router";
export default function EditThisPageWrapper(props) {
const { pathname } = useLocation();
if (
pathname.startsWith("/terminal/reference") ||
pathname.startsWith("/sdk/reference") ||
pathname.startsWith("/bot/reference")
)
return null;
return (
<>
<EditThisPage {...props} />
</>
);
}