Remove the table of content
which is auto-generated by mkdocs.
This commit is contained in:
committed by
Paul Chote
parent
5d9e8b56c5
commit
7746dc55f0
@@ -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());
|
||||
}
|
||||
|
||||
|
||||
@@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user