feat: add installation page in route

This commit is contained in:
p-sw 2024-06-01 02:02:12 +09:00
parent 8562f8c886
commit dfe8b83eed

View File

@ -10,6 +10,7 @@ import DocsLayout from "./DocsLayout";
import ErrorBoundary from "./ErrorHandler"; import ErrorBoundary from "./ErrorHandler";
import Introduction from "./docs/getting-started/introduction.mdx"; import Introduction from "./docs/getting-started/introduction.mdx";
import Installation from "./docs/getting-started/installation.mdx";
const router = createBrowserRouter( const router = createBrowserRouter(
createRoutesFromElements( createRoutesFromElements(
@ -17,6 +18,7 @@ const router = createBrowserRouter(
<Route index element={<Home />} /> <Route index element={<Home />} />
<Route path="/docs" element={<DocsLayout />}> <Route path="/docs" element={<DocsLayout />}>
<Route index element={<Introduction />} /> <Route index element={<Introduction />} />
<Route path="installation" element={<Installation />} />
</Route> </Route>
</Route> </Route>
) )