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

List2need add list options

Open christopheseyler opened this issue 8 months ago • 2 comments
trafficstars

Superseed the PR #1345

This feature allows to set common options to all needs in a list defined by list2need directive.

Comparing to the PR #1345, I implemented a new list-options option with the ability to nest all options that will be common (I removed the hide specific option as it can easily be added in this new list-options

I left a regex matching on the list-options value allowing to aggregate options that could be defined in one list item through the meta-data feature.

christopheseyler avatar Mar 03 '25 14:03 christopheseyler

Thanks @christopheseyler, this is definitely better, but bear with me a little on this as I want to have a bit more of a thought on it

chrisjsewell avatar Mar 13 '25 11:03 chrisjsewell

Hi, Do not worry, take your time.

Just note that I still kept the :tags: option al list2need level, even if it could also be included in the :list-options: as well. I think that the tags is so "common" for the needs (used for filter) that having its own "option" is a better choice than buried it in the list-options. (I hope you understand what i mean ;) )

christopheseyler avatar Mar 13 '25 12:03 christopheseyler