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

TOC fors needtable and Co.

Open danwos opened this issue 2 years ago • 0 comments

As we know all needtables and co. it would be easy to create a TOC of all tables, flows or co.

Example:

.. toc-needtable::

or

.. toc-needflow::

The output would be a simple list of links to the related table/flow, ...

If the table has no title, the internal ID shall be used as link-text.

Filtering

It would also be good to filter the tables for a specific need. For instance: Show me all needtables which are containing REQ-123.

Example:

... toc-needtable::
    :needs: REQ-123

I'm not sure if a supporting filter-string is needed here. I see currently no use-case, but it would match the way we do filtering currently for all other use cases.

Hint: To know if a need is a part of a needtables, the filter result (need-IDs) must be stored inside the needtables or needflows or ... I'm not sure if this is already the case for all kinds of filter reprensenttions.

danwos avatar Aug 11 '22 15:08 danwos