Skip to content

Conversation

@bandantonio
Copy link
Collaborator

@bandantonio bandantonio commented Aug 22, 2025

Related issue(s)
Fixes #4344

Summary by CodeRabbit

  • Documentation
    • Revamped AsyncAPI CLI installation guide with clear OS-specific steps for macOS, Linux, Windows, and other platforms.
    • Added npm-based installation instructions including how to install specific versions and Node.js 16+ requirement.
    • Converted the installation fragment to a reusable format and introduced collapsible sections for readability.
    • Updated tutorials to embed the new installation guide and simplify prerequisite wording.

@netlify
Copy link

netlify bot commented Aug 22, 2025

Deploy Preview for asyncapi-website ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 40a4634
🔍 Latest deploy log https://app.netlify.com/projects/asyncapi-website/deploys/68d406afd01b6000086a1e2a
😎 Deploy Preview https://deploy-preview-4351--asyncapi-website.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Aug 22, 2025

Walkthrough

Replaces the CLI installation fragment from Markdown to MDX, deletes the old Markdown fragment, and updates the tutorial to import and render the new MDX component. The tutorial also restructures the installation section by removing a Remember block and adding a Prerequisites header with updated Node.js text.

Changes

Cohort / File(s) Summary
CLI installation fragment (MDX migration)
assets/docs/fragments/cli-installation.mdx, assets/docs/fragments/cli-installation.md
Adds cli-installation.mdx with OS-specific collapsible installation instructions and npm instructions (Node.js 16+); removes the legacy cli-installation.md.
Tutorial import & structure update
markdown/docs/tutorials/generate-code.md
Imports the new MDX fragment (import CliInstallation from '@/assets/docs/fragments/cli-installation.mdx'), replaces the Remember block with a ### Prerequisites section, and renders the component as <CliInstallation />.

Sequence Diagram(s)

(omitted — changes are documentation-only and do not alter runtime control flow)

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Assessment against linked issues

Objective Addressed Explanation
Fix incorrect rendering of details/summary in CLI Installation by adjusting embedded fragment usage (#4344)
Improve structural consistency of the Installation section (#4344)

Suggested labels

ready-to-merge, 📑 docs, area/docs

Suggested reviewers

  • derberg
  • thulieblack
  • sambhavgupta0705
  • anshgoyalevil
  • asyncapi-bot-eve
  • Mayaleeeee

Poem

I hop through docs with nimble might,
From .md to .mdx—now the tabs look right.
Collapsible carrots hide the brew and dpkg,
Node notes gleam where prerequisites be.
Thump-thump! The guide now reads so bright.

Tip

🔌 Remote MCP (Model Context Protocol) integration is now available!

Pro plan users can now connect to remote MCP servers from the Integrations page. Connect with popular remote MCPs such as Notion and Linear to add more context to your reviews and chats.

✨ Finishing Touches
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment

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
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

CodeRabbit Commands (Invoked using PR/Issue comments)

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

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

Status, Documentation and Community

  • Visit our Status Page to check the current availability of CodeRabbit.
  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@codecov
Copy link

codecov bot commented Aug 22, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (78769a8) to head (40a4634).

Additional details and impacted files
@@            Coverage Diff            @@
##            master     #4351   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           22        22           
  Lines          778       778           
  Branches       144       144           
=========================================
  Hits           778       778           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@asyncapi-bot
Copy link
Contributor

asyncapi-bot commented Aug 22, 2025

⚡️ Lighthouse report for the changes in this PR:

Category Score
🔴 Performance 37
🟢 Accessibility 98
🟢 Best practices 92
🟢 SEO 100
🔴 PWA 33

Lighthouse ran on https://deploy-preview-4351--asyncapi-website.netlify.app/

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 2

🧹 Nitpick comments (2)
assets/docs/fragments/cli-installation.mdx (2)

29-34: Clarify Linux scope (Debian/Ubuntu) and suggest dependency note.

dpkg is the Debian package manager; the current copy implies generic Linux support. Consider scoping to Debian/Ubuntu (and derivatives) and adding a hint about resolving missing dependencies.

Proposed tweak:

-You can install in Linux via `dpkg`, a debian package manager:
+On Debian/Ubuntu and derivatives, install using `dpkg` (the Debian package manager):
 
 ```sh
 curl -OL https://github.com/asyncapi/cli/releases/latest/download/asyncapi.deb
 sudo dpkg -i asyncapi.deb
+# If dependencies are missing:
+# sudo apt-get -f install

---

`41-45`: **Minor Windows copy edits and consistency.**

Hyphenate bitness and avoid redundant wording.


```diff
-For Windows, install the appropriate installer and follow the default installation steps to complete the installation process.
+For Windows, download the appropriate installer and follow the default steps.
 
-- For 64-bit, download the [asyncapi.x64.exe](https://github.com/asyncapi/cli/releases/latest/download/asyncapi.x64.exe)
-- For 32-bit, download the [asyncapi.x86.exe](https://github.com/asyncapi/cli/releases/latest/download/asyncapi.x86.exe)
+- For 64‑bit, download [asyncapi.x64.exe](https://github.com/asyncapi/cli/releases/latest/download/asyncapi.x64.exe)
+- For 32‑bit, download [asyncapi.x86.exe](https://github.com/asyncapi/cli/releases/latest/download/asyncapi.x86.exe)
📜 Review details

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

💡 Knowledge Base configuration:

  • MCP integration is disabled by default for public repositories
  • Jira integration is disabled by default for public repositories
  • Linear integration is disabled by default for public repositories

You can enable these sources in your CodeRabbit configuration.

📥 Commits

Reviewing files that changed from the base of the PR and between de8f091 and 04ca3e5.

📒 Files selected for processing (3)
  • assets/docs/fragments/cli-installation.md (0 hunks)
  • assets/docs/fragments/cli-installation.mdx (1 hunks)
  • markdown/docs/tutorials/generate-code.md (1 hunks)
💤 Files with no reviewable changes (1)
  • assets/docs/fragments/cli-installation.md
🧰 Additional context used
🪛 LanguageTool
assets/docs/fragments/cli-installation.mdx

[grammar] ~9-~9: There might be a mistake here.
Context: ...MacOS via brew: brew install asyncapi. - Using pkg: Each release of CLI produ...

(QB_NEW_EN)


[grammar] ~11-~11: There might be a mistake here.
Context: ... that enables you to install this CLI as MacOS application. ```sh # Downloa...

(QB_NEW_EN)

⏰ Context from checks skipped due to timeout of 180000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (5)
  • GitHub Check: Redirect rules - asyncapi-website
  • GitHub Check: Header rules - asyncapi-website
  • GitHub Check: Pages changed - asyncapi-website
  • GitHub Check: Lighthouse CI
  • GitHub Check: Test NodeJS PR - windows-latest
🔇 Additional comments (2)
assets/docs/fragments/cli-installation.mdx (2)

3-6: Good call using MDX for details/summary rendering.

Wrapping OS-specific sections in native HTML <details>/<summary> within an MDX fragment should resolve the embedding/rendering issue reported in #4344. The structure is clear and will be reusable across pages.

Also applies to: 24-26, 48-53


7-12: Polish macOS section wording and casing

The macOS section has been updated for Apple’s preferred casing and clearer wording. The Homebrew formula is correctly available via brew install asyncapi (no tap required).

• File: assets/docs/fragments/cli-installation.mdx (lines 7–12)

-<summary>MacOS</summary>
+<summary>macOS</summary>

-- **Using `brew`**: You can install in MacOS via brew: `brew install asyncapi`.
+- **Using Homebrew**: On macOS, install via Homebrew: `brew install asyncapi`.

-- **Using `pkg`**: Each release of CLI produces a MacOS dedicated pkg file that enables you to
-  install this CLI as MacOS application.
+- **Using the .pkg installer**: Each CLI release provides a dedicated macOS `.pkg` installer that lets you
+  install the CLI as a macOS application.

Comment on lines 58 to 61
You can install the [AsyncAPI CLI](https://github.com/asyncapi/cli#installation) with Node.js 10 or higher and [npm](https://nodejs.org/en/download/package-manager/).

> **The AsyncAPI CLI v3.4.0 (released August 22, 2025) requires Node.js 16 or higher**
Copy link
Contributor

Choose a reason for hiding this comment

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

💡 Verification agent

🧩 Analysis chain

Fix contradictory Node.js version requirements (10+ vs 16+).

Line 58 states “Node.js 10 or higher,” but line 60 says v3.4.0 requires Node.js 16+. This will confuse users and can lead to installation failures. Align on a single minimum version (very likely 16+) across this fragment and the tutorial that imports it.

Apply this diff to align the requirements within this fragment (adjust if verification shows a different minimum):

-You can install the [AsyncAPI CLI](https://github.com/asyncapi/cli#installation) with Node.js 10 or higher and [npm](https://nodejs.org/en/download/package-manager/).
+You can install the [AsyncAPI CLI](https://github.com/asyncapi/cli#installation) with Node.js 16 or higher and [npm](https://nodejs.org/en/download/package-manager/).

Optionally, avoid hardcoding a specific release/date in the callout to reduce future drift:

-> **The AsyncAPI CLI v3.4.0 (released August 22, 2025) requires Node.js 16 or higher**
+> As of the latest releases, the AsyncAPI CLI requires Node.js 16 or higher.

Please verify the exact minimum Node.js version in the CLI repo (engines field / release notes) and update both this fragment and the tutorial accordingly. If helpful, use these queries:


🌐 Web query:

What is the minimum Node.js version required by AsyncAPI CLI v3.4.0? Verify via the official AsyncAPI CLI repo or release notes.

💡 Result:

The minimum Node.js version required by AsyncAPI CLI v3.4.0 is Node.js 16 or higher. This requirement is specified in the official AsyncAPI CLI installation guide, which states: “To use the AsyncAPI CLI tool, you must install NPM and Node.js version 16 or higher”[3]. This documentation is current as of January 2025, and applies to all 3.x releases including v3.4.0, unless a breaking change is mentioned in the release notes (none are noted for a higher requirement).

Additionally, the AsyncAPI Generator library (a core dependency) requires Node.js v18.12.0+ only from version 2.x onwards[1][4], but the official CLI guidance for v3.4.0 remains at Node.js 16+, as confirmed by the [package documentation and installation guides][3][1].

Summary of requirements for AsyncAPI CLI v3.4.0:

  • Node.js: version 16 or higher[3]
  • npm: no explicit minimum version specified for CLI itself, but the generator library recommends npm v8.19.0 or higher[1]

No evidence from the official CLI repository or release notes indicates a higher Node.js minimum for CLI v3.4.0 as of August 2025.

Citations:


Align Node.js requirement to 16+

We’ve confirmed that AsyncAPI CLI v3.4.0 requires Node.js 16 or higher. Update the fragment (and any tutorials importing it) to avoid confusion and installation failures.

• File: assets/docs/fragments/cli-installation.mdx
• Lines: 58–61

Apply this diff:

-You can install the [AsyncAPI CLI](https://github.com/asyncapi/cli#installation) with Node.js 10 or higher and [npm](https://nodejs.org/en/download/package-manager/).
+You can install the [AsyncAPI CLI](https://github.com/asyncapi/cli#installation) with Node.js 16 or higher and [npm](https://nodejs.org/en/download/package-manager/).

-> As of the latest releases, the AsyncAPI CLI requires Node.js 16 or higher.

Also ensure the tutorial that pulls in this fragment reflects the same minimum.

📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
You can install the [AsyncAPI CLI](https://github.com/asyncapi/cli#installation) with Node.js 10 or higher and [npm](https://nodejs.org/en/download/package-manager/).
> **The AsyncAPI CLI v3.4.0 (released August 22, 2025) requires Node.js 16 or higher**
You can install the [AsyncAPI CLI](https://github.com/asyncapi/cli#installation) with Node.js 16 or higher and [npm](https://nodejs.org/en/download/package-manager/).
As of the latest releases, the AsyncAPI CLI requires Node.js 16 or higher.
> **The AsyncAPI CLI v3.4.0 (released August 22, 2025) requires Node.js 16 or higher**
🤖 Prompt for AI Agents
In assets/docs/fragments/cli-installation.mdx around lines 58 to 61, the Node.js
requirement still says "Node.js 10 or higher" while AsyncAPI CLI v3.4.0 requires
Node.js 16+. Update the fragment text to state Node.js 16 or higher (and any
associated npm requirement if needed), replace the highlighted note to reflect
the v3.4.0 requirement, and then search for any tutorials or docs that import
this fragment and update those pages to reference the same minimum Node.js 16+
requirement to keep all documentation consistent.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

♻️ Duplicate comments (2)
markdown/docs/tutorials/generate-code.md (2)

6-6: Import placement looks good and keeps MDX stable.

Having the MDX import right after frontmatter is consistent with common conventions and avoids tooling edge cases.


28-31: Prerequisites updated to Node.js 16+. LGTM.

This aligns with the fragment and prevents installation failures on Node 10/12/14.

🧹 Nitpick comments (5)
assets/docs/fragments/cli-installation.mdx (5)

7-12: Fix platform naming and tighten macOS wording.

Use the canonical “macOS” casing and simplify phrasing around the .pkg installer.

-<summary>MacOS</summary>
+<summary>macOS</summary>

-- **Using `brew`**: You can install in MacOS via brew: `brew install asyncapi`.
-- **Using `pkg`**: Each release of CLI produces a MacOS dedicated pkg file that enables you to
-  install this CLI as MacOS application.
+- **Using Homebrew**: Install on macOS with: `brew install asyncapi`.
+- **Using a .pkg installer**: Each release provides a dedicated macOS .pkg installer you can use to
+  install the CLI as a macOS application.

29-34: Scope Linux instructions to Debian/Ubuntu-based distros.

dpkg targets Debian-family systems; make that explicit to avoid misleading other distro users.

-You can install in Linux via `dpkg`, a debian package manager:
+On Debian/Ubuntu-based distributions, install via `dpkg`:

13-22: Consider adding a brief checksum verification note for downloaded installers.

Optional but recommended: after the curl commands, suggest verifying file integrity (for example, via a published SHA256 on the release page). Keeps users safer without changing flow.

If you want, I can draft a short “Verify download integrity” callout once you confirm whether the releases publish checksums for .pkg and .deb.

Also applies to: 31-34


1-1: Remove fragment-level title and promote the npm section to keep heading hierarchy clean under the host page.

The host page already has “Installation guide” and “Prerequisites.” Dropping this extra H3 avoids a redundant “CLI Installation” heading; promoting “Using npm and Node.js” aligns levels.

-### CLI Installation
+<!-- (intentionally left without a top-level heading; the host page provides it) -->
@@
-#### Using npm and Node.js
+### Using npm and Node.js

Also applies to: 56-56


48-53: Optional: Prefer linking to official docs over the GitHub README.

If there’s a canonical “CLI Installation” docs page, linking there reduces drift vs README anchors that can change.

📜 Review details

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

💡 Knowledge Base configuration:

  • MCP integration is disabled by default for public repositories
  • Jira integration is disabled by default for public repositories
  • Linear integration is disabled by default for public repositories

You can enable these sources in your CodeRabbit configuration.

📥 Commits

Reviewing files that changed from the base of the PR and between 04ca3e5 and 323d379.

📒 Files selected for processing (2)
  • assets/docs/fragments/cli-installation.mdx (1 hunks)
  • markdown/docs/tutorials/generate-code.md (2 hunks)
🧰 Additional context used
🪛 LanguageTool
assets/docs/fragments/cli-installation.mdx

[grammar] ~9-~9: There might be a mistake here.
Context: ...MacOS via brew: brew install asyncapi. - Using pkg: Each release of CLI produ...

(QB_NEW_EN)


[grammar] ~11-~11: There might be a mistake here.
Context: ... that enables you to install this CLI as MacOS application. ```sh # Downloa...

(QB_NEW_EN)

⏰ Context from checks skipped due to timeout of 180000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (4)
  • GitHub Check: Redirect rules - asyncapi-website
  • GitHub Check: Header rules - asyncapi-website
  • GitHub Check: Pages changed - asyncapi-website
  • GitHub Check: Test NodeJS PR - windows-latest
🔇 Additional comments (3)
assets/docs/fragments/cli-installation.mdx (2)

3-54: Double-check that

/ render and toggle correctly inside .

Given the original bug, confirm the nested HTML works within the Remember component across themes and viewport sizes. If any styling/toggling issues appear, consider removing the Remember wrapper or moving the callout outside of the collapsible blocks.

Steps:

  • In the PR preview, expand/collapse each OS section; verify focus states and keyboard toggling via Space/Enter on the summary element.
  • Check mobile: ensure the hit area on the summary text is large enough and not obscured by the callout styling.

58-58: Node.js 16+ requirement aligned. LGTM.

This matches the current CLI docs and resolves the earlier 10+ vs 16+ inconsistency.

markdown/docs/tutorials/generate-code.md (1)

32-32: Verify the embedded renders collapsible sections correctly.

Since the fix hinges on embedding the MDX fragment, sanity-check the PR preview:

  • Ensure all details/summary sections toggle as expected and inherit page typography.
  • Inspect heading hierarchy: “Installation guide” (H2) → “Prerequisites” (H3) → fragment sections (ideally H3 after applying the heading tweak) → commands/code blocks.
  • Keyboard/a11y: summary elements should be focusable and operable via keyboard.
    If any issues show up, I can adjust the fragment headings or wrapper components accordingly.

@thulieblack
Copy link
Member

/ptal

@asyncapi-bot
Copy link
Contributor

@derberg @thulieblack @akshatnema @sambhavgupta0705 @anshgoyalevil @Mayaleeeee @TRohit20 Please take a look at this PR. Thanks! 👋

@sambhavgupta0705
Copy link
Member

@TRohit20 can you please take a look

@thulieblack
Copy link
Member

@Shurtu-gal can you review this please from technical side of things

@Shurtu-gal
Copy link
Contributor

Hey @thulieblack, before I review this I would like to know if we should still have code-generation using glee still there in website?

Glee has been archived and plans are to remove glee related stuff from CLI as well: asyncapi/cli#1843

@thulieblack
Copy link
Member

@sambhavgupta0705 @derberg do we? As far as I kno we are removing all glee related docs from website @Shurtu-gal

Copy link
Member

derberg commented Oct 13, 2025

anything Glee related should be removed from docs/website/wherever

@Shurtu-gal
Copy link
Contributor

Then this PR should be closed ideally.

@bandantonio
Copy link
Collaborator Author

@Shurtu-gal This PR has nothing to do with Glee. What's the point of closing it?

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.

[Docs Bug 🐞 report]: incorrect rendering of the details > summary elements embedded from the fragment

6 participants