Skip to content

Support OpenAPI one-operation-per-page mode#4314

Merged
nolannbiron merged 8 commits into
mainfrom
nolann/rnd-11298-support-for-openapi-one-operation-per-page-in-gbo
Jun 19, 2026
Merged

Support OpenAPI one-operation-per-page mode#4314
nolannbiron merged 8 commits into
mainfrom
nolann/rnd-11298-support-for-openapi-one-operation-per-page-in-gbo

Conversation

@nolannbiron

@nolannbiron nolannbiron commented Jun 16, 2026

Copy link
Copy Markdown
Member
  • Render operation pages headlessly: the OpenAPI block omits its own title/description so the page renders them instead (new headless flag plumbed through the block context)
  • Show an HTTP method badge next to operation links in the sidebar ToC, with deprecated operations struck through
  • Add getOpenAPIOperationPageProps to read method/deprecated from a page's computed OpenAPI source, and formatOpenAPIMethod for badge labels

Demo:

CleanShot 2026-06-16 at 13 43 49@2x

@linear-code

linear-code Bot commented Jun 16, 2026

Copy link
Copy Markdown

RND-11298

@changeset-bot

changeset-bot Bot commented Jun 16, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: cd56056

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@gitbook/react-openapi Patch
gitbook Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@nolannbiron nolannbiron force-pushed the nolann/rnd-11298-support-for-openapi-one-operation-per-page-in-gbo branch from 5fc4d1b to 24ab387 Compare June 16, 2026 11:36
@argos-ci

argos-ci Bot commented Jun 16, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Argos notifications ↗︎

Build Status Details Updated (UTC)
customers-v2-cloudflare (Inspect) 👍 Changes approved 4 changed Jun 19, 2026, 8:26 AM
customers-v2-vercel (Inspect) 👍 Changes approved 4 changed Jun 19, 2026, 8:26 AM
v2-cloudflare (Inspect) 👍 Changes approved 6 changed Jun 19, 2026, 8:31 AM
v2-vercel (Inspect) 👍 Changes approved 6 changed Jun 19, 2026, 8:30 AM

Comment thread packages/gitbook/src/components/DocumentView/OpenAPI/style.css
@nolannbiron nolannbiron merged commit f4469b2 into main Jun 19, 2026
17 checks passed
@nolannbiron nolannbiron deleted the nolann/rnd-11298-support-for-openapi-one-operation-per-page-in-gbo branch June 19, 2026 08:35
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.

2 participants