Some initial support for inheritdocs in the documenter.
@@ -141,6 +141,12 @@ namespace StereoKitDocumenter
switch (reader.Name.ToLower())
{
case "summary": result.summary = StringHelper.CleanMultiLine(reader.ReadElementContentAsString().Trim()); break;
+ case "inheritdoc": {
+ string reference = reader.GetAttribute("cref").Trim();
+ int start = reference.IndexOf('.');
+ start = start == -1 ? 0 : start+1;
+ result.summary = $"See `{reference.Substring(start)}`";
+ } break;
}
}
