Skip to content

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

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions