Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clickable image and button not working #48

Closed
sistia01 opened this issue Dec 9, 2021 · 1 comment
Closed

Clickable image and button not working #48

sistia01 opened this issue Dec 9, 2021 · 1 comment
Labels
bug Something isn't working

Comments

@sistia01
Copy link

sistia01 commented Dec 9, 2021

Describe the problem

Hi, I'm trying to get clickable images/buttons using the grid and the grid-item-cards directives but unfortunately I'm not able to get the links to go to the targets. I've tried a few different methods (as you can see on the datasets.rst file in my repo).

I was wondering if you might have any alternatives or tips on how I can get this working?

Link to your repository or website

https://github.com/sistia01/Giotto-Sphinx-Website

Steps to reproduce


Example Datasets


Mini Datasets

.. toctree::
:maxdepth: 2
:caption: Mini Datasets
:hidden:

Mini SeqFISH </subsections/datasets/mini_seqFISH.rst>
Mini Visium </subsections/datasets/mini_visium.rst>
Mini 3D STARmap </subsections/datasets/mini_3D_STARmap.rst>

.. grid::

.. grid-item-card::

    .. image:: images/dataset_page/mini_seqFISH.png
        :target: `mini_seqFISH`_ 

    .. button-ref:: `mini_seqFISH`_
        :ref-type: any
        :color: dark
        :shadow:
        :expand:
        
        Mini seqFISH

.. grid-item-card::

    .. image:: images/dataset_page/mini_STARmap.png  
        :target: subsections/datasets/mini_3D_STARmap.rst 

    .. button-link:: subsections/datasets/mini_3D_STARmap.rst 
        :color: dark
        :shadow:
        :expand:
    
        Mini 3D STARmap

.. grid-item-card::
    
    .. image:: images/dataset_page/mini_visium.png  
        :target: subsections/datasets/mini_3D_STARmap.rst 

    .. button-link:: subsections/datasets/mini_visium.rst 
        :color: dark
        :shadow:
        :expand:
    
        Mini Visium

The version of Python you're using

Python 3.8.5 64-bit ('base':conda)

Your operating system

macOS Monterey Version 12.0.1

Versions of your packages

No response

Additional context

No response

@sistia01 sistia01 added the bug Something isn't working label Dec 9, 2021
@welcome
Copy link

welcome bot commented Dec 9, 2021

Thanks for opening your first issue here! Engagement like this is essential for open source projects! 🤗

If you haven't done so already, check out EBP's Code of Conduct. Also, please try to follow the issue template as it helps other community members to contribute more effectively.

If your issue is a feature request, others may react to it, to raise its prominence (see Feature Voting).

Welcome to the EBP community! 🎉

@sistia01 sistia01 closed this as completed Jan 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant