feat: two-column layout for Lock/Thermostat/Action Attempt object pages#1212
Open
dawnho wants to merge 1 commit into
Open
feat: two-column layout for Lock/Thermostat/Action Attempt object pages#1212dawnho wants to merge 1 commit into
dawnho wants to merge 1 commit into
Conversation
Add a `<ResponseExample>` object sample to the three hand-written object pages (locks, thermostats, action_attempts). Mintlify pins a page's ResponseExample to a right-hand code panel and switches the page to its two-column API layout, matching the generated object pages (access_codes, devices, etc.) which already render this way. Samples: the Lock Device and Thermostat Device examples from the Device object page, and a representative LOCK_DOOR action attempt. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Workflows to automatically generate PRs for you. |
ac9e852 to
f7be3e9
Compare
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.
What
The Lock, Thermostat, and Action Attempt object pages render single-column (flat property list, TOC on the right), while every other object page (access_codes, devices, …) uses Mintlify's two-column API layout — properties on the left, a JSON object sample pinned on the right.
The difference is simply that those three hand-written pages lacked a
<ResponseExample>. Mintlify swaps the right-hand TOC for a pinned code panel (and switches the page to the two-column layout) when a page has one.Change
Add a
<ResponseExample>object sample to each of the three pages, right after the intro:LOCK_DOORaction attemptNo other content changes; the property rendering (from the recently-merged #1208) is untouched.
Verify
Please confirm the two-column layout on the deploy preview once it builds:
(I couldn't verify locally — a concurrent preview on this machine kept hijacking the local dev server.)
🤖 Generated with Claude Code