-
Notifications
You must be signed in to change notification settings - Fork 981
Migrate to mintlify #925
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
manifoldfrs
wants to merge
13
commits into
coinbase:main
Choose a base branch
from
manifoldfrs:refactor/migrate-to-mintlify
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Migrate to mintlify #925
manifoldfrs
wants to merge
13
commits into
coinbase:main
from
manifoldfrs:refactor/migrate-to-mintlify
Conversation
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
🟡 Heimdall Review Status
|
|
@manifoldfrs is attempting to deploy a commit to the Coinbase Team on Vercel. A member of the Team first needs to authorize it. |
3ae75ef to
45c1a35
Compare
d4ac960 to
96f08fc
Compare
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.
Description
Migrates x402 documentation from GitBook to Mintlify, with automated documentation updates when SDK code changes.
Automated Documentation Updates:
mainAGENTS.mdfileFiles
.github/workflows/update-docs.ymldocs/AGENTS.mddocs/docs.jsonAutomation Workflow
When code is pushed to main, the GitHub Actions workflow evaluates whether to trigger the Mintlify agent. The workflow first applies a
paths-ignorefilter that skips entirely if only documentation files or test files changed. If non-excluded files are present, the workflow uses GitHub's Compare API to get a reliable list of changed files between the before/after commit SHAs. This approach was specifically chosen because the standardpayload.commits[].added/modifiedmethod fails for squash merges, but the Compare API works correctly for all merge types (merge commits, squash, and rebase).The workflow constructs a detailed prompt containing the list of changed files, the commit message, and a set of critical rules that constrain the agent's behavior. These rules explicitly instruct the agent to only update documentation directly related to the specific code changes, and to skip creating a PR if the changes are trivial (comment removal, formatting, optional parameters, etc.). The agent also reads
docs/AGENTS.mdwhich contains a code-to-doc mapping table. For example, changes totypescript/packages/core/src/should update Core Concepts docs, while changes topython/x402/src/should update Python SDK references.The Mintlify agent analyzes the code changes against the existing documentation. If it determines updates are needed, it creates a new branch and opens a pull request with the documentation changes. If the changes are trivial or don't affect user-facing documentation, the agent reports "No documentation updates needed" and exits without creating a PR. All PRs are created as non-draft and ready for human review, the agent never commits directly to main.
The two-layer filtering (paths-ignore at trigger level, regex filtering in script, plus agent-level rules in
AGENTS.md) creates a system that's sensitive enough to catch impactful changes but not so noisy that it creates PRs for every commit. Testing confirmed this balance: the agent correctly skipped trivial changes like comment removal and optional parameter additions, while correctly creating a PR when a default timeout behavior was added to HTTPFacilitatorClient (see manifoldfrs#15).Tests
Tested with 5 scenarios on fork (manifoldfrs/x402-fh):
Configurations Required
MINTLIFY_API_KEYMINTLIFY_PROJECT_IDPrerequisites
coinbase/x402Documentation
Checklist
docs.json.mdextensions)Breaking Changes
None. This is a documentation infrastructure change only.
Related