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 Print Stylesheet #524

Open
ben-norton opened this issue Nov 1, 2023 · 7 comments
Open

Add Print Stylesheet #524

ben-norton opened this issue Nov 1, 2023 · 7 comments

Comments

@ben-norton
Copy link
Member

If it's not too much trouble, please add the following printer-friendly stylesheet to the header of the template.
Snippet:
The path can be relative by making a copy of the stylesheet or absolute to the external sheet.
Stylesheet: https://tdwg.github.io/ltc/static/custom/css/print.css

Thanks

  • Ben
@stanblum
Copy link
Member

stanblum commented Nov 1, 2023

Hi Ben, I think that's something that it would be best for @peterdesmet to do. I think testing the integration locally would wise, and I'm not set up to do that.

@ben-norton
Copy link
Member Author

Normally, I would suggest the wiser route, but in this case, I don't think it's necessary. Print stylesheets are supposed to be very simple and globally applicable. They do things like set margins, remove images, and add URLs after link tags. I've been using the same starter print CSS for more than a decade. Its totally your call, but I thought this was something worth mentioning.

@stanblum
Copy link
Member

stanblum commented Nov 1, 2023

You might well be right, but I'm chicken, and just a lowly content editor. So, unless you're needing something urgently, I'd rather wait for @peterdesmet to do it. If he doesn't do it in 1-2 days, I'll see if I can raise him directly.

@ben-norton
Copy link
Member Author

ben-norton commented Nov 1, 2023 via email

@peterdesmet
Copy link
Member

The most stable approach would be to integrate a print.css in the Petridish theme that underpins all TDWG websites (and some other sites). Some steps were already taken (navbar and footer won't display on print for example). I'll have a look at this.

@peterdesmet
Copy link
Member

See peterdesmet/petridish#95 for related issue

@ben-norton
Copy link
Member Author

Awesome. The stylesheet linked above is currently being used for the LtC TDWG pages (see below). Migration to the wider TDWG site should be straightforward without the need to make any major changes to the css.
https://tdwg.github.io/ltc/

Also, Peter, I've been meaning to show you a python project that automatically generates standards doc webpages from the same set of csv files that Steve uses.
https://github.com/ben-norton/stadocgen
I'm using it to generate the LtC pages with plans to generalize its use. More to come.

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

No branches or pull requests

3 participants