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

Fix Calendar #202

Closed
wants to merge 4 commits into from
Closed

Fix Calendar #202

wants to merge 4 commits into from

Conversation

ntmkhanh
Copy link

I just fixed the calendar for this project. I hope it is useful for you.

@MoralCode MoralCode linked an issue Jan 12, 2025 that may be closed by this pull request
Copy link
Contributor

@MoralCode MoralCode left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the contribution!

I attached some specific review comments to clarify parts of the diff, but a bigger issue I noticed is that generating the calendar feed with your modifications didn't decrease the number of errors reported by the ICS validator. I think you bring up some interesting changes to formatting and escaping of information, but I think more work may be needed to fully solve the issue.

I poked around a little bit and I suspect the majority of the errors are related to lacking a VTIMEZONE block in the file that defines what America/New_York means (it seems to be treated as simply a unique identifier, despite the identifier chosen being confusingly similar to the way timezones are defined per standard).

I suspect this is the point where bringing in a library to handle the timezones is the best course of action - open to any recommendations you may have for libraries!

Thanks again for the contribution!

Comment on lines +37 to +42
# --- calendar feed settings ---
calendar_feed:
url: "https://fossrit.github.io/feeds/calendar.ics"
description: "Upcoming FOSS@RIT events in iCalendar format"
timezone: "America/New_York"

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are these settings associated with a particular jekyll plugin? They dont seem to be referred to in the calendar.ics file and i dont see any similarly named plugins in Gemfile or _config.yaml that would indicate what these parameters are doing.

Comment on lines -22 to -24
URL:{{post.redirect}}{% elsif post.categories.last != "meetings-meetups" %}
URL:{{site.url}}{{site.baseurl}}{{post.url}}{% else %}
URL:{{site.url}}{{site.baseurl}}/get-involved{% endif %}{% if post.categories.last == "meetings-meetups" %}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a reason why these variations on the URL were removed? The warnings from the RFC checker were mostly timezone and line length related, so I'm not seeing a reason to change this

Comment on lines -25 to -26
CATEGORIES:{{site.title-abbrev}},{{site.title}},{{post.categories.last | upcase}}{% else %}
CATEGORIES:{{site.title-abbrev}},{{site.title}},{{post.categories.first | upcase}}{% endif %}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same thing here - Is there a reason these lines were changed?

@ntmkhanh ntmkhanh closed this Jan 13, 2025
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

Successfully merging this pull request may close these issues.

Fix calendar validation issues
2 participants