You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note the above window does not allow me to put the triple slash comment. It is the standard Exclude tag that GhostDoc adds when you select Exclude This from Documentation.
I agree DocFx should support Exclude. This is unnecessary extra and arcane work to support a common feature need (easily filter out items from generated end user documentation.
Here is what I ended up doing:
I put this attribute above anything I don't want to see in the documentation:
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
(A custom attribute may be better for you -as this attribute is a standard one used for other things... but those other uses help me)
I set Filter in my docfx.json file
inside
"build": {
...
I set
"filter": "filter.yml",
Here is the part of my filter.yml that checks for that attribute.
Operation System:Windows
DocFX Version Used: Most recent
Template used: Default
Steps to Reproduce:
/// <exclude />
public string SomePropertyIDoNotWantDocumented { get; set; } = "";
Expected Behavior:
Property documentation would not be generated
Actual Behavior:
Property documentation is generated
The text was updated successfully, but these errors were encountered: