also add namespaces to the toc
This commit is contained in:
@@ -46,6 +46,7 @@ namespace OpenRA.Mods.Common.UtilityCommands
|
|||||||
currentNamespace = t.Namespace;
|
currentNamespace = t.Namespace;
|
||||||
doc.AppendLine();
|
doc.AppendLine();
|
||||||
doc.AppendLine("## {0}".F(currentNamespace));
|
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;
|
var traitName = t.Name.EndsWith("Info") ? t.Name.Substring(0, t.Name.Length - 4) : t.Name;
|
||||||
|
|||||||
Reference in New Issue
Block a user