@redpanda-data/docs-extensions-and-macros 4.10.4 → 4.10.5

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@redpanda-data/docs-extensions-and-macros",
3
- "version": "4.10.4",
3
+ "version": "4.10.5",
4
4
  "description": "Antora extensions and macros developed for Redpanda documentation.",
5
5
  "keywords": [
6
6
  "antora",
@@ -1,3 +1,4 @@
1
+ const AUTOGEN_NOTICE = '// This content is autogenerated. Do not edit manually. To override descriptions, use the doc-tools CLI with the --overrides option: https://redpandadata.atlassian.net/wiki/spaces/DOC/pages/1396244485/Review+Redpanda+configuration+properties\n';
1
2
  'use strict';
2
3
 
3
4
  const fs = require('fs');
@@ -144,7 +145,7 @@ function generatePropertyPartials(properties, partialsDir) {
144
145
  const selectedTemplate = type === 'topic' ? topicTemplate : propertyTemplate;
145
146
  const content = props.map(p => selectedTemplate(p)).join('\n');
146
147
  const filename = `${type}-properties.adoc`;
147
- fs.writeFileSync(path.join(propertiesPartialsDir, filename), content, 'utf8');
148
+ fs.writeFileSync(path.join(propertiesPartialsDir, filename), AUTOGEN_NOTICE + content, 'utf8');
148
149
  console.log(`✅ Generated ${filename} (${props.length} properties)`);
149
150
  totalCount += props.length;
150
151
  });
@@ -183,7 +184,7 @@ function generateDeprecatedDocs(properties, outputDir) {
183
184
  : path.join(outputDir, 'partials', 'deprecated', 'deprecated-properties.adoc');
184
185
 
185
186
  fs.mkdirSync(path.dirname(outputPath), { recursive: true });
186
- fs.writeFileSync(outputPath, output, 'utf8');
187
+ fs.writeFileSync(outputPath, AUTOGEN_NOTICE + output, 'utf8');
187
188
  console.log(`✅ Generated ${outputPath}`);
188
189
  return deprecatedProperties.length;
189
190
  }
@@ -211,7 +212,7 @@ function generateTopicPropertyMappings(properties, partialsDir) {
211
212
  const hbs = handlebars.compile(hbsSource);
212
213
  const rendered = hbs({ topicProperties });
213
214
  const mappingsOut = path.join(partialsDir, 'topic-property-mappings.adoc');
214
- fs.writeFileSync(mappingsOut, rendered, 'utf8');
215
+ fs.writeFileSync(mappingsOut, AUTOGEN_NOTICE + rendered, 'utf8');
215
216
  console.log(`✅ Generated ${mappingsOut}`);
216
217
  return topicProperties.length;
217
218
  }
@@ -1,5 +1,5 @@
1
1
  {{#with examples}}
2
- // This content is autogenerated. Do not edit manually.
2
+ // This content is autogenerated. Do not edit manually. To override descriptions, use the doc-tools CLI with the --overrides option: https://redpandadata.atlassian.net/wiki/spaces/DOC/pages/1247543314/Generate+reference+docs+for+Redpanda+Connect
3
3
 
4
4
  == Examples
5
5