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

events.icsをイベントのページから生成するようにした #52

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

onokatio
Copy link
Member

今までevents.icsは専用のjsonファイルを作成して管理していたが、代わりに各イベントページの上部のjsonから動的に生成するようにした。
また、一部icalendarの形式を修正した。

@onokatio
Copy link
Member Author

FYI: こんな感じ

VERSION:2.0
PRODID:-//until./until-tsukuba.github.io//NONSGML v1.0//JP
X-WR-TIMEZONE:UTC
BEGIN:VEVENT
UID:ntteast-tunnel-trip
DTSTAMP:20250131T154047Z
DTSTART;VALUE=DATE-TIME:20230323T010000Z
DTEND;VALUE=DATE-TIME:20230323T030000Z
SUMMARY:NTT東日本 洞道見学会
LOCATION:NTT東日本 都内某ビル
URL:https://until-tsukuba.github.io/events/2023/ntteast-tunnel-trip/
END:VEVENT
BEGIN:VEVENT
UID:until-lt0x02
DTSTAMP:20250131T154047Z
DTSTART;VALUE=DATE-TIME:20230601T100000Z
DTEND;VALUE=DATE-TIME:20230601T120000Z
SUMMARY:UNTIL. LT #0x02
LOCATION:グローバルヴィレッジ コミュニティステーション 2F
URL:https://until-tsukuba.github.io/events/2023/until-lt0x02/
END:VEVENT
BEGIN:VEVENT
UID:until-lt0x03
DTSTAMP:20250131T154047Z
DTSTART;VALUE=DATE-TIME:20231203T040000Z
DTEND;VALUE=DATE-TIME:20231203T070000Z
SUMMARY:[UNTIL. LT×学生LT] UNTIL. LT #0x03
LOCATION:筑波大学東京キャンパス文京校舎 3F 337講義室
URL:https://until-tsukuba.github.io/events/2023/until-lt0x03/
END:VEVENT
BEGIN:VEVENT
UID:ntteast-tunnel
DTSTAMP:20250131T154047Z
DTSTART;VALUE=DATE-TIME:20240925T053000Z
DTEND;VALUE=DATE-TIME:20240925T080000Z
SUMMARY:NTT東日本 とう道見学会
LOCATION:NTT東日本 都内某ビル
URL:https://until-tsukuba.github.io/events/2024/ntteast-tunnel/
END:VEVENT
BEGIN:VEVENT
UID:until-lt0x04
DTSTAMP:20250131T154047Z
DTSTART;VALUE=DATE-TIME:20240511T070000Z
DTEND;VALUE=DATE-TIME:20240511T110000Z
SUMMARY:UNTIL. LT #0x04
LOCATION:筑波大学 3A209
URL:https://until-tsukuba.github.io/events/2024/until-lt0x04/
END:VEVENT
BEGIN:VEVENT
UID:until-lt0x05
DTSTAMP:20250131T154047Z
DTSTART;VALUE=DATE-TIME:20241005T070000Z
DTEND;VALUE=DATE-TIME:20241005T110000Z
SUMMARY:UNTIL. LT #0x05
LOCATION:筑波大学筑波キャンパス春日エリア 7A101
URL:https://until-tsukuba.github.io/events/2024/until-lt0x05/
END:VEVENT
BEGIN:VEVENT
UID:until-lt0x06
DTSTAMP:20250131T154047Z
DTSTART;VALUE=DATE-TIME:20250201T070000Z
DTEND;VALUE=DATE-TIME:20250201T110000Z
SUMMARY:UNTIL. LT #0x06
LOCATION:筑波大学筑波キャンパス 3A308
URL:https://until-tsukuba.github.io/events/2025/until-lt0x06/
END:VEVENT
END:VCALENDAR

@onokatio
Copy link
Member Author

onokatio commented Jan 31, 2025

レビューおなしゃす @eniehack @oageo

@oageo oageo self-requested a review February 1, 2025 18:35
{% if event.url !== undefined %}
URL:{{ event.url }}
{% endif %}
UID:{{ event.page.fileSlug }}
Copy link
Contributor

Choose a reason for hiding this comment

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

slugをUIDとして活用するの、多分正しいがそれで良いかは確認が必要そう

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.

2 participants