diff --git a/package.json b/package.json index df9f50c..d2d2650 100644 --- a/package.json +++ b/package.json @@ -37,5 +37,6 @@ "pretty-quick": "^3.1.3", "tailwindcss": "^3.2.4", "vite": "^4.0.0" - } + }, + "packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e" } diff --git a/src/main.jsx b/src/main.jsx index c69ddcb..5ca8014 100644 --- a/src/main.jsx +++ b/src/main.jsx @@ -28,6 +28,10 @@ const router = createBrowserRouter( path: '/doc/:slug', element: }, + { + path: '/doc/:doc_name', + element: + }, { path: '/Contributors', element: diff --git a/src/pages/12Doc.jsx b/src/pages/12Doc.jsx deleted file mode 100644 index dfc03a3..0000000 --- a/src/pages/12Doc.jsx +++ /dev/null @@ -1,46 +0,0 @@ -import React from 'react'; -import Layout from '../components/Layout/Layout'; -import DocItem from '../components/Doc/DocItem'; -import { docs } from '../data/Doc.json'; -const Doc = () => { - console.log(docs) - return ( - - - Documents - - - Getting started - - { - docs.filter(item => item.tag[0] == "popular").map((item, idx) => ( - - )) - } - - - - Popular - - { - docs.filter(item => item.tag[0] == "popular").map((item, idx) => ( - - )) - } - - - - - - ); -}; - -export default Doc; \ No newline at end of file