Bitbucket Cloud requires an Enterprise plan.
bitbucket.org. Bitbucket Data Center, the Slack agent, and automations do not support Bitbucket repositories.
Requirements
- A Bitbucket Cloud account
- Permission to create a webhook in the repository you want to connect
- Admin access to your Mintlify organization
- A
docs.jsonfile in your repository
Set up a new Bitbucket connection
When you open Git Settings for the first time, a setup wizard guides you through connecting your Bitbucket repository.1
Select Bitbucket as your provider
- On the Git Settings page, click Connect to Bitbucket.
- Click Continue.
2
Move Mintlify-hosted content
If you currently host your content in a Mintlify-managed repository, download it as a zip file. Extract the zip contents and push the files to your Bitbucket repository.If your content is already in Bitbucket, click Continue setup.
3
Authorize Bitbucket
- Click Connect Bitbucket.
- Bitbucket opens a new page. Authorize Mintlify to access the repository you want to connect.
4
Configure the repository
Enter the following values:
- Workspace: The slug of the Bitbucket workspace that owns the repository. For example, in
https://bitbucket.org/acme/docs,acmeis the workspace slug. - Repository: The repository slug. For example, in
https://bitbucket.org/acme/docs,docsis the repository slug. - Deploy branch: The branch that publishes to your production documentation site, such as
main.
5
Configure a content directory (optional)
- If your
docs.jsonfile is in a subdirectory, enable Docs are in a subdirectory on your Git settings page. - Enter the path to the directory that contains your
docs.jsonfile. For example, if yourdocs.jsonis in theapps/docs/directory, enterapps/docs.
6
Connect the repository
- Click Connect.
- Confirm the change. Mintlify verifies that the authorized Bitbucket account can access your repository and registers the webhook that triggers deployments and pull request previews.
Update an existing connection
- Navigate to the Git Settings page of your Mintlify dashboard.
- Expand the Bitbucket OAuth section.
- Enable or disable individual repositories. Disabling a repository removes its Mintlify webhook.
Configure multiple repositories
You can combine content from multiple Bitbucket repositories in one site. Every source in the deployment must use Bitbucket, and you must enable each repository under Bitbucket OAuth before you add it as a source. See Multi-repository deployments for setup instructions and information about URL paths, base sources, and navigation.Troubleshooting
Deployments do not trigger automatically
Deployments do not trigger automatically
In Bitbucket, open Repository settings > Webhooks and verify that an active webhook named Mintlify exists. If it is missing, return to your Mintlify Git settings, disable the repository under Bitbucket OAuth, then enable it again.Verify that the branch in your Mintlify Git settings matches the Bitbucket branch you push changes to.
Pull request previews do not appear
Pull request previews do not appear
Verify that the Mintlify webhook is active and includes pull request events. If your Bitbucket permissions changed after you connected the repository, reconnect your Bitbucket account and enable the repository again.