On every document there is an "Edit This Page" button, the button will redirect to github to let the user edit the current page
To activate this feature you need to add the githubUrl
and branch
props to the provider
1// _app.jsx2import { DokzProvider } from 'dokz'3import { useRouter } from 'next/router'45export default function App(props) {6return (7<DokzProvider8docsRootPath='pages/docs'9githubUrl='remorses/dokz'10branch='master'11>12<Component {...pageProps} />13</DokzProvider>14)15}
Remember the githubUrl
and branch
props!