From 94d0fffdffd08d262b25f76623a08710ff859df5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20D=C3=B6ll?= Date: Wed, 4 Dec 2024 09:44:13 +0000 Subject: [PATCH] chore: update nextra@v3 --- next.config.js | 13 ------------- next.config.mjs | 19 +++++++++++++++++++ src/pages/_app.tsx | 3 +++ 3 files changed, 22 insertions(+), 13 deletions(-) delete mode 100644 next.config.js create mode 100644 next.config.mjs create mode 100644 src/pages/_app.tsx diff --git a/next.config.js b/next.config.js deleted file mode 100644 index 930577e..0000000 --- a/next.config.js +++ /dev/null @@ -1,13 +0,0 @@ -/** @type {import('next').NextConfig} */ -const withNextra = require('nextra')({ - theme: 'nextra-theme-docs', - themeConfig: './src/theme.config.tsx' -}) - -module.exports = withNextra({ - output: 'export', - basePath: process.env.BASE_PATH ?? '', - images: { - unoptimized: true - } -}) diff --git a/next.config.mjs b/next.config.mjs new file mode 100644 index 0000000..3a47560 --- /dev/null +++ b/next.config.mjs @@ -0,0 +1,19 @@ +import nextra from 'nextra' + +const withNextra = nextra({ + theme: 'nextra-theme-docs', + themeConfig: './src/theme.config.tsx', + latex: true, + search: { + codeblocks: false + } +}) + +export default withNextra({ + reactStrictMode: true, + output: 'export', + basePath: process.env.BASE_PATH ?? '', + images: { + unoptimized: true + } +}) diff --git a/src/pages/_app.tsx b/src/pages/_app.tsx new file mode 100644 index 0000000..cf06318 --- /dev/null +++ b/src/pages/_app.tsx @@ -0,0 +1,3 @@ +export default function App({ Component, pageProps }) { + return +}