Add guide: Run the Mintlify CLI in CI#6745
Closed
mintlify-development[bot] wants to merge 1 commit into
Closed
Conversation
Contributor
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Workflows to automatically generate PRs for you. |
Contributor
|
Preview deployment for your docs. Learn more about Mintlify Previews.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Documentation changes
Adds a new guide,
guides/cli-in-ci.mdx, covering how to run the Mintlify CLI in a CI pipeline: which commands to use (mint validate,mint broken-links,mint a11y), sample GitHub Actions and GitLab CI configs, a pre-commit hook, how to scope link checks to changed files, and a small troubleshooting section. Also linked from the "Best practices" group in the Learn tab ofdocs.json.Closes
For Reviewers
When reviewing documentation PRs, please consider:
✅ Technical accuracy
✅ Clarity and completeness
✅ User experience
Generated by Mintlify Agent.
Requested by: patrick+1@mintlify.com via Slack
Mintlify session: slack_1784932788.683829_C0A40JDM342
Note
Low Risk
Documentation-only change with no application, auth, or data-handling impact.
Overview
Adds
guides/cli-in-ci.mdx, a Learn-tab guide for runningmint validate,mint broken-links, andmint a11yin your own CI or pre-commit flow, and links it under Best practices indocs.json.The page contrasts Mintlify’s hosted CI checks with self-managed pipelines, documents sample GitHub Actions and GitLab CI jobs (path filters, Node 20, global
mintinstall), a local pre-commit hook, andmint broken-links --fileswith a scheduled full run for large sites. It ends with troubleshooting for missing CLI onPATH, flaky external link checks, and CI-only validation failures (e.g. generated OpenAPI).Reviewed by Cursor Bugbot for commit 7870f33. Bugbot is set up for automated code reviews on this repo. Configure here.