Skip to content

Commit

Permalink
Merge pull request #10 from bedrock-apis/development
Browse files Browse the repository at this point in the history
MDX and MD support aside aouto generated added meta informations
  • Loading branch information
conmaster2112 authored Feb 11, 2024
2 parents fadc39f + 4403997 commit a120151
Show file tree
Hide file tree
Showing 13 changed files with 438 additions and 29 deletions.
12 changes: 8 additions & 4 deletions next.config.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
//const remarkGfm = require("remark-gfm");
import w from "@next/mdx";
import remarkFrontmatter from 'remark-frontmatter'
import remarkMdxFrontmatter from 'remark-mdx-frontmatter'

const withMDX = require('@next/mdx')({

const withMDX = w({
extension: /\.(md|mdx)$/,
options: {
remarkPlugins: [],
remarkPlugins: [remarkFrontmatter,[remarkMdxFrontmatter, {name:'metadata'}]],
rehypePlugins: [],
},
})
Expand All @@ -16,6 +19,7 @@ const nextConfig = {
images: {
unoptimized: true
},
basePath: "/wiki",
distDir: "./dist"
}
module.exports = withMDX(nextConfig)
export default withMDX(nextConfig)
Loading

0 comments on commit a120151

Please sign in to comment.