diff --git a/.npmrc b/.npmrc index ded82e2f6..99c51b515 100644 --- a/.npmrc +++ b/.npmrc @@ -1 +1,3 @@ auto-install-peers = true +legacy-peer-deps = true +prefer-dedupe = true \ No newline at end of file diff --git a/apps/documentation/next.config.js b/apps/documentation/next.config.js index 290cb03e8..cf8ff8811 100644 --- a/apps/documentation/next.config.js +++ b/apps/documentation/next.config.js @@ -1,3 +1,5 @@ +import nextra from 'nextra'; + /** @type {import('next').NextConfig} */ const nextConfig = { transpilePackages: [ @@ -9,9 +11,10 @@ const nextConfig = { ], }; -const withNextra = require('nextra')({ +const withNextra = nextra({ theme: 'nextra-theme-docs', themeConfig: './theme.config.tsx', + codeHighlight: true, }); -module.exports = withNextra(nextConfig); +export default withNextra(nextConfig); diff --git a/apps/documentation/package.json b/apps/documentation/package.json index 76def45e1..c18307c5d 100644 --- a/apps/documentation/package.json +++ b/apps/documentation/package.json @@ -15,7 +15,7 @@ "@documenso/tailwind-config": "*", "@documenso/trpc": "*", "@documenso/ui": "*", - "next": "14.2.6", + "next": "14.2.28", "next-plausible": "^3.12.0", "nextra": "^2.13.4", "nextra-theme-docs": "^2.13.4", diff --git a/apps/documentation/theme.config.tsx b/apps/documentation/theme.config.tsx index aa54b5c57..d6a0a6747 100644 --- a/apps/documentation/theme.config.tsx +++ b/apps/documentation/theme.config.tsx @@ -19,6 +19,22 @@ const themeConfig: DocsThemeConfig = { +