Bloggify/github-calendar

Github calendar not working

Closed this issue ยท 13 comments

Github calendar has unexpectedly stopped working since yesterday, look at montesariel.com. How much to fix it? Can you add the option to download it as a plugin? I've been using the URLs provided in your readme file and they still active.

I think GitHub changed the way they render the colors:

image

I don't have time to work on this right now, but contributions are more than welcome! โ‡๏ธ

Not only that, number of contributions and streaks doesn't show either, I believe the hole think is broken.

any solutions?

Weird, the API returns the total number of contributions, however nothing on streaks.
Did it always work like that?
Also, how did colors get parsed previously?

Full disclosure, I have no qualifications in JS.

maybe it has something to do with halloween updates. github used other module to change color from green to pumkin for halloween day.
if my guess is correct, they would return it to original state when halloween is over.

@Doohwancho if it's that, it would be nice to implement a solution for prevent this scenario each year, it's ugly to have things broken on your website and I like this tool. It's a shame that I don't have the time for this right now.
I would expect the GitHub team to be more consistent with their code to avoid these kinds of issues.

maybe it has something to do with halloween updates. github used other module to change color from green to pumkin for halloween day.
if my guess is correct, they would return it to original state when halloween is over.

weird..Yeah It's just because of Halloween update

Glad to see it isn't anything serious though.
Best of luck to any JS dev willing to implement a fix to prevent this from happening next year.

Just a quick update: there are two things we have to fix here:

Adding the CSS Vars to the stylesheet will get the days to render. Something like:

:root {
  --color-calendar-graph-day-bg: #dddbdb;
  --color-calendar-graph-day-L1-bg: #39dd34;
  --color-calendar-graph-day-L2-bg: #45a045;
  --color-calendar-graph-day-L3-bg: #047526;
  --color-calendar-graph-day-L4-bg: #0a4208;
}

However I am still looking at the streak and total counts.

I fixed the parser in IonicaBizau/github-calendar-parser#17.

I am working on this.

@IonicaBizau thank you!

there is a workaround @yeuk0 mention it issue #620