Skip to content

Commit 014729d

Browse files
Fix Redpanda Connect cloud-only connector automation (#163)
* Fix Redpanda Connect cloud-only connector automation * docs: Auto-update CLI reference documentation (PR #163) --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent d508242 commit 014729d

17 files changed

+207
-35
lines changed

CLI_REFERENCE.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1074,7 +1074,7 @@ Branch name for in-progress content
10741074
Repository URL (default: "https://github.com/redpanda-data/redpanda.git")
10751075

10761076
`-s, --surface <surface>`::
1077-
Which API surface(s) to bundle (choices: "admin", "connect", "both")
1077+
Which API surfaces to bundle (choices: "admin", "connect", "both")
10781078

10791079
`--out-admin <path>`::
10801080
Output path for admin API (default: "admin/redpanda-admin-api.yaml")

__tests__/tools/cgo-detection.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@ async function runTests() {
393393
results.tests.filter(t => !t.passed).forEach(t => {
394394
console.error(` - ${t.name}: ${t.details}`);
395395
});
396-
throw new Error(`${results.failed} test(s) failed`);
396+
throw new Error(`${results.failed} tests failed`);
397397
}
398398

399399
console.log('✅ All tests passed!\n');

bin/doc-tools-mcp.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ const tools = [
362362
},
363363
surface: {
364364
type: 'string',
365-
description: 'Which API surface(s) to bundle (optional, defaults to "both")',
365+
description: 'Which API surfaces to bundle (optional, defaults to "both")',
366366
enum: ['admin', 'connect', 'both']
367367
},
368368
out_admin: {

bin/doc-tools.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1630,7 +1630,7 @@ automation
16301630
.option('-t, --tag <tag>', 'Git tag for released content')
16311631
.option('-b, --branch <branch>', 'Branch name for in-progress content')
16321632
.option('--repo <url>', 'Repository URL', 'https://github.com/redpanda-data/redpanda.git')
1633-
.addOption(new Option('-s, --surface <surface>', 'Which API surface(s) to bundle').choices(['admin', 'connect', 'both']).makeOptionMandatory())
1633+
.addOption(new Option('-s, --surface <surface>', 'Which API surfaces to bundle').choices(['admin', 'connect', 'both']).makeOptionMandatory())
16341634
.option('--out-admin <path>', 'Output path for admin API', 'admin/redpanda-admin-api.yaml')
16351635
.option('--out-connect <path>', 'Output path for connect API', 'connect/redpanda-connect-api.yaml')
16361636
.option('--admin-major <string>', 'Admin API major version', 'v2.0.0')

bin/mcp-tools/generated-docs-review.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -306,10 +306,10 @@ function generateReviewReport(results, outputPath) {
306306
// Next steps
307307
report += `== Next Steps\n\n`;
308308
if (errorIssues.length > 0) {
309-
report += `. *Fix errors first* - Address the ${errorIssues.length} error(s) above\n`;
309+
report += `. *Fix errors first* - Address the ${errorIssues.length} errors above\n`;
310310
}
311311
if (warningIssues.length > 0) {
312-
report += `${errorIssues.length > 0 ? '. ' : '. '}*Review warnings* - Prioritize the ${warningIssues.length} warning(s)\n`;
312+
report += `${errorIssues.length > 0 ? '. ' : '. '}*Review warnings* - Prioritize the ${warningIssues.length} warnings\n`;
313313
}
314314
const step = errorIssues.length > 0 && warningIssues.length > 0 ? 3 : errorIssues.length > 0 || warningIssues.length > 0 ? 2 : 1;
315315
report += `${step > 1 ? '. ' : '. '}*Regenerate documentation* - After making changes, regenerate the docs\n`;

bin/mcp-tools/mcp-validation.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ function formatValidationResults(results, config) {
250250
lines.push('✓ Validation passed');
251251
} else {
252252
lines.push('✗ Validation failed');
253-
lines.push(` ${results.errors.length} error(s) must be fixed`);
253+
lines.push(` ${results.errors.length} errors must be fixed`);
254254
}
255255

256256
return lines.join('\n');

bin/mcp-tools/openapi.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const { getAntoraStructure } = require('./antora');
1616
* @param {string} [args.tag] - Git tag for released content (for example, "v24.3.2" or "24.3.2")
1717
* @param {string} [args.branch] - Branch name for in-progress content (for example, "dev", "main")
1818
* @param {string} [args.repo] - Repository URL
19-
* @param {string} [args.surface] - Which API surface(s) to bundle: 'admin', 'connect', or 'both'
19+
* @param {string} [args.surface] - Which API surfaces to bundle: 'admin', 'connect', or 'both'
2020
* @param {string} [args.out_admin] - Output path for admin API
2121
* @param {string} [args.out_connect] - Output path for connect API
2222
* @param {string} [args.admin_major] - Admin API major version
@@ -155,7 +155,7 @@ function generateBundleOpenApi(args) {
155155
surface,
156156
files_generated: filesGenerated,
157157
output: output.trim(),
158-
summary: `Bundled OpenAPI documentation for ${surface} API(s) at ${refType} ${version}`
158+
summary: `Bundled OpenAPI documentation for ${surface} APIs at ${refType} ${version}`
159159
};
160160
} catch (err) {
161161
return {

extensions/generate-rp-connect-categories.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@ module.exports.register = function ({ config }) {
7373
const status = attrs.status || extractAttribute(file, 'status')
7474
const driverSupport = attrs['driver-support'] || extractAttribute(file, 'driver-support')
7575
const cacheSupport = attrs['cache-support'] || extractAttribute(file, 'cache-support')
76-
// FIXED: Use correct attribute name (page-commercial-names, not commercial-names)
7776
const commercialNames = attrs['page-commercial-names'] || extractAttribute(file, 'page-commercial-names')
7877

7978
const pubUrl = file.pub.url

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@redpanda-data/docs-extensions-and-macros",
3-
"version": "4.13.2",
3+
"version": "4.13.3",
44
"description": "Antora extensions and macros developed for Redpanda documentation.",
55
"keywords": [
66
"antora",

0 commit comments

Comments
 (0)