Doraku / DefaultDocumentation

Create a simple markdown documentation from the Visual Studio xml one.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Put "Attribute" classes in a separate section

lufinkey opened this issue · comments

I have several classes in my unity project that inherit from UnityEngine.PropertyAttribute. Is there a way to put these in a separate section from the "Classes" section? Basically I just want to have an Attributes section that only include classes that inherit from UnityEngine.PropertyAttribute or System.Attribute

you should be able to do that by creating your own plugin.
In there you would need to create a new version of the https://github.com/Doraku/DefaultDocumentation/blob/master/source/DefaultDocumentation.Markdown/Sections/ChildrenSection.cs#L288 ClassesSection by overriding GetChildren to filter out type that inherit PropertyAttribute or Attribute.
You could then create a new section type with a new name to do the opposite and add it to the sections to render for your project.
Check the plugins documentation for more info, feel free to ask if you need more infos.

Thanks, I'll check out the plugins API when I have some time