Skip to content

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

Merged
ethanpalm merged 6 commits into
mainfrom
mintlify/fd4daece
Aug 3, 2026
Merged

Document monorepo and multi-repo SDK reference setups#6844
ethanpalm merged 6 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 changes with no runtime or configuration behavior impact.

Overview
Adds a Repository setup section to the SDK reference setup guide, explaining how to wire SDK doc artifacts when code lives in the same repo as docs versus a separate SDK repo.

For monorepo-style layouts, it documents pointing source at a relative artifact path (with a sample docs-repo/ tree). For multi-repo setups, it covers committing generated artifacts into the docs repo via release CI versus hosting artifacts at a stable HTTPS URL and using the Trigger deployment API after publish. A Tip helps readers choose between commit vs remote fetch based on release cadence, artifact size, and existing publishing (e.g. Maven Central Javadoc jars).

Reviewed by Cursor Bugbot for commit 6345c02. 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.

@ethanpalm ethanpalm left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

pushed some copy edits. lgtm!

@ethanpalm
ethanpalm merged commit 6629178 into main Aug 3, 2026
6 checks passed
@ethanpalm
ethanpalm deleted the mintlify/fd4daece branch August 3, 2026 20:31
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.

3 participants