docs: add contextual menu with copy and AI options#70
Conversation
Enable Mintlify's contextual menu so every docs page shows a top-of-page button to copy the page as Markdown, view the raw Markdown, and open the page as context in ChatGPT or Claude.
8d52293 to
8713d02
Compare
|
Warning Review limit reached
Next review available in: 30 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (4)
WalkthroughAdds Vale linting and vocabulary configuration, updates docs.json contextual options, and corrects wording across several MDX documentation pages. ChangesDocumentation Tooling
Documentation Copy Edits
Estimated code review effort: 2 (Simple) | ~10 minutes 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Workflows to automatically generate PRs for you. |
b925b6e to
59ca671
Compare
59ca671 to
6d3ece4
Compare
There was a problem hiding this comment.
Actionable comments posted: 4
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
pages/tools/solana-unity-sdk/guides/mint-an-nft.mdx (1)
27-35: 📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick winFix the instruction count.
The paragraph says the transaction consists of 5 instructions, but the list below enumerates 6 steps. Please update the count to match the code, or remove the extra bullet if one of these is not meant to be an instruction.
🔧 Suggested wording tweak
-We can now construct the transaction, which consists of 5 instructions: +We can now construct the transaction, which consists of 6 instructions:🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@pages/tools/solana-unity-sdk/guides/mint-an-nft.mdx` around lines 27 - 35, The instruction count in the mint-an-nft guide is inconsistent with the list that follows. Update the sentence in the guide text so it matches the actual number of steps described, or remove the extra step if one of the items under the transaction list (such as the Metadata Account or Master Edition entry) is not intended to be counted as an instruction.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@pages/tools/session-keys/introduction.mdx`:
- Line 8: Soften the absolute security language in the session keys
introduction: the copy in introduction.mdx currently says session keys are
“immune from potential security vulnerabilities,” which overstates the
guarantee. Update the wording around the Session Keys description to reflect
that contract-level expiry and access reduce exposure, but do not eliminate
risks from browser compromise, malicious extensions, or application bugs; keep
the rest of the explanation in the same section intact.
In `@pages/tools/session-keys/usage-examples.mdx`:
- Line 15: Update the `topUp` parameter description in `usage-examples.mdx` to
use cleaner wording: change “an session keypair” to “a session keypair,” and
keep the parameter name `topUp` while using the phrase “top up” in the prose
instead of “topUp.” Make the edit in the session keypair usage example text so
the description reads naturally and consistently.
In `@pages/tools/solana-unity-sdk/guides/dex-integration.mdx`:
- Line 21: The step title in the dex integration guide is misleading because
this part does not create an IDex instance; it uses the existing IDex to fetch
token data. Update the wording in the guide to match the behavior shown in the
surrounding example and keep the step aligned with the IDex usage in the
snippet.
In `@pages/tools/solana-unity-sdk/guides/jupiter.mdx`:
- Around line 15-21: Rename the follow-on “Create an IDex instance” step in the
Jupiter guide so it matches the actual reuse action shown by the `dex` example,
rather than implying a second construction. Update the surrounding markdown
heading/text near the `JupiterDexAg(Web3.Account)` snippet and the later `dex`
usage block to clearly indicate the instance is being reused or referenced,
keeping the wording consistent across both occurrences.
---
Outside diff comments:
In `@pages/tools/solana-unity-sdk/guides/mint-an-nft.mdx`:
- Around line 27-35: The instruction count in the mint-an-nft guide is
inconsistent with the list that follows. Update the sentence in the guide text
so it matches the actual number of steps described, or remove the extra step if
one of the items under the transaction list (such as the Metadata Account or
Master Edition entry) is not intended to be counted as an instruction.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: ASSERTIVE
Plan: Pro
Run ID: fcad9035-bca6-41b3-952f-f4791f821628
📒 Files selected for processing (18)
.vale.ini.vale/styles/config/vocabularies/Mintlify/accept.txtpages/ephemeral-rollups-ers/introduction/ephemeral-rollup.mdxpages/ephemeral-rollups-ers/introduction/transactions.mdxpages/ephemeral-rollups-ers/introduction/why.mdxpages/get-started/how-integrate-your-program/transactions.mdxpages/get-started/introduction/ephemeral-rollup.mdxpages/get-started/use-cases/depin.mdxpages/get-started/use-cases/games.mdxpages/private-ephemeral-rollups-pers/how-to-guide/access-control.mdxpages/tools/crank/implementation.mdxpages/tools/session-keys/introduction.mdxpages/tools/session-keys/security.mdxpages/tools/session-keys/usage-examples.mdxpages/tools/solana-unity-sdk/getting-started/configuration.mdxpages/tools/solana-unity-sdk/guides/dex-integration.mdxpages/tools/solana-unity-sdk/guides/jupiter.mdxpages/tools/solana-unity-sdk/guides/mint-an-nft.mdx
Summary
Enables Mintlify's built-in contextual menu so every docs page shows a top-of-page button with these options:
.mdversionThis adds a single
contextualblock todocs.json; no per-page changes required.Changes
docs.json: addcontextual.options=["copy", "view", "chatgpt", "claude"]Testing
docs.jsonparses as JSON.mintlify dev.copy/viewMarkdown endpoints and AI links are generated by Mintlify's hosting layer, not the local dev server — so they must be verified on this PR's Mintlify preview deployment (locally,.mdURLs 307-redirect back to the HTML page).🤖 Generated with Claude Code
Summary by CodeRabbit