Library
Mintlify answers/5 minutes read

Does Mintlify work with multiple repos or a monorepo?

Published November 21, 2026
HC

Harkirat Chahal

Growth

Share this article


Does Mintlify work with multiple repos or a monorepo?
SUMMARY

Yes to both. Mintlify deploys docs from a subdirectory of a monorepo on any plan, and Enterprise plans can combine several Git repositories into one site, with each repository's content under its own URL path such as /api or /sdks. Teams without an Enterprise plan can combine GitHub repositories with the Mintlify multi-repo GitHub Action.

Yes to both. Mintlify deploys docs from a subdirectory of a monorepo on any plan, and Enterprise plans can combine several Git repositories into one site, with each repository's content under its own URL path such as /api or /sdks. Teams without an Enterprise plan can combine GitHub repositories with the Mintlify multi-repo GitHub Action.

Three repository setups compared

By default a Mintlify site deploys from the root of one repository. There are three other setups, compared in Choose a repository setup.

Monorepo setupMulti-repository projectMulti-repo GitHub Action
PlanAnyEnterpriseAny
Where content livesA subdirectory of one repositorySeveral repositories, each with its own docs.json, combined at deploy timeSeveral child repositories, copied into one parent repository
Git providersAny provider Mintlify supportsGitHub, GitLab, Bitbucket or Azure Repos, with every source on the same providerGitHub
Configured inGit settings in the dashboardGit settings in the dashboardA config file and workflow in the parent repository
Editable in the web editorYesYes, with a repository menu in the sidebarOnly content the action doesn't sync

Monorepo: docs in a subdirectory beside your code

A monorepo setup keeps docs in a folder such as /docs inside the repository that holds your apps and services. Docs changes can then ship in the same pull requests as the code they describe, with the previews and CI checks Mintlify runs on pull requests.

  1. Put your documentation files and a valid docs.json in a dedicated directory.
  2. Open Git Settings in the dashboard and enable the docs.json is in a subdirectory toggle.
  3. Enter the relative path, for example /docs, with no trailing slash.
  4. Click Save. Saving triggers a new deployment from that path.

Multiple repositories feeding one site

A multi-repository project is the Enterprise setup for teams that each keep docs in their own repository. A product team can own the guides, a platform team the API reference and an SDK team the SDK docs, each with its own branches and reviews.

Each repository source has its own Git provider connection, branch, optional content directory, URL path and docs.json. During deployment, Mintlify reads each repository and combines the sources into one site. One repository is the base source, and its docs.json controls site-level settings such as theme, logo and top-level navigation.

Four limits apply:

  • All sources must use the same Git provider. Adding a source from a different provider removes the existing sources of the other type.
  • URL paths must be unique and cannot overlap, so one source at /docs and another at /docs/api is rejected. One source can use the root path /.
  • Each repository can be added only once per site.
  • Relative Markdown links don't resolve across repositories. Link between sources with a root-relative path such as /api/reference/authentication.

The multi-repo GitHub Action is the option on any plan. It copies docs from child repositories into one parent docs repository on GitHub and merges each child's navigation into a single docs.json. Mintlify then deploys the parent like any single-repository site.

Git providers and self-hosted Git

Git providerSupport
GitHubConnects through the Mintlify GitHub App
GitLabgitlab.com and self-hosted GitLab instances, through access tokens and webhooks
Self-hosted GitLab OAuthNeeded for Autopilot and automations on a self-hosted instance. Requires a Pro or Enterprise plan
GitHub Enterprise ServerRequires an Enterprise plan
Bitbucket CloudRequires an Enterprise plan. Bitbucket Data Center is not supported
Azure ReposRequires an Enterprise plan. Azure DevOps Server is not supported

If your Git server sits behind a firewall or IP allowlist, Mintlify connects to Git providers over HTTPS on port 443 from one static egress IP address, 54.242.90.151. The static IP help page covers GitHub Enterprise Cloud, GitHub Enterprise Server and self-hosted GitLab. Agent runs use dynamic IP addresses by default, and on Enterprise plans, Mintlify support can route a site's agent Git traffic through the static IP on request. A self-hosted GitLab instance must be reachable from https://app.mintlify.com, so an instance behind a VPN does not work with the OAuth connection. Teams that cannot expose their Git server at all can read about self-hosting Mintlify.

Frequently Asked Questions

Does Mintlify work across multiple repos?

Yes. Mintlify Enterprise combines several repositories into one site as a multi-repository project, with each repository under its own URL path. On any plan, the multi-repo GitHub Action copies docs from several GitHub repositories into one docs repository.

Can we keep docs in the same monorepo as our code?

Yes, on any Mintlify plan. Enable docs.json is in a subdirectory in Git Settings and enter the path to your docs folder, such as /docs.

Can the docs sync with a self-hosted Git server?

Yes. Mintlify supports GitHub Enterprise Server on Enterprise plans and self-hosted GitLab instances. Mintlify does not support Bitbucket Data Center or Azure DevOps Server.

Can we mix GitHub and GitLab repositories in one site?

No. All sources in a Mintlify multi-repository project must use the same Git provider.

Can Mintlify read code repositories that don't contain docs?

Yes. Mintlify Autopilot on Pro and Enterprise uses the source code repositories you select under Additional repositories as context, alongside your documentation repository. See automatic docs updates and who reviews them.

Where to start

Choose a repository setup compares the three options, and the monorepo and multi-repository pages have the setup steps. Start for free to connect a monorepo today, or book a demo for multi-repository projects, GitHub Enterprise Server, Bitbucket Cloud or Azure Repos.