improve v2 docs

This commit is contained in:
Rene Haas
2022-10-17 11:31:46 +02:00
parent b61bbe5f03
commit f3bcdfba85
20 changed files with 1976 additions and 112 deletions
-10
View File
@@ -1,10 +0,0 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
swcMinify: true,
images: {
unoptimized: true,
},
};
module.exports = nextConfig;
+34
View File
@@ -0,0 +1,34 @@
import mdx from '@next/mdx';
import rehypePrettyCode from 'rehype-pretty-code';
import rehypeSlug from 'rehype-slug';
import remarkGfm from 'remark-gfm';
/** @type {import('next').NextConfig} */
const withMDX = mdx({
extension: /\.mdx?$/,
options: {
remarkPlugins: [remarkGfm],
rehypePlugins: [
rehypeSlug,
[
rehypePrettyCode,
{
theme: 'solarized-light',
},
],
],
providerImportSource: '@mdx-js/react',
},
});
const nextConfig = {
reactStrictMode: true,
swcMinify: true,
images: {
unoptimized: true,
},
pageExtensions: ['js', 'jsx', 'ts', 'tsx', 'md', 'mdx'],
};
export default withMDX(nextConfig);