You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
.description('Generate JSON and AsciiDoc documentation for Redpanda configuration properties. By default, only extracts properties to JSON. Use --generate-partials to create consolidated AsciiDoc partials (including deprecated properties). Use --generate-pages to create complete property pages that include the partials using AsciiDoc includes.')
1034
+
.command('property-docs')
1035
+
.description(
1036
+
'Generate JSON and consolidated AsciiDoc partials for Redpanda configuration properties. '+
1037
+
'By default, only extracts properties to JSON. Use --generate-partials to create consolidated '+
.option('--tag <tag>','Git tag or branch to extract from','dev')
1037
1041
.option('--diff <oldTag>','Also diff autogenerated properties from <oldTag> to <tag>')
1038
1042
.option('--overrides <path>','Optional JSON file with property description overrides')
1039
1043
.option('--output-dir <dir>','Where to write all generated files','modules/reference')
1040
1044
.option('--cloud-support','Add AsciiDoc tags to generated property docs to indicate which ones are supported in Redpanda Cloud. This data is fetched from the cloudv2 repository so requires a GitHub token with repo permissions. Set the token as an environment variable using GITHUB_TOKEN, GH_TOKEN, or REDPANDA_GITHUB_TOKEN')
1041
-
.option('--template-property-page <path>','Custom Handlebars template for property page layout')
1042
1045
.option('--template-property <path>','Custom Handlebars template for individual property sections')
1043
1046
.option('--template-topic-property <path>','Custom Handlebars template for individual topic property sections')
1047
+
.option('--template-topic-property-mappings <path>','Custom Handlebars template for topic property mappings table')
1044
1048
.option('--template-deprecated <path>','Custom Handlebars template for deprecated properties page')
1045
1049
.option('--template-deprecated-property <path>','Custom Handlebars template for individual deprecated property sections')
1046
1050
.option('--generate-partials','Generate consolidated property partials (cluster-properties.adoc, topic-properties.adoc, etc.) in the partials directory')
1047
1051
.option('--partials-dir <path>','Directory for property partials (relative to output-dir)','partials')
1048
-
.option('--generate-pages','Generate complete property pages that include the partials using AsciiDoc includes')
1049
-
.action((options)=>{
1050
-
verifyPropertyDependencies();
1052
+
.action((options)=>{
1053
+
verifyPropertyDependencies();
1051
1054
1052
1055
// Validate cloud support dependencies if requested
1053
1056
if(options.cloudSupport){
1054
1057
console.log('🔍 Validating cloud support dependencies...');
1055
-
1058
+
1056
1059
// Check for GITHUB_TOKEN, GH_TOKEN, or REDPANDA_GITHUB_TOKEN
0 commit comments