@@ -39,21 +39,21 @@ public static String toAscidoc(ConfigDef configDef) {
39
39
40
40
protected static void getConfigKeyAsciiDoc (
41
41
ConfigDef configDef , ConfigDef .ConfigKey key , StringBuilder b ) {
42
- b .append ("[# " ).append (key .name ).append ("] " ).append ("\n " );
42
+ b .append ("`` " ).append (key .name ).append ("`` + " ).append ("\n " );
43
43
for (String docLine : key .documentation .split ("\n " )) {
44
44
if (docLine .length () == 0 ) {
45
45
continue ;
46
46
}
47
- b .append (docLine ).append ("\n + \n " );
47
+ b .append (docLine ).append ("\n \n " );
48
48
}
49
- b .append ("Type: " ).append (getConfigValue (key , "Type" )).append ("\n " );
49
+ b .append ("* Type: " ).append (getConfigValue (key , "Type" )).append ("\n " );
50
50
if (key .hasDefault ()) {
51
- b .append ("Default: " ).append (getConfigValue (key , "Default" )).append ("\n " );
51
+ b .append ("* Default: " ).append (getConfigValue (key , "Default" )).append ("\n " );
52
52
}
53
53
if (key .validator != null ) {
54
- b .append ("Valid Values: " ).append (getConfigValue (key , "Valid Values" )).append ("\n " );
54
+ b .append ("* Valid Values: " ).append (getConfigValue (key , "Valid Values" )).append ("\n " );
55
55
}
56
- b .append ("Importance: " ).append (getConfigValue (key , "Importance" )).append ("\n " );
56
+ b .append ("* Importance: " ).append (getConfigValue (key , "Importance" )).append ("\n " );
57
57
}
58
58
59
59
protected static String getConfigValue (ConfigDef .ConfigKey key , String headerName ) {
@@ -120,8 +120,7 @@ public static void generateConfigDefDoc(Path path, String name, String title, Co
120
120
throws IOException {
121
121
try (FileWriter fileWriter = new FileWriter (path .resolve (name ).toFile ())) {
122
122
PrintWriter pw = new PrintWriter (fileWriter );
123
- pw .append ("= " ).append (title ).append ("\n \n " );
124
- pw .append ("== Parameters" ).append ("\n \n " );
123
+ pw .append ("== " ).append (title ).append ("\n \n " );
125
124
pw .append (toAscidoc (configDef ));
126
125
pw .flush ();
127
126
}
0 commit comments