GitHub
Sync your docs with a GitHub repo
Mintlify uses a GitHub App to automatically sync your documentation with your GitHub repository.
Installing the GitHub App
Install the Mintlify GitHub App on the GitHub account or organization that owns your docs repository. You must have organization ownership or admin permissions in a repository to install the app. If you lack the necessary permissions, the repository owner must approve the installation request.
Install the Mintlify GitHub App through your dashboard.
We recommend granting access only to the repository where your docs are hosted.
Permissions
When you install the GitHub app, you will be prompted to grant the following permissions:
Read permissions:
metadata
: Basic repository information
Read and write permissions:
checks
: Create status checks on pull requestscode
: Read file changes when you commit to your docs branchdeployments
: Generate preview deployments for pull requestspull requests
: Create branches and pull requests from the web editorworkflows
: Manage GitHub Actions for docs deployments
The app only accesses repositories that you explicitly grant it access to. If you have branch protection rules enabled, the app cannot push directly to protected branches.
Managing repository access
When installing our GitHub App, you can grant access to all of your repositories or specific ones. We recommend only granting access to the repositories where your documentation is located. You can modify this selection anytime in your GitHub app settings.
Configuring docs source
Change the organization, repository, or branch that your documentation is built from in the Git Settings section of your dashboard.
Troubleshooting
If you encounter problems with the GitHub app, resetting the connection can solve most problems.
Uninstall the Mintlify app through GitHub.
- In GitHub, go to installations and select Configure next to the Mintlify app. Scroll down and select Uninstall.
- Go to Authorized GitHub Apps and select Revoke next to the Mintlify app.
Reinstall the Mintlify app.
- In your Mintlify dashboard, go to Git Settings and install the GitHub app.
- Authorize your account in the My Profile section of your dashboard.