-
-
- #### {moduleName}
-
-
-
+ ### {moduleName}
""");
@@ -107,10 +101,32 @@ private static void WriteMarkdown(StreamWriter file, Type configType)
var description = itemAttr.Description.Replace("\n", "\n ").TrimEnd(' ');
- file.Write($"""
- - **`--{moduleName}.{prop.Name} `** `NETHERMIND_{moduleName.ToUpperInvariant()}CONFIG_{prop.Name.ToUpperInvariant()}`
-
- {description}
+ file.Write($$"""
+ - #### `{{moduleName}}.{{prop.Name}}` \{#{{moduleName.ToLowerInvariant()}}-{{prop.Name.ToLowerInvariant()}}\}
+
+
+
+ ```
+ --{{moduleName}}.{{prop.Name}}
+ ```
+
+
+ ```
+ NETHERMIND_{{moduleName.ToUpperInvariant()}}CONFIG_{{prop.Name.ToUpperInvariant()}}=
+ ```
+
+
+ ```json
+ {
+ "{{moduleName}}": {
+ "{{prop.Name}}":
+ }
+ }
+ ```
+
+
+
+ {{description}}
""");
var startsFromNewLine = WriteAllowedValues(file, prop.PropertyType) || description.EndsWith('\n');
@@ -121,11 +137,7 @@ private static void WriteMarkdown(StreamWriter file, Type configType)
file.WriteLine();
}
- file.WriteLine("""
-
-
-
- """);
+ file.WriteLine();
}
private static bool WriteAllowedValues(StreamWriter file, Type type)
diff --git a/tools/docgen/DBSizeGenerator.cs b/tools/DocGen/DBSizeGenerator.cs
similarity index 78%
rename from tools/docgen/DBSizeGenerator.cs
rename to tools/DocGen/DBSizeGenerator.cs
index 761cad555ea..f78ce87ae20 100644
--- a/tools/docgen/DBSizeGenerator.cs
+++ b/tools/DocGen/DBSizeGenerator.cs
@@ -8,7 +8,6 @@ namespace Nethermind.DocGen;
internal static class DBSizeGenerator
{
- private const string _chainSizesDir = "chainSizes";
private const string _startMark = "";
private const string _endMark = "";
@@ -23,7 +22,7 @@ internal static class DBSizeGenerator
"blobTransactions"
];
- internal static void Generate(string path)
+ internal static void Generate(string docsPath, string? dbSizeSourcePath)
{
IList