Blog

Let users edit your contents#

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

jsx
1
// _app.jsx
2
import { DokzProvider } from 'dokz'
3
import { useRouter } from 'next/router'
4
import { ChakraProvider } from '@chakra-ui/react'
5
6
export default function App(props) {
7
return (
8
<ChakraProvider>
9
<DokzProvider
10
docsRootPath='pages/docs'
11
githubUrl='remorses/dokz'
12
branch='master'
13
>
14
<Component {...pageProps} />
15
</DokzProvider>
16
</ChakraProvider>
17
)
18
}
Previous
Deploying your docs
Next
Export to pdf
Let users edit your contents