diff --git a/docs/components/common/Navigation.tsx b/docs/components/common/Navigation.tsx index 810475185c680..8e9df7dc460c9 100644 --- a/docs/components/common/Navigation.tsx +++ b/docs/components/common/Navigation.tsx @@ -1,5 +1,3 @@ -import { Navbar } from "nextra-theme-docs"; - const Logo = () => { return ( { return (
- -
); }; diff --git a/docs/components/mdx/CodeTabs/CodeTabs.tsx b/docs/components/mdx/CodeTabs/CodeTabs.tsx index 705a58ade2eac..0e4aaf5bca4ea 100644 --- a/docs/components/mdx/CodeTabs/CodeTabs.tsx +++ b/docs/components/mdx/CodeTabs/CodeTabs.tsx @@ -155,7 +155,7 @@ export const CodeTabs: FC = ({ children }) => { ); })} -
+ 
 {children && children.find(child => child.props['data-language'] === selectedTab)?.props.children}
 
diff --git a/docs/components/overrides/Anchor/Anchor.tsx b/docs/components/overrides/Anchor/Anchor.tsx index 97a260e7e4b5b..6677a0e6e23e7 100644 --- a/docs/components/overrides/Anchor/Anchor.tsx +++ b/docs/components/overrides/Anchor/Anchor.tsx @@ -42,7 +42,7 @@ export const Anchor = forwardRef(function ( ) } - if (nextVersion> 12 || config.newNextLinkBehavior) { + if (nextVersion> 12) { return ( {children} diff --git a/docs/next.config.mjs b/docs/next.config.mjs index 31273b54ac14f..568dd7246f6d6 100644 --- a/docs/next.config.mjs +++ b/docs/next.config.mjs @@ -20,7 +20,7 @@ const withNextra = nextra({ theme: "nextra-theme-docs", themeConfig: "./theme.config.tsx", defaultShowCopyCode: true, - flexsearch: false, + search: false, mdxOptions: { remarkPlugins: [ remarkMath, diff --git a/docs/package.json b/docs/package.json index ed7999ef287cf..3a211720b2bed 100644 --- a/docs/package.json +++ b/docs/package.json @@ -23,13 +23,14 @@ "date-fns": "^2.30.0", "next": "^14.2.30", "next-sitemap": "^4.1.3", - "nextra": "^2.13.2", - "nextra-theme-docs": "^2.4.0", + "nextra": "^3.0.0", + "nextra-theme-docs": "^3.0.0", "react": "^18.2.0", "react-dom": "^18.2.0", "remark-html-katex": "^4.0.1", "remark-math": "^5.1.1", - "unist-util-visit": "^4.1.2" + "unist-util-visit": "^4.1.2", + "zod": "^4.1.3" }, "devDependencies": { "@tsconfig/node16": "^1.0.3", @@ -46,7 +47,7 @@ "sass": "^1.62.1", "tailwindcss": "^3.3.1", "ts-node": "^10.9.1", - "typescript": "^4.9.5", + "typescript": "^5.0.0", "vfile-reporter": "^7.0.5" } } diff --git a/docs/pages/_app.tsx b/docs/pages/_app.tsx index 6c5dddc379467..b10fa666675ab 100644 --- a/docs/pages/_app.tsx +++ b/docs/pages/_app.tsx @@ -84,6 +84,8 @@ export default function MyApp({ origin, Component, pageProps }: AppProps & Props } }, [router]) + let fontFamily = `-apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif`; + return (