Live preview
Live preview renders your site as you edit, with no build step. With a site page open, click Preview in the top bar. The preview opens full screen. Click Refresh preview to reload it, or Close preview to return to the editor. To open the preview in a new browser tab instead, turn on Open live preview in new tab. To edit site settings and see how they affect your content, click Site settings in the preview toolbar, then select a configuration section. To open the agent beside the preview, click Ask agent in the preview toolbar. Only editors and admins can use the agent in live previews.Live preview isn’t available for sites that use standalone personalization without authentication.
Preview deployments
When your feature branch has a pull request, Mintlify builds a preview deployment: a temporary URL where your changes render exactly as they look when published. The preview rebuilds each time the editor commits new changes to the branch. The URL combines your project’s subdomain and the branch name:<subdomain>-<branch-name>.mintlify.site. Find the exact URL in the pull request comment from the Mintlify bot.
Preview URLs are publicly accessible by default. To restrict access to members of your Mintlify organization, enable preview authentication in the Previews section of the Site page in your dashboard. See Restrict access to preview deployments for more information.
Which preview to use
Share an editor link
To point a teammate at a specific page on a branch, click More options in the top-right of the page, then click Copy link. Anyone with access to your Mintlify organization can open the link in their own editor session.Require review before publishing
To require review before publishing, you must have an Enterprise plan and your project’s repository must be on GitHub.
Request a review
- Make your changes on your deployment branch.
- Click Request review in the top bar. This button replaces Publish when your changes need review.
- In the Request review section, click Choose reviewers and select people or a group. You can only choose members who can approve changes.
- Click Request.
Review and approve changes
- Open the review request from your inbox or email, or open a page that someone requested you to review.
- Read the changes. To leave comments or suggestions instead of approving, use the comment and suggestion tools. Comments and suggestions don’t approve or block a review.
- Click Approve in the banner at the top of the page. Your approval applies to every page in the request.
Publish approved changes
When someone approves a review request, the requester gets an inbox item notifying them of the approval. Admins and publishers can publish the approved changes.- Open a page in the approved request.
- Click Publish in the top bar. The Publish menu lists the requester’s changes.
- Click Publish followed by the requester’s name, such as Publish Ronan’s changes, then click Publish to confirm.
Edit a page after approval
An approval applies only to the version of a page that the reviewer approved. If you edit, rename, or move an approved page, you must request a new review before publishing.Withdraw a review request
To withdraw your review request before anyone approves it, open a page in the request and click Withdraw in the banner. To remove one reviewer, open the Publish menu and click Withdraw next to the reviewer’s name. If you remove all reviewers, the request closes. If you discard all changes in a request, the request closes.Review and merge pull requests
When your branch has a pull request, the publish menu shows its changed files and review status, like Pull request created, Review required, Changes requested, or Approved. If Mintlify hosts your repository, a draft shows Draft in progress. If your repository is on GitHub or GitLab, click View request to open the pull request in your Git provider. On a feature branch, reviewers approve your changes in your Git provider, not in the editor. If your project requires review before publishing, only admins can merge pull requests into your deployment branch from the editor.- Click Publish in the top bar, then click Request review. This marks the pull request ready for review.
- Reviewers approve the pull request in your Git provider.
- Click Publish, then click Merge and publish. The editor merges the pull request, deploys your changes, and switches you back to your deployment branch.