diff --git a/website/components/config-entry-reference/index.jsx b/website/components/config-entry-reference/index.jsx index 23a8c2eb5b..84860d6128 100644 --- a/website/components/config-entry-reference/index.jsx +++ b/website/components/config-entry-reference/index.jsx @@ -1,5 +1,4 @@ -import TabsBase from '@hashicorp/react-tabs' -import s from '@hashicorp/nextjs-scripts/lib/providers/docs/style.module.css' +import { Tabs, Tab } from '@hashicorp/nextjs-scripts/lib/providers/docs' import EnterpriseAlertBase from '@hashicorp/react-enterprise-alert' /** @@ -193,31 +192,6 @@ function isTopLevelKubeKey(name) { ) } -// Copied from https://github.com/hashicorp/nextjs-scripts/blob/04917da2191910d490182250d2828372aa1221c0/lib/providers/docs/index.jsx -// because there's no way to import it right now. -function Tabs({ children }) { - if (!Array.isArray(children)) - throw new Error('Multiple elements required') - - return ( - - ({ - heading: Block.props.heading, - // eslint-disable-next-line react/display-name - tabChildren: () => Block, - }))} - /> - - ) -} - -// Copied from https://github.com/hashicorp/nextjs-scripts/blob/04917da2191910d490182250d2828372aa1221c0/lib/providers/docs/index.jsx -// because there's no way to import it right now. -function Tab({ children }) { - return <>{children} -} - function EnterpriseAlert(props) { return } diff --git a/website/package.json b/website/package.json index f2af31e5d9..82809b98c0 100644 --- a/website/package.json +++ b/website/package.json @@ -52,7 +52,7 @@ "generate:component": "next-hashicorp generate component", "generate:readme": "next-hashicorp markdown-blocks README.md", "lint": "next-hashicorp lint", - "start": "rm -rf .next/cache/next-babel-loader/ && next dev", + "start": "next-remote-watch ./content/**/*.mdx", "static": "npm run build && npm run export && cp _redirects out/.", "linkcheck": "linkcheck https://consul.io" }