Files
mintlify__docs/editor/drafts.mdx
Denzell 2ae9c239b0 Add editor drafts documentation (#6526)
* Add editor drafts documentation

Co-Authored-By: Denzell Ford <fdenzell@gmail.com>

* Reword drafts intro for style

Co-Authored-By: Denzell Ford <fdenzell@gmail.com>

---------

Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
2026-07-13 15:18:35 -07:00

94 lines
5.0 KiB
Plaintext

---
title: "Drafts"
description: "Create isolated drafts in the web editor that stay unpublished until you request review and publish, without managing Git branches yourself."
keywords: ["editor", "draft", "drafts", "publish", "request review", "pull request", "autosave"]
---
Use drafts to work on changes in the web editor without touching your live site. A draft is an isolated workspace where you edit, preview, and refine content. Your changes stay unpublished until you choose to publish them.
Drafts are the recommended way to make changes in the web editor. Each draft is backed by a Git branch and pull request that the editor manages for you, so you can work without switching branches or opening pull requests by hand.
## How drafts work
**Every edit saves automatically.** As you type, the editor saves your work to Mintlify's servers, then commits it to the draft's branch in the background. Your changes persist across tabs, devices, and network interruptions.
**Each draft tracks its own version history.** Because the editor commits your edits as you work, a draft builds up a history of changes on its branch and keeps an open pull request that reflects the current state of the draft.
**Nothing goes live until you publish.** A draft never affects your live site while you edit it. You control when its changes deploy.
**You can keep multiple drafts at once.** Work on several sets of changes in parallel, each in its own draft, and publish them independently.
<Note>
Drafts are separate from the deployment branch that builds your live site. Editing a draft never changes your live site until you publish the draft.
</Note>
## Create a draft
1. Click the deployment selector in the editor toolbar. It shows **Live site** when you're editing your deployment branch, or the draft's name when you're in a draft.
2. Select the **Drafts** tab.
3. Click **New draft**.
The editor creates the draft and switches to it. New drafts start with the name "Untitled draft"—rename it so you and your teammates can identify it later.
<Tip>
If your deployment branch requires pull requests, the editor prompts you to **Create a new draft** when you try to edit your live site directly. Create a draft to keep working.
</Tip>
## Switch between drafts
1. Click the deployment selector in the editor toolbar.
2. Select **Live site** to return to your deployment branch, or open the **Drafts** tab and choose a draft.
The **Drafts** tab lists your drafts with the time each was last updated, most recent first. Use the search field to filter drafts by name.
## Publish a draft
When your draft is ready, open the publish menu to review your changes and publish. The available actions depend on whether your deployment branch requires review before changes go live.
<Steps>
<Step title="Open the publish menu">
Click **Publish** in the editor toolbar. The menu lists every pending change in the draft. Click any change to review its diff.
</Step>
<Step title="Request review (if required)">
If your deployment branch requires review, click **Request review** to mark the draft's pull request ready for your team to review. Reviewers approve the pull request from the editor or from your Git provider.
</Step>
<Step title="Publish">
Click **Publish** to merge the draft into your deployment branch and deploy it. If review is required, **Publish** becomes available after the pull request is approved.
<Check>
After publishing, the editor confirms the draft has been published and offers to take you back to your deployment branch. Your live site updates once Mintlify builds and deploys the changes, which typically takes from 30 seconds to a few minutes.
</Check>
</Step>
</Steps>
<Note>
Only one publish can happen at a time per draft. If a publish is already in progress, wait for it to finish before publishing again.
</Note>
## Rename a draft
1. Open the deployment selector and select the **Drafts** tab.
2. Hover over the draft and click the rename (pencil) icon.
3. Enter a new name and press <kbd>Enter</kbd>.
Renaming a draft also updates the title of its pull request.
## Delete a draft
1. Open the deployment selector and select the **Drafts** tab.
2. Hover over the draft and click the delete (trash) icon.
3. Confirm the deletion.
<Warning>
Deleting a draft permanently discards its unpublished changes and closes its pull request. This action cannot be undone.
</Warning>
## Drafts versus branches
Drafts and branches both let you work on changes in isolation before publishing. Choose based on how your team works:
- **Use drafts** if you want the editor to manage Git for you. Drafts are the simplest way to make changes without thinking about branches or pull requests.
- **Use branches** if you follow a Git-based workflow and want to name branches, manage pull requests directly, or coordinate with changes made outside the editor. See [Branching and publishing](/editor/branching-and-publishing).
Both tabs are available in the deployment selector, so you can move between the two approaches at any time.