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

:link: directive not working

Open sistia01 opened this issue 2 years ago • 1 comments

Describe the bug

I am trying to allow my grid item card to be clickable but it is not working with any of the methods that I have tried.

I have tried doing :target: only with :image: and link under grid-item-card (with both doc and ref) but none of these options are working.

.. grid:: 4

.. grid-item-card::
	:link: mini_visium
	:link-type: ref

    .. image:: images/getting_started/icons_configuration.png
		:target: :ref:`mini_visium` (*Note: referenced as .. _minivisium: in subsections | I have also tried using the file path)
Screen Shot 2022-06-29 at 3 12 30 PM

I have also tried (outdated):

.. card-carousel:: 7

.. card::
	:link: mini_visium
	:link-type: ref

    .. image:: images/getting_started/icons_configuration.png

Any help on this would be greatly appreciated!

Reproduce the bug

GitHub repo: https://github.com/sistia01/Giotto/tree/suite/docs

page: https://github.com/sistia01/Giotto/blob/suite/docs/source/gettingstarted.rst

List your environment

conda version : 4.13.0 python version : 3.9.12.final.0 sphinx-design 0.2.0
sphinx 4.5.0

sistia01 avatar Jun 29 '22 19:06 sistia01

Heya, in #84 I tried to reproduce your issue, however, as you can see here https://sphinx-design--84.org.readthedocs.build/en/84/test.html, it seems to work fine?

chrisjsewell avatar Jul 30 '22 16:07 chrisjsewell