sphinx-needs icon indicating copy to clipboard operation
sphinx-needs copied to clipboard

Create filter for needs.json export

Open twodrops opened this issue 3 years ago • 2 comments

Current needs builder exports the already imported needs.json (with needimport) when "needs" builder is used.

twodrops avatar Jul 23 '22 11:07 twodrops

The user can already define their own export filter when using the needs.json builder: https://sphinx-needs.readthedocs.io/en/latest/configuration.html#needs-builder-filter

Is this already enough or is the goal of this ticket to update the default filter, so that all imported needs do not get exported?

danwos avatar Jul 26 '22 04:07 danwos

@danwos Yes, the second part. The imported needs with needimport shall not be exported. I guess this can be done by using "tags" with needimport and a filter expression in needs-builder-filter using the tags right. If yes, this can be closed.

Thanks for the hint.

twodrops avatar Jul 26 '22 05:07 twodrops

Feature is already available as described by @twodrops

danwos avatar Aug 23 '22 06:08 danwos