Change dumper to dump to markdown-ish files

This commit is contained in:
Lucas Nicodemus 2022-10-18 23:11:38 -07:00
parent 78087d1dc9
commit fa9717debf
No known key found for this signature in database
4 changed files with 15 additions and 227 deletions

View file

@ -101,14 +101,14 @@ namespace TShockAPI.Configuration
var def = field.GetValue(defaults);
sb.AppendLine("{0} ".SFormat(name));
sb.AppendLine("Type: {0} ".SFormat(type));
sb.AppendLine("Description: {0} ".SFormat(desc));
sb.AppendLine("Default: \"{0}\" ".SFormat(def));
sb.AppendLine("## {0} ".SFormat(name));
sb.AppendLine("{0}".SFormat(desc));
sb.AppendLine("* *Field type*: `{0}`".SFormat(type));
sb.AppendLine("* *Default*: `{0}`".SFormat(def));
sb.AppendLine();
}
File.WriteAllText("ServerSideConfigDescriptions.txt", sb.ToString());
File.WriteAllText("docs/ssc-config.md", sb.ToString());
}
}
}