Fix climate viz title and source link in gallery metadata #50
Fix climate viz title and source link in gallery metadata #50tdhock merged 2 commits intoanimint:gh-pagesfrom
Conversation
|
the issue is likely coming from the original source itself. i think you’ll need to:
also, the current repo structure is a bit confusing -- the source code and data files are in the main branch, while the generated visualization is in gh-pages, and some files seem duplicated across branches. you may need to clean this up in your fork for things to work properly. |
|
Hi @suhaani-agarwal, thanks for the detailed review!
Missing title in screenshot — animint2 renders the title as a browser <title> tag, not as a visible heading in the plot. It is correctly set in plot.json and the gallery reads it from there. Live viz: https://anamasgard.github.io/climate-change-sensor-stations/ |
suhaani-agarwal
left a comment
There was a problem hiding this comment.
thanks, but in your live preview of the gallery: https://anamasgard.github.io/gallery/ , i still see same old links (https://biplab-sutradhar.github.io/climate-change-sensor-stations/ )
|
Thank You Ma'am @suhaani-agarwal for feedback ,
|
There was a problem hiding this comment.
yes, this looks better now, thanks.
It would be helpful if you could make the screenshot a bit shorter like below,

Also, I had a question - why are the source files and the generated visualization kept in the same repository and on different branches? Typically, we keep one repository for the source files (like figure-stations.R, along with any .R / .RData files required to generate the visualization), and then running animint2pages generates a separate repository containing the visualization files along with a README.md that has the link to the live viz.
|
Ma'am @suhaani-agarwal I just double-checked both branches. My main branch has exactly 3 files — figure-stations.R (the source code), crutem.grid.RData, and temperatures.RData. My gh-pages branch has all the generated output files — the .tsv data chunks, animint.js, animint.css, and plot.json — everything that animint2pages() automatically produces.
The only thing I noticed is that figure-stations.R also appears on gh-pages, which is because animint2pages() copies it there by default along with the visualization output. That's expected behavior — the source .R file is shared between both branches, not exclusive to just main , but i have removed it from the gh-pages branch now it is only in the main branch . I have also added the shorter screenshot as you asked for , Thank You ! |
|
@suhaani-agarwal thanks again for feedback , can you please check again i have update and moved from mono repo to dual repo , source repo and gh-page repo with holds the visualization
|
suhaani-agarwal
left a comment
There was a problem hiding this comment.
great! looks good now
|
@tdhock can you please review this PR when you get time? |
|
@ANAMASGARD the issue #35 also refers to another gallery example : here , same issue of title exists, please fix that as well in the same way before closing the issue |
|
For example, in figure-candidates-interactive.R, the title is set as "LOPART algorithm", but in the gallery it currently appears as "Interactive visualization of candidate selection".
@suhaani-agarwal The above was the issue but when I checked repos.txt in the gallery and the LOPART example currently points to tdhock/2025-08-29-LOPART-candidates-grid, not biplab-sutradhar/figure-candidates-interactive. The biplab repo is not in the gallery at all.
|
alright i just checked the #37 fixed this title mismatch. |
|
this looks good now, @tdhock please review whenever you have time |
|
great thanks! |



Gallery Title Fix (Fixes #35)
Fixed title mismatch for climate visualization:
The title now matches what's in the source code. Fixed by clearing cached metadata and re-running
update_gallery().Preview
https://ANAMASGARD.github.io/gallery/