Dokz side nav shows all your pages paths by default, to only show files in a specific directory you can use the DokzProvider
docsRootPath
prop
Here is an example of a site that exposes only the mdx documents on the /docs/ directory
Note that docsRootPath
has no impact on the exposed pages, it only changes the side nav elements
1import { DokzProvider } from 'dokz'2import React from 'react'34export default function App(props) {5const { Component, pageProps } = props6return (7<DokzProvider docsRootPath='pages/docs'>8<Component {...pageProps} />9</DokzProvider>10)11}