Skip to content

CDN docs url change - #8466

Merged
bijin-bruno merged 1 commit into
usebruno:mainfrom
sachin-bruno:sachin-bruno/docs-cdn-url-change
Jul 2, 2026
Merged

bijin-bruno merged 1 commit into
usebruno:mainfrom
sachin-bruno:sachin-bruno/docs-cdn-url-change

Conversation

@sachin-bruno

@sachin-bruno sachin-bruno commented Jul 2, 2026 •

Copy link
Copy Markdown
Contributor

Description

Problem
The standalone renderer will be served from cdn.usebruno.com/docs/index.js + index.css (using index under the /docs/ prefix rather than repeating the name as docs.js). Two source changes are needed to make the emitted asset and the consumer agree on the new naming.

Proposed Solution
opencollection / oc-docs — in vite.config.standalone.ts, change the standalone build output names:

UMD fileName: docs.js → index.js

CSS assetFileNames: docs.css → index.css

ES fileName: docs.esm.js → index.esm.js for consistency

bruno / bruno-app — in the Generate Documentation component:

CDN_BASE_URL: https://cdn.opencollection.com → https://cdn.usebruno.com

template refs: ${CDN_BASE_URL}/docs.css → ${CDN_BASE_URL}/docs/index.css, ${CDN_BASE_URL}/docs.js → ${CDN_BASE_URL}/docs/index.js

https://usebruno.atlassian.net/browse/BRU-3709

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 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.

Note: Keeping the PR small and focused helps make it easier to review and merge. If you have multiple changes you want to make, please consider submitting them as separate pull requests.

Publishing to New Package Managers

Please see here for more information.

Summary by CodeRabbit

  • Bug Fixes
    • Updated generated documentation pages to load assets from the new CDN location.
    • Standalone HTML documentation now uses the correct stylesheet and script paths, improving loading reliability.

@coderabbitai

coderabbitai Bot commented Jul 2, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: b71d3178-9f9d-4e2d-9f38-d4e6f0991128

📥 Commits

Reviewing files that changed from the base of the PR and between 408aef9 and afedd64.

📒 Files selected for processing (1)
  • packages/bruno-app/src/components/Sidebar/Collections/Collection/GenerateDocumentation/index.js

Walkthrough

Updates the CDN base URL used for generated standalone documentation HTML from cdn.opencollection.com to cdn.usebruno.com, and adjusts the generated <link>/<script> asset paths from docs.css/docs.js to docs/index.css/docs/index.js.

Changes

Documentation CDN URL update

Layer / File(s) Summary
CDN base URL and asset paths
packages/bruno-app/src/components/Sidebar/Collections/Collection/GenerateDocumentation/index.js
CDN_BASE_URL changed to https://cdn.usebruno.com, and generated HTML link/script tags updated to load docs/index.css and docs/index.js.

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

Possibly related PRs

  • usebruno/bruno#6583: Both PRs modify the same file's logic for building CDN asset URLs used to load OpenCollection assets in generated docs.
  • usebruno/bruno#6628: Both PRs change the external CDN asset URLs (CSS/JS paths/base) in the same generated HTML logic.

Suggested reviewers: bijin-bruno, lohit-bruno, helloanoop

Poem

A tiny hop from one CDN to another,
docs.css grows up, becomes docs/index.css, a bruno-branded brother.
Three lines changed, nothing more,
Rabbit nods approval at the door. 🐰📦

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly matches the main change: updating the CDN docs URL and asset paths.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
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.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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

Comment @coderabbitai help to get the list of available commands.

@sid-bruno sid-bruno left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

@bijin-bruno
bijin-bruno merged commit bf3abec into usebruno:main Jul 2, 2026
12 of 19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants