Skip to content

chore(docs): use bruno-api-docs as the generated API docs container id - #9863

Merged
arpit-bruno merged 2 commits into
usebruno:mainfrom
arpit-bruno:fix/api-docs-container-id
Nov 16, 2026
Merged

arpit-bruno merged 2 commits into
usebruno:mainfrom
arpit-bruno:fix/api-docs-container-id

Conversation

@arpit-bruno

@arpit-bruno arpit-bruno commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

Ref: BRU-4801

Generated API docs now mount into #bruno-api-docs instead of #opencollection-container.

Problem

#9640 moved generated docs to Bruno.apiDocs, but kept the old opencollection-container id, which still carries the old OpenCollection name.

Fix

Renamed the container id to bruno-api-docs, after the product name, in the shared HTML generator in bruno-common (used by both the app and the CLI): the CSS rule, the div and the Bruno.apiDocs call. The test is updated too. Older exported docs keep the old id and still render, since the renderer takes any element.

Contribution Checklist:

  • I've used AI significantly to create this pull request
  • The pull request only addresses one issue or adds one feature.
  • The pull request does not introduce any breaking changes
  • I have tested these changes locally and confirmed they work as expected.
  • I have added screenshots or gifs to help explain the change if applicable.
  • I have read the contribution guidelines.
  • Create an issue and link to the pull request.
  • I've run the claude code review skill locally.

Summary by CodeRabbit

  • Bug Fixes
    • API documentation now renders in its designated display area, helping ensure it appears as expected.
    • The update does not change the documentation content or available controls.

@coderabbitai

coderabbitai Bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The API documentation HTML template and CSS selector now use bruno-api-docs as the renderer mount element ID. The test expectation uses the same ID.

Changes

API Docs Mount

Layer / File(s) Summary
Update the renderer mount ID
packages/bruno-common/src/api-docs/index.ts, packages/bruno-common/src/api-docs/index.spec.ts
The HTML template and CSS selector use bruno-api-docs. The test expects the updated mount ID.

Estimated code review effort: 1 (Trivial) | ~3 minutes

Change: Other

Possibly related PRs

  • usebruno/bruno#9640: This PR changes the mount ID used by the API docs generator introduced in #9640.

Suggested reviewers: sachin-bruno

Merge Risk: Minimal · up to daa09

This renames the container ID in generated API docs HTML. The local template and its test agree, and no concrete failure was found. Merge risk is minimal.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title names the change: the generated API docs container id moves from opencollection-container to bruno-api-docs. The raw summary and objectives confirm the shared HTML generator in bruno-common …
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names the change: the generated API docs container id moves from opencollection-container to bruno-api-docs. The raw summary and objectives confirm the shared HTML generator in bruno-common changes the CSS rule, the div, and the Bruno.apiDocs call, and the test is updated to match. The title is short, specific, and matches the changeset. The chore(docs) prefix is a minor scope choice and does not affect the match.

Finishing Touches

Generate unit tests (beta)

  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

The docs find a new place to land
A mount ID set, precise and planned
The CSS points to the same display
The test confirms the change today
API docs now mount this way

Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between e43fe7f and daa094d.

Files selected for processing: 2

  • packages/bruno-common/src/api-docs/index.spec.ts
  • packages/bruno-common/src/api-docs/index.ts

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.

@arpit-bruno
arpit-bruno marked this pull request as ready for review November 15, 2026 23:00
@arpit-bruno
arpit-bruno requested a review from a team November 15, 2026 23:00
@arpit-bruno arpit-bruno changed the title chore(docs): use bruno-docs as the generated API docs container id chore(docs): use bruno-api-docs as the generated API docs container id Nov 16, 2026
@arpit-bruno
arpit-bruno merged commit 638fbcf into usebruno:main Nov 16, 2026
18 of 19 checks passed
aparna-bruno pushed a commit to aparna-bruno/bruno that referenced this pull request Nov 20, 2026
usebruno#9863)

* use bruno-docs as the generated api docs container id to match the framework integrations

* use bruno-api-docs as the container id, after the product name
sid-bruno pushed a commit that referenced this pull request Nov 24, 2026
#9863)

* use bruno-docs as the generated api docs container id to match the framework integrations

* use bruno-api-docs as the container id, after the product name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants