Skip to content

Update from code changes: document Variation component - #6774

Open
mintlify[bot] wants to merge 2 commits into
mainfrom
mintlify/038c04aa
Open

Update from code changes: document Variation component#6774
mintlify[bot] wants to merge 2 commits into
mainfrom
mintlify/038c04aa

Conversation

@mintlify

@mintlify mintlify Bot commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

Summary

Adds a new component reference page documenting <Variation>, a MDX component that conditionally shows content based on a reader-selected variation (region, plan, audience, etc.), along with the new variations.options field in docs.json. The switcher, config, and behavior are currently supported on the Willow theme. Pages are added in English, Spanish, French, and Chinese, with matching navigation updates. See mintlify/mint#9502.

Changes

  • Added components/variation.mdx covering configuration, usage, URL/local-storage persistence, table of contents behavior, and props.
  • Added Spanish, French, and Chinese translations.
  • Registered the new page under Components in docs.json, es.json, fr.json, and zh.json.

Note

Low Risk
Documentation and navigation-only changes with no application or runtime logic touched.

Overview
Adds reference documentation for the Variation MDX component and the variations.options field in docs.json, so authors can ship one page with audience-, region-, or deployment-specific sections without duplicating pages.

The new components/variation.mdx page explains Willow-only setup, wrapping content with is (string or array), reader switching via sidebar/changelog UI, ?variation=<id> URLs, per-project local storage, and TOC filtering (including nested intersection). Spanish, French, and Chinese copies mirror the English page (localized locales use explicit heading div ids). components/variation is registered in the Components nav in docs.json, es.json, fr.json, and zh.json (placed before View).

Reviewed by Cursor Bugbot for commit c1378ac. Bugbot is set up for automated code reviews on this repo. Configure here.

@mintlify

mintlify Bot commented Jul 28, 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 Jul 28, 2026, 2:25 AM

Copy link
Copy Markdown
Contributor

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

Project Status Preview Updated (UTC)
tomee 🟢 Ready View Preview Jul 28, 2026, 2:25 AM

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

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.

1 participant