From 5d9e8b56c53465a29a77843914eb1f42f7b32fc6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Mail=C3=A4nder?= Date: Sat, 23 May 2020 13:57:08 +0200 Subject: [PATCH] Use fewer hard-coded HTML tags to improve mkdocs rendering. --- .../UtilityCommands/ExtractLuaDocsCommand.cs | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) 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 => {