diff --git a/website/developer-docs/api/browser.mdx b/website/developer-docs/api/browser.mdx
index 7aa35b209..4ea697cfe 100644
--- a/website/developer-docs/api/browser.mdx
+++ b/website/developer-docs/api/browser.mdx
@@ -1,38 +1,9 @@
+---
+hide_table_of_contents: true
+---
+
# API Browser
-import useDocusaurusContext from "@docusaurus/useDocusaurusContext";
-import useBaseUrl from "@docusaurus/useBaseUrl";
-import BrowserOnly from "@docusaurus/core/lib/client/exports/BrowserOnly";
-import { useColorMode } from "@docusaurus/theme-common";
-
-export function APIBrowser() {
- const context = useDocusaurusContext();
- const { siteConfig = {} } = context;
- const { colorMode, setColorMode } = useColorMode();
- let bg = "#1b1b1d";
- if (colorMode === "light") {
- bg = "#fff";
- }
- return (
-
- {() => {
- import("rapidoc");
- return (
-
- );
- }}
-
- );
-}
+import APIBrowser from "../../src/components/APIBrowser";
diff --git a/website/src/components/APIBrowser/index.tsx b/website/src/components/APIBrowser/index.tsx
new file mode 100644
index 000000000..25c43b743
--- /dev/null
+++ b/website/src/components/APIBrowser/index.tsx
@@ -0,0 +1,40 @@
+import React from "react";
+import useDocusaurusContext from "@docusaurus/useDocusaurusContext";
+import useBaseUrl from "@docusaurus/useBaseUrl";
+import BrowserOnly from "@docusaurus/BrowserOnly";
+import { useColorMode } from "@docusaurus/theme-common";
+
+export function APIBrowser() {
+ const context = useDocusaurusContext();
+ const { siteConfig = {} } = context;
+ const { colorMode, setColorMode } = useColorMode();
+ let bg = "#1b1b1d";
+ if (colorMode === "light") {
+ bg = "#fff";
+ }
+ return (
+
+ {() => {
+ require("rapidoc");
+ return (
+
+ );
+ }}
+
+ );
+}
+
+export default APIBrowser;
diff --git a/website/src/pages/api/index.jsx b/website/src/pages/api/index.jsx
index 8e6647dc0..5ba633bdb 100644
--- a/website/src/pages/api/index.jsx
+++ b/website/src/pages/api/index.jsx
@@ -1,7 +1,7 @@
import React from "react";
import Layout from "@theme/Layout";
import Head from "@docusaurus/Head";
-import BrowserOnly from "@docusaurus/core/lib/client/exports/BrowserOnly";
+import BrowserOnly from "@docusaurus/BrowserOnly";
function APIPage() {
return (
diff --git a/website/src/pages/api/v3.jsx b/website/src/pages/api/v3.jsx
index 7cdd45289..8ea704650 100644
--- a/website/src/pages/api/v3.jsx
+++ b/website/src/pages/api/v3.jsx
@@ -1,7 +1,7 @@
import React from "react";
import Layout from "@theme/Layout";
import Head from "@docusaurus/Head";
-import BrowserOnly from "@docusaurus/core/lib/client/exports/BrowserOnly";
+import BrowserOnly from "@docusaurus/BrowserOnly";
function APIPage() {
return (
diff --git a/website/src/pages/index.jsx b/website/src/pages/index.jsx
index feea2b292..fcbf951fd 100644
--- a/website/src/pages/index.jsx
+++ b/website/src/pages/index.jsx
@@ -3,7 +3,7 @@ import clsx from "clsx";
import Layout from "@theme/Layout";
import Link from "@docusaurus/Link";
import Head from "@docusaurus/Head";
-import BrowserOnly from "@docusaurus/core/lib/client/exports/BrowserOnly";
+import BrowserOnly from "@docusaurus/BrowserOnly";
import useDocusaurusContext from "@docusaurus/useDocusaurusContext";
import useBaseUrl from "@docusaurus/useBaseUrl";
import styles from "./styles.module.css";
diff --git a/website/src/pages/terraform-provider.jsx b/website/src/pages/terraform-provider.jsx
index 47bfa52f1..e930a8a56 100644
--- a/website/src/pages/terraform-provider.jsx
+++ b/website/src/pages/terraform-provider.jsx
@@ -1,7 +1,7 @@
import React from "react";
import Layout from "@theme/Layout";
import Head from "@docusaurus/Head";
-import BrowserOnly from "@docusaurus/core/lib/client/exports/BrowserOnly";
+import BrowserOnly from "@docusaurus/BrowserOnly";
function TerraformProviderPage() {
return (