sphinx-design
sphinx-design copied to clipboard
ENH: Add `download` as clickable ref type for Cards
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
Thanks for opening your first issue here! Engagement like this is essential for open source projects! :hugs:
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! :tada: