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

needgrid: needs inside a grid as result of a filter.

Open danwos opened this issue 11 months ago • 0 comments

.. needgrid:: shall represent found needs in a grid system. The need objects themselves are need-representations, like needextract is doing.

Example:

.. needgrid:: 3
   :filter: "my_needs" in tags
   :layout: focus
   :style: discreet

image

The argument is taken from Sphinx-Design grids, which is defining how many columns an entry shall take. Also all the other Sphinx-Design grid and grid-item options could be made available.

I'm not sure if this function needs to be based on a loaded Sphinx-Design or if the grid-system can/should be reimplemented. Happy to discuss possibilities :smile:

Links: Sphinx-Design grid system: https://sphinx-design.readthedocs.io/en/latest/grids.html Sphinx-Needs needextract: https://sphinx-needs.readthedocs.io/en/latest/directives/needextract.html

danwos avatar Mar 08 '24 14:03 danwos