From 67ca8e0ab7f81046cfb83689be2f5d2f55d138a2 Mon Sep 17 00:00:00 2001 From: jose-donato <43375532+jose-donato@users.noreply.github.com> Date: Tue, 25 Apr 2023 14:58:27 +0100 Subject: [PATCH] fix: yes (#4891) --- website/src/theme/EditThisPage/index.js | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 website/src/theme/EditThisPage/index.js diff --git a/website/src/theme/EditThisPage/index.js b/website/src/theme/EditThisPage/index.js new file mode 100644 index 00000000000..d13756100c3 --- /dev/null +++ b/website/src/theme/EditThisPage/index.js @@ -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 ( + <> + + + ); +}