Skip to content

Commit

Permalink
Merge pull request #7 from krystxf/feat/documentation
Browse files Browse the repository at this point in the history
Feat: documentation
  • Loading branch information
krystxf authored Apr 21, 2024
2 parents c8aec3b + 328de79 commit a84bac5
Show file tree
Hide file tree
Showing 13 changed files with 1,496 additions and 41 deletions.
9 changes: 9 additions & 0 deletions frontend/mdx-components.tsx
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 };
15 changes: 13 additions & 2 deletions frontend/next.config.mjs
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);
14 changes: 9 additions & 5 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,22 @@
"lint": "next lint"
},
"dependencies": {
"@mdx-js/loader": "^3.0.1",
"@mdx-js/react": "^3.0.1",
"@next/mdx": "^14.2.2",
"next": "14.2.2",
"react": "^18",
"react-dom": "^18",
"next": "14.2.2"
"react-dom": "^18"
},
"devDependencies": {
"typescript": "^5",
"@types/mdx": "^2.0.13",
"@types/node": "^20",
"@types/react": "^18",
"@types/react-dom": "^18",
"eslint": "^8",
"eslint-config-next": "14.2.2",
"postcss": "^8",
"tailwindcss": "^3.4.1",
"eslint": "^8",
"eslint-config-next": "14.2.2"
"typescript": "^5"
}
}
Loading

0 comments on commit a84bac5

Please sign in to comment.