-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from krystxf/feat/documentation
Feat: documentation
- Loading branch information
Showing
13 changed files
with
1,496 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import { MDXComponents } from "mdx/types"; | ||
|
||
const useMDXComponents = (components: MDXComponents): MDXComponents => { | ||
return { | ||
...components, | ||
}; | ||
}; | ||
|
||
export { useMDXComponents }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,15 @@ | ||
import createMDX from "@next/mdx"; | ||
|
||
/** @type {import('next').NextConfig} */ | ||
const nextConfig = {}; | ||
const nextConfig = { | ||
// Configure `pageExtensions` to include markdown and MDX files | ||
pageExtensions: ["js", "jsx", "md", "mdx", "ts", "tsx"], | ||
// Optionally, add any other Next.js config below | ||
}; | ||
|
||
const withMDX = createMDX({ | ||
// Add markdown plugins here, as desired | ||
}); | ||
|
||
export default nextConfig; | ||
// Merge MDX config with Next.js config | ||
export default withMDX(nextConfig); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.