diff --git a/OpenRA.Mods.Common/UtilityCommands/ExtractLuaDocsCommand.cs b/OpenRA.Mods.Common/UtilityCommands/ExtractLuaDocsCommand.cs index 3a9130485a..79d8b153c2 100644 --- a/OpenRA.Mods.Common/UtilityCommands/ExtractLuaDocsCommand.cs +++ b/OpenRA.Mods.Common/UtilityCommands/ExtractLuaDocsCommand.cs @@ -62,14 +62,15 @@ namespace OpenRA.Mods.Common.UtilityCommands var tables = utility.ModData.ObjectCreator.GetTypesImplementing() .OrderBy(t => t.Name); - Console.WriteLine("

Global Tables

"); + Console.WriteLine("### Global Tables"); foreach (var t in tables) { var name = t.GetCustomAttributes(true).First().Name; var members = ScriptMemberWrapper.WrappableMembers(t); - Console.WriteLine("", name); + Console.WriteLine("#### " + name); + Console.WriteLine("
{0}
"); foreach (var m in members.OrderBy(m => m.Name)) { var desc = m.HasAttribute() ? m.GetCustomAttributes(true).First().Lines.JoinWith("\n") : ""; @@ -79,7 +80,7 @@ namespace OpenRA.Mods.Common.UtilityCommands Console.WriteLine("
"); } - Console.WriteLine("

Actor Properties / Commands

"); + Console.WriteLine("### Actor Properties / Commands"); var actorCategories = utility.ModData.ObjectCreator.GetTypesImplementing().SelectMany(cg => { @@ -92,7 +93,8 @@ namespace OpenRA.Mods.Common.UtilityCommands foreach (var kv in actorCategories) { - Console.WriteLine("", kv.Key); + Console.WriteLine("#### " + kv.Key); + Console.WriteLine("
{0}
"); foreach (var property in kv.OrderBy(p => p.Item2.Name)) { @@ -124,7 +126,7 @@ namespace OpenRA.Mods.Common.UtilityCommands Console.WriteLine("
"); } - Console.WriteLine("

Player Properties / Commands

"); + Console.WriteLine("### Player Properties / Commands"); var playerCategories = utility.ModData.ObjectCreator.GetTypesImplementing().SelectMany(cg => {