Skip to content

ENH: Add download as clickable ref type for Cards #56

Open

Description

@mmcky

Describe the problem/need and solution

Context

We would like to add a Card that has a clickable download of the PDF for the website.

:ref: downloads/file.pdf
:link-ref: download

that would then support linking to a file for download

Problem / Idea

I have tried using the sphinx download role in the title but this doesn't seem to be passed through the sphinx

::::{grid} 2
:::{grid-item-card} {download}`PDF <downloads/file.pdf>`
:img-background: img/betweenness_centrality_1.pdf

but this approach doesn't look very nice. So it would be nice to have :link: support for download files for the whole card to be clickable

Solution

TBD

Benefit

Adds useful functionality to cards

Guide for implementation

No response

Tasks and updates

No response

Activity

  1. added
    enhancement
    on Mar 22, 2022
  2. welcome commented on Mar 22, 2022

    @welcome

    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! 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions