Replace Edit this page with DraftView
Use this integration when you want contributors to edit docs visually before they open a pull request or merge request.
What contributors experience
- They click Edit this page from your docs site.
- DraftView opens with the target file loaded.
- They edit visually.
- DraftView guides platform authorization, fork creation, commit, and request creation.
Integration URL pattern
Link to DraftView with the source file URL in url.
GitHub example:
GitLab example:
Setup steps
Locate the template where your docs site builds Edit this page links.
Keep your existing source file URL generation, then wrap it with the DraftView URL pattern.
Open a page, click Edit this page, edit, and confirm DraftView opens a pull request on GitHub or a merge request on GitLab.
Notes
- DraftView works with Markdown, MDX, and AsciiDoc.
- AsciiDoc include targets can be edited in their own sessions.
- Supported source URL formats are
blobandeditURLs from GitHub and GitLab. - You can paste URLs copied from the browser. DraftView accepts query strings and fragments.