Skip to content

Comments

feat: add API reference layout with sticky code blocks#10324

Draft
jd wants to merge 1 commit intomainfrom
devs/jd/design/api-layout/I1cf63a33dc34b424e1f3d58af4a5df1e133f9760
Draft

feat: add API reference layout with sticky code blocks#10324
jd wants to merge 1 commit intomainfrom
devs/jd/design/api-layout/I1cf63a33dc34b424e1f3d58af4a5df1e133f9760

Conversation

@jd
Copy link
Member

@jd jd commented Feb 23, 2026

Add a new api-ref page layout variant for reference documentation.
Pages opt in via pageLayout: api-ref in frontmatter and get:

  • Wider right sidebar (22rem) with TOC
  • Narrower content area (800px max) for focused reading
  • Sticky code blocks that stay visible while scrolling
  • Smaller code font for denser reference content

Applied to configuration/file-format and api-usage as examples.

Co-Authored-By: Claude Opus 4.6 noreply@anthropic.com

Add a new `api-ref` page layout variant for reference documentation.
Pages opt in via `pageLayout: api-ref` in frontmatter and get:
- Wider right sidebar (22rem) with TOC
- Narrower content area (800px max) for focused reading
- Sticky code blocks that stay visible while scrolling
- Smaller code font for denser reference content

Applied to configuration/file-format and api-usage as examples.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Change-Id: I1cf63a33dc34b424e1f3d58af4a5df1e133f9760
Claude-Session-Id: c697d365-82bc-4c01-9271-b4e18c99ab52
@mergify mergify bot had a problem deploying to Mergify Merge Protections February 23, 2026 17:06 Failure
@mergify
Copy link
Contributor

mergify bot commented Feb 23, 2026

Merge Protections

Your pull request matches the following merge protections and will not be merged until they are valid.

🔴 👀 Review Requirements

This rule is failing.
  • any of:
    • #approved-reviews-by >= 2
    • author = dependabot[bot]
    • author = mergify-ci-bot

🔴 🔎 Reviews

This rule is failing.
  • #review-requested = 0
  • #changes-requested-reviews-by = 0
  • #review-threads-unresolved = 0

🟢 🤖 Continuous Integration

Wonderful, this rule succeeded.
  • all of:
    • check-success = build
    • check-success = lint
    • check-success = test
    • any of:
      • check-success = test-broken-links
      • label = ignore-broken-links
    • any of:
      • check-success=Cloudflare Pages
      • -head-repo-full-name~=^Mergifyio/

🟢 Enforce conventional commit

Wonderful, this rule succeeded.

Make sure that we follow https://www.conventionalcommits.org/en/v1.0.0/

  • title ~= ^(fix|feat|docs|style|refactor|perf|test|build|ci|chore|revert)(?:\(.+\))?:

🟢 📕 PR description

Wonderful, this rule succeeded.
  • body ~= (?ms:.{48,})

@mergify mergify bot requested a review from a team February 23, 2026 17:09
@jd jd marked this pull request as draft February 23, 2026 20:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant