Skip to content

Commit

Permalink
DOC-725 Update rpcn macro to show all supported connectors (#83)
Browse files Browse the repository at this point in the history
* update rpcn macro to show all supported connectors

* updated package-lock.json
  • Loading branch information
asimms41 authored Nov 8, 2024
1 parent b3cf57d commit ac053cf
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
10 changes: 6 additions & 4 deletions macros/rp-connect-components.js
Original file line number Diff line number Diff line change
Expand Up @@ -389,13 +389,15 @@ module.exports.register = function (registry, context) {
supportLevelStr += `<p>${certifiedDrivers}${certifiedDrivers && communityDrivers ? '</br> ' : ''}${communityDrivers}</p>`;
}
}
// Build the cloud support column
// Build the cloud support column and include the connector URL where a connector page is available. Otherwise, just mark as available.
const firstCloudSupportedType = Array.from(types.entries())
.map(([_, commercialNames]) => Object.values(commercialNames).find(({ isCloudSupported }) => isCloudSupported))
.find(entry => entry && entry.urls.redpandaCloudUrl);
.find(entry => entry);
const cloudLinkDisplay = firstCloudSupportedType
? `<a href="${firstCloudSupportedType.urls.redpandaCloudUrl}">Yes</a>`
: 'No';
? firstCloudSupportedType.urls.redpandaCloudUrl
? `<a href="${firstCloudSupportedType.urls.redpandaCloudUrl}">Yes</a>`
: `Yes`
: 'No';

const firstUrl = getFirstUrlFromTypesArray(Array.from(types.entries()), isCloud);

Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@redpanda-data/docs-extensions-and-macros",
"version": "3.8.0",
"version": "3.9.0",
"description": "Antora extensions and macros developed for Redpanda documentation.",
"keywords": [
"antora",
Expand Down

0 comments on commit ac053cf

Please sign in to comment.