Change dumper to dump to markdown-ish files
This commit is contained in:
parent
78087d1dc9
commit
fa9717debf
4 changed files with 15 additions and 227 deletions
|
|
@ -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());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue