Skip to content

feat: two-column layout for Lock/Thermostat/Action Attempt object pages#1212

Open
dawnho wants to merge 1 commit into
mainfrom
feat/mintlify-object-page-two-column
Open

feat: two-column layout for Lock/Thermostat/Action Attempt object pages#1212
dawnho wants to merge 1 commit into
mainfrom
feat/mintlify-object-page-two-column

Conversation

@dawnho

@dawnho dawnho commented Jul 1, 2026

Copy link
Copy Markdown
Member

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:

  • locks → the "Lock Device" sample (reused from the Device object page)
  • thermostats → the "Thermostat Device" sample (reused from the Device object page)
  • action_attempts → a representative LOCK_DOOR action attempt

No 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

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>
@dawnho dawnho requested a review from a team as a code owner July 1, 2026 23:30
@mintlify

mintlify Bot commented Jul 1, 2026

Copy link
Copy Markdown

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

Project Status Preview Updated (UTC)
seam 🟢 Ready View Preview Jul 1, 2026, 11:44 PM

💡 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