Skip to content

fix API reference formatting#609

Open
maciaszczykm wants to merge 2 commits into
mainfrom
marcin/prod-4752-fix-api-reference-formatting
Open

fix API reference formatting#609
maciaszczykm wants to merge 2 commits into
mainfrom
marcin/prod-4752-fix-api-reference-formatting

Conversation

@maciaszczykm

Copy link
Copy Markdown
Member
Zrzut ekranu 2026-06-11 o 13 23 51

Plural Flow: docs
Plural Preview: docs

@maciaszczykm maciaszczykm requested a review from a team as a code owner June 11, 2026 11:25

@plural-copilot plural-copilot 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.

✅ Deploy preview for docs-pr-609 is ready!

Name Details
⚡ Service docs-pr-609 (5 / 5 ready)
☁️ Cluster plural (eks)
:octocat: Commit sha 1d75764
Plural URL https://console.mgmt.plural.sh/cd/clusters/446acdef-8524-425a-a49f-5336a...
🔍 Logs URL https://console.mgmt.plural.sh/cd/clusters/446acdef-8524-425a-a49f-5336a...
🌊 Flow URL https://console.mgmt.plural.sh/flows/08a17af1-8578-449e-9ae1-28ccd97eafc...
Preview Link Preview

You can learn more about preview environments and Plural Flows here

@linear

linear Bot commented Jun 11, 2026

Copy link
Copy Markdown

PROD-4752

@greptile-apps

greptile-apps Bot commented Jun 11, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

This PR fixes a layout alignment issue in the REST API Reference page by introducing a RestSideNavContainer that overrides the marginRight: 'auto' behavior inherited from SideNavContainer. The regular doc layout uses that auto margin to center content alongside a right-hand TOC column, but the REST API page has no TOC, so the margin was causing the sidebar to push the content area off-center.

  • src/components/RestApiReference/index.tsx: Adds a narrow styled(SideNavContainer) override that resets marginRight to 0 at the twoColumn breakpoint, fixing the alignment without touching the shared SideNavContainer used by the rest of the site.
  • generated/routes.json: Automated lastmod timestamp updates only; no logic changes.

Confidence Score: 5/5

Safe to merge — the component change is minimal, well-scoped, and only affects the REST API Reference page layout.

The styled-component override is narrow: it touches exactly one CSS property on one breakpoint for one page, and the comment clearly explains why. The base SideNavContainer used by the rest of the site is untouched. The routes.json changes are auto-generated timestamps with no behavioural impact.

No files require special attention.

Important Files Changed

Filename Overview
src/components/RestApiReference/index.tsx Introduces RestSideNavContainer to override marginRight on the two-column breakpoint, fixing the REST API sidebar alignment; clean, well-scoped, and well-commented change.
generated/routes.json Auto-generated lastmod timestamp updates only; no logic or structural changes.

Reviews (1): Last reviewed commit: "fix API reference formatting" | Re-trigger Greptile

@maciaszczykm maciaszczykm added the fixes For typos or simple fixes. label Jun 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fixes For typos or simple fixes.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant