Repository navigation
chore(docs): use Bruno.apiDocs in generated API docs - #9640
Conversation
|
No actionable comments were generated in the recent review.
|
| Layer / File(s) | Summary |
|---|---|
Update generated HTML and validate output packages/bruno-common/src/api-docs/index.ts, packages/bruno-common/src/api-docs/index.spec.ts, packages/bruno-cli/tests/commands/docs/generate.spec.js |
The HTML builder emits the sanitized Git URL as repositoryUrl and initializes the renderer with Bruno.apiDocs. Tests check the new renderer call and URL property, including cases with no link and stripped credentials. |
Priority:
Estimated code review effort: 2 (Simple) | ~10 minutes
Change: Other
Suggested reviewers: sachin-bruno
Merge Risk: 
Minimal · up to 219a8
-
No actionable merge-blocking risk is established by the available repository evidence.
Pre-merge checks: 
5
-
Full details: Title check
-
Explanation
The title "chore(docs): use Bruno.apiDocs in generated API docs" matches the main change. The PR switches the generated API docs HTML from window.OpenCollection to Bruno.apiDocs, and renames the gitCollectionUrl option to repositoryUrl. The title names the primary change and the affected output. It omits the option rename, which is a secondary detail. The title is concise, specific, and free of filler. The "chore(docs)" prefix is a conventional-commit type, and it fits a change to generated docs output.
Full details: Docstring Coverage
-
Explanation
No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 3 files.
-
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.
Docs wake to a new call
Bruno.apiDocs takes the stage
repositoryUrl joins in
Tests follow the changed path
Clean output takes its bow
Comment @coderabbitai help to get the list of available commands.
Ref: BRU-4801
Docs generated from the Bruno app and from
bru docs generatenow load the docs usingBruno.apiDocsinstead of the oldwindow.OpenCollection.Problem
Bruno.apiDocsis now the documented way to load API docs, but every generated docs file still used the oldwindow.OpenCollection. So each new export kept spreading the old API.Fix
Updated the shared HTML generator in
bruno-common(used by both the app and the CLI) to callBruno.apiDocsand renamed the git link option in the generated HTML fromgitCollectionUrltorepositoryUrlto match the new API. Tests are updated too. The generated docs look exactly the same as before, and older exported docs keep working.Contribution Checklist:
Summary by CodeRabbit