-
Couldn't load subscription status.
- Fork 142
Update figure selection and layout of the gallery #4060
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
Conversation
|
many thanks, Tina! As Borat once said, I like! 🍻 |
|
Thanks for starting this. I generally like the approach. But falling back to the first plot, when multiple plots use When no |
|
I have had a closer look to the gallery generating script. instead of
Unfortunatly it cannot be easily fixed by "per pager template" or "html input" (not well supported out of the box). But we can still improve the layout with some limitations using |
…nto gallery-updates
…nto gallery-updates
|
We added a little bit of CSS to make the layout more responsive and usable (and prettier IMO). @bettina-gier also spotted some recipes with formatting issues and/or missing captions (thanks for fixing them). Have a look at the updated gallery: https://esmvaltool--4060.org.readthedocs.build/en/4060/gallery.html |
One of the example recipes reproduces an IPCC figure: examples/recipe_easy_ipcc.yml. Therefore it made sense to me to list that under the IPCC recipes. Happy for you to have a different opinion of course |
In theory that's fine, but then maybe we should subsection the example recipes and can link directly to it? Same way it now looks with the droughts and legacy recipes - have a folder for example recipes? The way it was set up with the same link in the list twice I didn't really like and felt intuitive. If it's "IPCC example recipe" it would make more sense? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @bettina-gier and @lukruh, that's great, I like it!
Since I am not very familiar with HTML/CSS, I cannot really comment on the code itself, but the generated gallery and the changes to the recipes page look very good. I had a look at all pages and tested the links, everything works as expected.
One tiny comment: Would it make sense to document the new gallery feature somewhere?
Thank you 🚀
|
I was looking where to document but I'm not sure. The current "contributing" is quite general and it seems a bit technical to put it there. But maybe as a tip? |
|
Somewhere here maybe? |
|
I was thinking more here ? |
|
Yeah, probably better. To be honest I am not quite sure I understand why we have those two different pages about that 😅 |
|
added documentation for the tags here |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @lukruh and @bettina-gier this looks good, I like the new gallery!
Thanks for the heads up @lukruh on the changes, should be straightforward to merge as I have only looked at the navigation headers and landing page.
Co-authored-by: Felicity Chun <[email protected]>
|
I adjusted the breakpoints to show only 2 or 1 column depending on the available space. If you want to test it resize the brwoser window and make sure the old css is not cached (remove cache or open it in a private window). Thanks a lot for the helpful reviews. |
|
very many thanks for getting this one through, folks 🍻 |
Changes in this PR:
Also includes small fixes: