Combine Multiple Filters #7871
JeremyCaney
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Currently, DocFX allows custom filters to be defined for metadata imports using the
filter
configuration property:This only allows one filter to be applied, however. That means that if you have multiple
metadata
rules defined, and each applies a differentfilter
, any shared rules must be duplicated in each of the filters.Options
There are a few approaches that might be pursued to resolve this. While any one of these would address the scenario I've laid out above, these each offer tradeoffs, and aren't actually mutually exclusive to one another; were it a priority, each of these options could be supported, and remain compatible with one another. That said, I suspect this is already an edge case, so prioritizing the simplest approach makes the most sense:
filter
property to accept an array of filters, similar to other properties (e.g.,src
).yml
definition to inherit from or include another filter.metadata
rules will be based off of.All of these would require for filter rules to be merged, though that's already supported with the out-of-the-box default filter configuration.
Beta Was this translation helpful? Give feedback.
All reactions