Skip to content

Document monorepo and multi-repo SDK reference setups - #6844

Open
mintlify[bot] wants to merge 4 commits into
mainfrom
mintlify/fd4daece
Open

Document monorepo and multi-repo SDK reference setups#6844
mintlify[bot] wants to merge 4 commits into
mainfrom
mintlify/fd4daece

Conversation

@mintlify

@mintlify mintlify Bot commented Aug 1, 2026

Copy link
Copy Markdown
Contributor

Documentation changes

Adds a "Where your SDK code lives" section to the SDK reference setup page covering monorepo and multi-repo scenarios: SDK in the same repo as docs, SDK in a separate repo with the artifact committed to docs, and SDK in a separate repo with the artifact hosted remotely (with a callout that the latter needs a Trigger deployment API call after publish).

Closes


For Reviewers

When reviewing documentation PRs, please consider:

✅ Technical accuracy

  • Code examples work as written
  • Commands and configurations are correct
  • Links resolve to the right destinations
  • Prerequisites and requirements are accurate

✅ Clarity and completeness

  • Instructions are clear and easy to follow
  • Steps are in logical order
  • Nothing important is missing
  • Examples help illustrate the concepts

✅ User experience

  • A new user could follow these docs successfully
  • Common gotchas or edge cases are addressed
  • Error messages or troubleshooting guidance is helpful

Generated by Mintlify Agent.

Requested by: hahnbee@mintlify.com via Slack
Mintlify session: slack_1785613194.223009_C0A6A37P2AK


Note

Low Risk
Documentation-only change to sdk-reference-setup.mdx with no runtime or config behavior changes.

Overview
Adds Where do the docs and code live? to the SDK reference setup guide so readers can choose a workflow based on where the SDK lives relative to the docs.

For a monorepo (SDK and docs together), it describes generating the artifact in-repo, pointing source at a relative path, and letting normal deploys pick up committed artifacts. For a separate SDK repo, it documents two paths: CI that commits or PRs the artifact into the docs repo (deploy on merge, no extra API), or hosting the artifact at an HTTPS source plus calling Trigger deployment after publish so builds fetch the new file. A Tip contrasts when to commit vs host (release cadence, size, existing publishes like Maven Javadoc).

Reviewed by Cursor Bugbot for commit 04b4a59. Bugbot is set up for automated code reviews on this repo. Configure here.

@mintlify

mintlify Bot commented Aug 1, 2026

Copy link
Copy Markdown
Contributor Author

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
mintlify 🟢 Ready View Preview Aug 1, 2026, 7:43 PM

@mintlify

mintlify Bot commented Aug 1, 2026

Copy link
Copy Markdown
Contributor Author

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
tomee 🟢 Ready View Preview Aug 1, 2026, 7:43 PM

💡 Tip: Enable Workflows to automatically generate PRs for you.

Comment thread api-playground/sdk-reference-setup.mdx Outdated

The simplest setup. Generate the artifact in the same repository as your docs and point `source` at its relative path. Any workflow that already produces the artifact on push or release can commit it back to the repository, and the next docs deployment picks it up automatically.

This works for a monorepo that contains both the SDK source and the docs, or for a docs repository that vendors the SDK as a submodule.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mintlify , or for a docs repository that vendors the SDK as a submodule get rid of this part of the sentence

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed the submodule clause from the same-repo pattern description.

Comment thread api-playground/sdk-reference-setup.mdx Outdated
Comment on lines +133 to +135
**Commit the artifact to your docs repository.** In the SDK repository, run a CI job on release that generates the artifact and opens a pull request (or pushes a commit) to your docs repository with the updated file. Merging that change to your deployment branch triggers a docs deployment on its own, so no extra API call is needed. Point `source` at the committed path, the same as the single-repository setup.

**Host the artifact and fetch it at build time.** Upload the artifact to a stable HTTPS URL (for example, an S3 bucket, GitHub Releases asset, or Maven Central for Javadoc jars) and set `source` to that URL. Because nothing changes in your docs repository when the SDK updates, you also need to trigger a docs deployment so the new artifact is fetched. Call the [Trigger deployment](/api/update/trigger) endpoint from your SDK release pipeline after the artifact is published. See [Remote artifact limits](#use-remote-sources) for size constraints.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mintlify number these options

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Numbered the two separate-repo SDK artifact options as an ordered list.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants