/[sudobot]/trunk/docs/next.config.mjs
ViewVC logotype

Diff of /trunk/docs/next.config.mjs

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 625 by rakinar2, Mon Jul 29 17:59:26 2024 UTC revision 626 by rakinar2, Sat Sep 7 09:38:45 2024 UTC
# Line 1  Line 1 
 import rehypePrism from "@mapbox/rehype-prism";  
1  import createMDX from "@next/mdx";  import createMDX from "@next/mdx";
2  import rehypeAutolinkHeadings from "rehype-autolink-headings";  import rehypeAutolinkHeadings from "rehype-autolink-headings";
3    import rehypePrettyCode from "rehype-pretty-code";
4  import rehypeSlug from "rehype-slug";  import rehypeSlug from "rehype-slug";
5  import remarkFrontmatter from "remark-frontmatter";  import remarkFrontmatter from "remark-frontmatter";
6  import remarkGfm from "remark-gfm";  import remarkGfm from "remark-gfm";
# Line 14  const nextConfig = { Line 14  const nextConfig = {
14      },      },
15  };  };
16    
17    /** @type {import('rehype-pretty-code').Options} */
18    const rehypePrettyCodeOptions = {
19        theme: "material-theme-ocean",
20    };
21    
22  const withMDX = createMDX({  const withMDX = createMDX({
23      extension: /\.mdx?$/,      extension: /\.mdx?$/,
24      options: {      options: {
# Line 31  const withMDX = createMDX({ Line 36  const withMDX = createMDX({
36                      properties: { className: "autolink", tabindex: -1 },                      properties: { className: "autolink", tabindex: -1 },
37                  },                  },
38              ],              ],
39              rehypePrism,              [rehypePrettyCode, rehypePrettyCodeOptions],
40          ],          ],
41      },      },
42      webpack(config) {      webpack(config) {

Legend:
Removed from v.625  
changed lines
  Added in v.626

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26