executablebooks / sphinx-design

A sphinx extension for designing beautiful, screen-size responsive web components.
https://sphinx-design.readthedocs.io/en/furo-theme/
MIT License
187 stars 57 forks source link

Option to open clickable cards in new tab #170

Open kasuteru opened 9 months ago

kasuteru commented 9 months ago

Context

For outgoing links, it feels sometimes more intuitive to open a link in a new tab / page instead of the current one. This is for example when our users want to open the actual application from a clickable card while keeping the documentation open.

Proposal

An option :link-newtab: for all clickable cards or just external links, that is by default false (to be backwards compatible) but can be set to true to open link in a new tab. Would look like this:

.. card:: Clickable Card (external) :link: https://example.com :link-newtab: true

The entire card can be clicked to navigate to https://example.com. 

Tasks and updates

Not sure

welcome[bot] commented 9 months ago

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: