Skip to content

docs: add contextual menu with copy and AI options#70

Merged
dhruvja merged 4 commits into
mainfrom
dhruvja/docs/add-contextual-menu
Jul 8, 2026
Merged

docs: add contextual menu with copy and AI options#70
dhruvja merged 4 commits into
mainfrom
dhruvja/docs/add-contextual-menu

Conversation

@dhruvja

@dhruvja dhruvja commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

Summary

Enables Mintlify's built-in contextual menu so every docs page shows a top-of-page button with these options:

  • Copy page — copy the page as Markdown
  • View as Markdown — open the raw .md version
  • Open in ChatGPT — send the page as context to ChatGPT
  • Open in Claude — send the page as context to Claude

This adds a single contextual block to docs.json; no per-page changes required.

Changes

  • docs.json: add contextual.options = ["copy", "view", "chatgpt", "claude"]

Testing

  • Validated docs.json parses as JSON.
  • Verified the button + dropdown render in mintlify dev.
  • Note: the copy/view Markdown 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, .md URLs 307-redirect back to the HTML page).

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Documentation
    • Improved docs copy with spelling and wording corrections across multiple pages (typos, headings, and example text).
    • Updated integration/setup wording to clarify delegation/undelegation terms and correct minor guide text.
  • Documentation / Chores
    • Enhanced documentation linting via Vale configuration and an expanded terminology acceptlist to reduce false positives.
  • New Features
    • Added contextual actions in the docs experience, including copy, view, ChatGPT, and Claude options.

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.
@dhruvja
dhruvja force-pushed the dhruvja/docs/add-contextual-menu branch from 8d52293 to 8713d02 Compare July 6, 2026 14:52
@coderabbitai

coderabbitai Bot commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

Warning

Review limit reached

@dhruvja, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 30 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

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 configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro

Run ID: f4c15163-8be8-441c-9f46-951b9672b8ac

📥 Commits

Reviewing files that changed from the base of the PR and between f5748a7 and fd9df31.

📒 Files selected for processing (4)
  • pages/tools/session-keys/introduction.mdx
  • pages/tools/session-keys/usage-examples.mdx
  • pages/tools/solana-unity-sdk/guides/dex-integration.mdx
  • pages/tools/solana-unity-sdk/guides/jupiter.mdx

Walkthrough

Adds Vale linting and vocabulary configuration, updates docs.json contextual options, and corrects wording across several MDX documentation pages.

Changes

Documentation Tooling

Layer / File(s) Summary
Vale config and vocabulary
.vale.ini, .vale/styles/config/vocabularies/Mintlify/accept.txt
Adds Vale MDX linting settings, ignore patterns, locale exclusions, and accepted Mintlify/Solana terms.
Contextual options
docs.json
Adds a contextual block with copy, view, chatgpt, and claude options.

Documentation Copy Edits

Layer / File(s) Summary
Ephemeral rollups and getting started
pages/ephemeral-rollups-ers/introduction/*, pages/get-started/*
Fixes headings and spelling in rollups and getting-started pages, including lifecycle, undelegation, fragmentation, infrastructure, and architecture text.
Access control, crank, and session keys
pages/private-ephemeral-rollups-pers/how-to-guide/access-control.mdx, pages/tools/crank/implementation.mdx, pages/tools/session-keys/*
Corrects wording and typos in access-control, crank, and session-keys documentation.
Unity SDK guides
pages/tools/solana-unity-sdk/getting-started/configuration.mdx, pages/tools/solana-unity-sdk/guides/*
Updates Unity SDK docs with spelling fixes and revised DEX, Jupiter, and NFT instruction text.

Estimated code review effort: 2 (Simple) | ~10 minutes

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately summarizes the main change: adding a contextual menu with copy and AI options in docs.json.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch dhruvja/docs/add-contextual-menu

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@mintlify

mintlify Bot commented Jul 6, 2026

Copy link
Copy Markdown

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

Project Status Preview Updated (UTC)
magicblock-42 🟢 Ready View Preview Jul 6, 2026, 3:17 PM

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

@jonasXchen jonasXchen 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.

lgtm!

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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 win

Fix 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

📥 Commits

Reviewing files that changed from the base of the PR and between b925b6e and f5748a7.

📒 Files selected for processing (18)
  • .vale.ini
  • .vale/styles/config/vocabularies/Mintlify/accept.txt
  • pages/ephemeral-rollups-ers/introduction/ephemeral-rollup.mdx
  • pages/ephemeral-rollups-ers/introduction/transactions.mdx
  • pages/ephemeral-rollups-ers/introduction/why.mdx
  • pages/get-started/how-integrate-your-program/transactions.mdx
  • pages/get-started/introduction/ephemeral-rollup.mdx
  • pages/get-started/use-cases/depin.mdx
  • pages/get-started/use-cases/games.mdx
  • pages/private-ephemeral-rollups-pers/how-to-guide/access-control.mdx
  • pages/tools/crank/implementation.mdx
  • pages/tools/session-keys/introduction.mdx
  • pages/tools/session-keys/security.mdx
  • pages/tools/session-keys/usage-examples.mdx
  • pages/tools/solana-unity-sdk/getting-started/configuration.mdx
  • pages/tools/solana-unity-sdk/guides/dex-integration.mdx
  • pages/tools/solana-unity-sdk/guides/jupiter.mdx
  • pages/tools/solana-unity-sdk/guides/mint-an-nft.mdx

Comment thread pages/tools/session-keys/introduction.mdx Outdated
Comment thread pages/tools/session-keys/usage-examples.mdx Outdated
Comment thread pages/tools/solana-unity-sdk/guides/dex-integration.mdx Outdated
Comment thread pages/tools/solana-unity-sdk/guides/jupiter.mdx Outdated
@dhruvja
dhruvja merged commit 25d3937 into main Jul 8, 2026
4 checks passed
@dhruvja
dhruvja deleted the dhruvja/docs/add-contextual-menu branch July 8, 2026 07:44
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