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

add URLs after link text in print version? #162

Open
tobyhodges opened this issue Jan 8, 2025 · 1 comment
Open

add URLs after link text in print version? #162

tobyhodges opened this issue Jan 8, 2025 · 1 comment

Comments

@tobyhodges
Copy link
Member

In carpentries/docs.carpentries.org#201, Owen asked about including URLs for links in the printed version of a lesson. It looks like we could enable this with some relatively small changes to the CSS in varnish:

@media print {
    a[href]:after {
        content: ' (' attr(href) ')';
    }
}

What are your thoughts about doing this? Any potential hazards that I am missing?

@Bisaloo
Copy link
Contributor

Bisaloo commented Jan 18, 2025

The only potential issue I can anticipate is that very long links may look very bad:

  • how does line wrapping work in these cases?
  • should the CSS code you included only apply to relatively short links?
  • a first good step might be to scrape links from all official lessons to get an idea of how commonly the issue I mention might be encountered

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants