Skip to content

docs: add models api page and cap sidebar width#20

Merged
charlesrhoward merged 3 commits intomainfrom
codex/api-models-sidebar-and-fluid-width
Apr 23, 2026
Merged

docs: add models api page and cap sidebar width#20
charlesrhoward merged 3 commits intomainfrom
codex/api-models-sidebar-and-fluid-width

Conversation

@charlesrhoward
Copy link
Copy Markdown
Contributor

Summary

  • add a first-class Models page under the web API docs sidebar
  • link the API overview and working-requests pages to the new standalone models route docs
  • change the desktop docs sidebar width to cap at 270px instead of forcing a fixed 270px width

Verification

  • pnpm lint
  • pnpm types:check
  • pnpm build

@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 23, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
mogplex-docs Ready Ready Preview, Comment Apr 23, 2026 2:48pm

Request Review

Copy link
Copy Markdown

@mogplex mogplex Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mogplex PR Review

Status: Attention needed

Pure documentation PR that adds a first-class Models API page, wires up cross-links across the web API docs, and relaxes the desktop sidebar width. No security, correctness, or architectural issues. Two minor documentation accuracy items worth addressing before merge.

2 findings were added inline.

View check run

Comment thread src/app/global.css Outdated
Comment thread content/docs/web/api/models.mdx
Copy link
Copy Markdown

@mogplex mogplex Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mogplex PR Review

Status: Attention needed

Documentation-only PR plus a minor CSS flex-width change. The overall quality is high — the new Models page is well-structured, cross-linking is consistent, and the min(270px, 35vw) CSS change behaves correctly. Two documentation clarity issues are worth fixing before this ships: an internally contradictory sentence in the CLI-format section, and a missing description of the unauthenticated response shape (the only example shown is for authenticated callers).

2 findings were added inline.

View check run

Comment thread content/docs/web/api/models.mdx Outdated
Comment thread content/docs/web/api/models.mdx
Copy link
Copy Markdown

@mogplex mogplex Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mogplex PR Review

Status: Attention needed

A clean docs + CSS PR. The new Models page is accurate, well-organized, and cross-linked correctly across four other files. One minor behavioral edge case in the CSS change and one small documentation inconsistency are worth a look, but neither blocks the merge.

2 findings were added inline.

View check run

Comment thread src/app/global.css
#nd-docs-layout {
/* Fumadocs switches from drawer to full sidebar at 768px. */
--fd-sidebar-width: 270px;
/* Fumadocs switches from drawer to full sidebar at 768px; prefer the normal 270px width and only shrink slightly on the narrowest desktop viewports. */
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggestion: Sidebar width at 768px breakpoint entry is 1–2px narrower than the previous fixed value

At exactly 768px viewport width (the min-width breakpoint), 35vw evaluates to ~268.8px — slightly less than the prior fixed 270px. The intent described in the PR is to cap at 270px and allow shrinking on narrow desktops, but the practical floor kicks in at the breakpoint itself, producing a marginally narrower sidebar on the narrowest desktop viewport.

If the goal is "never wider than 270px, never narrower than X on desktop", consider clamp(240px, 35vw, 270px) or simply keeping max-width: 270px in addition to the variable. If the ~1px difference is intentional, a brief comment to that effect would help future readers.

"provider": "provider",
"name": "Model B",
"is_available": true,
"is_enabled": false
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggestion: Unauthenticated response shape omits is_enabled without explanation

The authenticated catalog entry for model-a includes "is_enabled": true, but the unauthenticated excerpt for the same model omits is_enabled entirely. The prose says "without user auth, both catalog and models are the same visible available catalog" but does not call out that is_enabled is absent from unauthenticated responses.

Adding one sentence like "Unauthenticated responses omit is_enabled since there is no user context to evaluate preferences against" would pre-empt a common reader question.

@charlesrhoward charlesrhoward enabled auto-merge (squash) April 23, 2026 14:50
@charlesrhoward charlesrhoward merged commit 98fdcb7 into main Apr 23, 2026
6 checks passed
@charlesrhoward charlesrhoward deleted the codex/api-models-sidebar-and-fluid-width branch April 23, 2026 14:52
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