Remove the table of content

which is auto-generated by mkdocs.
This commit is contained in:
Matthias Mailänder
2020-05-23 14:02:58 +02:00
committed by Paul Chote
parent 5d9e8b56c5
commit 7746dc55f0
2 changed files with 0 additions and 8 deletions

View File

@@ -41,7 +41,6 @@ namespace OpenRA.Mods.Common.UtilityCommands
"automatically generated for version {0} of OpenRA.", version);
Console.WriteLine();
var toc = new StringBuilder();
var doc = new StringBuilder();
var currentNamespace = "";
@@ -55,11 +54,9 @@ namespace OpenRA.Mods.Common.UtilityCommands
currentNamespace = t.Namespace;
doc.AppendLine();
doc.AppendLine("## {0}".F(currentNamespace));
toc.AppendLine("* [{0}](#{1})".F(currentNamespace, currentNamespace.Replace(".", "").ToLowerInvariant()));
}
var traitName = t.Name.EndsWith("Info") ? t.Name.Substring(0, t.Name.Length - 4) : t.Name;
toc.AppendLine(" * [{0}](#{1})".F(traitName, traitName.ToLowerInvariant()));
var traitDescLines = t.GetCustomAttributes<DescAttribute>(false).SelectMany(d => d.Lines);
doc.AppendLine();
doc.AppendLine("### {0}".F(traitName));
@@ -107,7 +104,6 @@ namespace OpenRA.Mods.Common.UtilityCommands
doc.AppendLine("</table>");
}
Console.Write(toc.ToString());
Console.Write(doc.ToString());
}

View File

@@ -43,7 +43,6 @@ namespace OpenRA.Mods.Common.UtilityCommands
"automatically generated for version {0} of OpenRA.", version);
Console.WriteLine();
var toc = new StringBuilder();
var doc = new StringBuilder();
var currentNamespace = "";
@@ -65,11 +64,9 @@ namespace OpenRA.Mods.Common.UtilityCommands
currentNamespace = t.Namespace;
doc.AppendLine();
doc.AppendLine("## {0}".F(currentNamespace));
toc.AppendLine("* [{0}](#{1})".F(currentNamespace, currentNamespace.Replace(".", "").ToLowerInvariant()));
}
var traitName = t.Name.EndsWith("Info") ? t.Name.Substring(0, t.Name.Length - 4) : t.Name;
toc.AppendLine(" * [{0}](#{1})".F(traitName, traitName.ToLowerInvariant()));
doc.AppendLine();
doc.AppendLine("### {0}".F(traitName));
@@ -102,7 +99,6 @@ namespace OpenRA.Mods.Common.UtilityCommands
doc.AppendLine("</table>");
}
Console.Write(toc.ToString());
Console.Write(doc.ToString());
}
}