@redpanda-data/docs-extensions-and-macros 3.6.1 → 3.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -153,7 +153,8 @@ module.exports.register = function (registry, context) {
|
|
|
153
153
|
self.positionalAttributes(['type']);
|
|
154
154
|
self.process((parent, target, attrs) => {
|
|
155
155
|
const type = attrs.type;
|
|
156
|
-
const categoriesData = context.config?.attributes?.connectCategoriesData ||
|
|
156
|
+
const categoriesData = context.config?.attributes?.connectCategoriesData || null
|
|
157
|
+
if (!categoriesData) return console.error (`Category data is not available for ${parent.getDocument().getAttributes()['page-relative-src-path']}. Make sure your playbook includes the generate-rp-connect-categories extension.`)
|
|
157
158
|
const categories = categoriesData[type] || null;
|
|
158
159
|
const currentTabsId = `tabs-${tabsCounter++}`; // Unique ID for this set of tabs
|
|
159
160
|
if (!categories) return
|
|
@@ -206,8 +207,9 @@ module.exports.register = function (registry, context) {
|
|
|
206
207
|
const self = this;
|
|
207
208
|
self.named('component_table');
|
|
208
209
|
self.process((parent, target, attrs) => {
|
|
209
|
-
const isCloud =
|
|
210
|
-
const csvData = context.config?.attributes?.csvData ||
|
|
210
|
+
const isCloud = parent.getDocument().getAttributes()['env-cloud'] !== undefined;
|
|
211
|
+
const csvData = context.config?.attributes?.csvData || null;
|
|
212
|
+
if (!csvData) return console.error(`CSV data is not available for ${parent.getDocument().getAttributes()['page-relative-src-path']}. Make sure your playbook includes the generate-rp-connect-info extension.`)
|
|
211
213
|
const types = new Set();
|
|
212
214
|
const uniqueSupportLevel = new Set();
|
|
213
215
|
|
|
@@ -318,7 +320,8 @@ module.exports.register = function (registry, context) {
|
|
|
318
320
|
return self.createBlock(parent, 'pass', '');
|
|
319
321
|
}
|
|
320
322
|
|
|
321
|
-
const csvData = context.config?.attributes?.csvData ||
|
|
323
|
+
const csvData = context.config?.attributes?.csvData || null;
|
|
324
|
+
if (!csvData) return console.error(`CSV data is not available for ${attributes['page-relative-src-path']}. Make sure your playbook includes the generate-rp-connect-info extension.`)
|
|
322
325
|
const componentRows = csvData.data.filter(row => row.connector.trim().toLowerCase() === name.trim().toLowerCase());
|
|
323
326
|
|
|
324
327
|
if (componentRows.length === 0) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@redpanda-data/docs-extensions-and-macros",
|
|
3
|
-
"version": "3.6.
|
|
3
|
+
"version": "3.6.2",
|
|
4
4
|
"description": "Antora extensions and macros developed for Redpanda documentation.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"antora",
|
|
@@ -58,6 +58,7 @@
|
|
|
58
58
|
"url": "git+https://github.com/redpanda-data/docs-extensions-and-macros"
|
|
59
59
|
},
|
|
60
60
|
"dependencies": {
|
|
61
|
+
"@asciidoctor/tabs": "^1.0.0-beta.6",
|
|
61
62
|
"@octokit/core": "^6.1.2",
|
|
62
63
|
"@octokit/plugin-retry": "^7.1.1",
|
|
63
64
|
"@octokit/rest": "^21.0.1",
|