[components/toc][s]: removed unused packages
This commit is contained in:
parent
2ff44763df
commit
ccc29184f6
|
|
@ -1,5 +1,4 @@
|
||||||
import { NextSeo } from "next-seo";
|
import { NextSeo } from "next-seo";
|
||||||
import ReactPlayer from "react-player/lazy";
|
|
||||||
import LiteYouTubeEmbed from "react-lite-youtube-embed";
|
import LiteYouTubeEmbed from "react-lite-youtube-embed";
|
||||||
import { useState, useEffect } from "react";
|
import { useState, useEffect } from "react";
|
||||||
|
|
||||||
|
|
@ -17,7 +16,7 @@ import { Anchor } from "./Anchor";
|
||||||
|
|
||||||
// import { Toc } from './Toc'
|
// import { Toc } from './Toc'
|
||||||
|
|
||||||
export default function MdxPage({ children, editUrl }) {
|
export default function MdxPage({ children }) {
|
||||||
const [activeHeading, setActiveHeading] = useState("");
|
const [activeHeading, setActiveHeading] = useState("");
|
||||||
|
|
||||||
const components = getMDXComponents({
|
const components = getMDXComponents({
|
||||||
|
|
|
||||||
File diff suppressed because it is too large
Load Diff
|
|
@ -20,7 +20,6 @@
|
||||||
"contentlayer": "^0.1.2",
|
"contentlayer": "^0.1.2",
|
||||||
"framer-motion": "^6.3.3",
|
"framer-motion": "^6.3.3",
|
||||||
"gray-matter": "^4.0.3",
|
"gray-matter": "^4.0.3",
|
||||||
"hast-util-to-string": "^2.0.0",
|
|
||||||
"mdast-util-to-hast": "^12.1.1",
|
"mdast-util-to-hast": "^12.1.1",
|
||||||
"next": "^12.1.0",
|
"next": "^12.1.0",
|
||||||
"next-contentlayer": "^0.1.2",
|
"next-contentlayer": "^0.1.2",
|
||||||
|
|
@ -39,11 +38,13 @@
|
||||||
"prettier": "^2.6.2",
|
"prettier": "^2.6.2",
|
||||||
"rehype-autolink-headings": "^6.1.1",
|
"rehype-autolink-headings": "^6.1.1",
|
||||||
"rehype-slug": "^5.0.1",
|
"rehype-slug": "^5.0.1",
|
||||||
"rehype-stringify": "^9.0.3",
|
|
||||||
"remark-gfm": "^3.0.0",
|
"remark-gfm": "^3.0.0",
|
||||||
"remark-parse": "^10.0.1",
|
"remark-parse": "^10.0.1",
|
||||||
"remark-wiki-link-plus": "^1.0.0",
|
"remark-wiki-link-plus": "^1.0.0"
|
||||||
"tailwindcss": "^3.0.0",
|
},
|
||||||
"unist-util-find": "^1.0.2"
|
"devDependencies": {
|
||||||
|
"autoprefixer": "^10.2.6",
|
||||||
|
"postcss": "^8.3.5",
|
||||||
|
"tailwindcss": "^3.0.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@ export default function Page({ body, ...rest }) {
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
return <MdxPage children={children} editUrl={editUrl} />;
|
return <MdxPage children={children} />;
|
||||||
}
|
}
|
||||||
|
|
||||||
export const getStaticProps = async ({ params }) => {
|
export const getStaticProps = async ({ params }) => {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue