Skip to content

Commit 5f67f5f

Browse files
lylomarcoroth
andauthored
Add an Atom feed to follow new conference announcements (#704)
* Add an Atom feed to follow new conference announcements * Use correct announced_at date based on commit date * Renamed announced_at to announced_on * Add feed link to footer * Use absolute URL for atom feed * Narrow down `announced_on` dates --------- Co-authored-by: Marco Roth <[email protected]>
1 parent 2acc078 commit 5f67f5f

File tree

7 files changed

+66
-1
lines changed

7 files changed

+66
-1
lines changed

Diff for: Gemfile

+4
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,7 @@ gem 'danger-commit_lint'
88
gem 'html-proofer'
99
gem 'jekyll'
1010
gem 'rake'
11+
12+
group :jekyll_plugins do
13+
gem 'jekyll-feed'
14+
end

Diff for: Gemfile.lock

+3
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,8 @@ GEM
9090
safe_yaml (~> 1.0)
9191
terminal-table (>= 1.8, < 4.0)
9292
webrick (~> 1.7)
93+
jekyll-feed (0.17.0)
94+
jekyll (>= 3.7, < 5.0)
9395
jekyll-sass-converter (3.0.0)
9496
sass-embedded (~> 1.54)
9597
jekyll-watch (2.2.1)
@@ -161,6 +163,7 @@ DEPENDENCIES
161163
danger-commit_lint
162164
html-proofer
163165
jekyll
166+
jekyll-feed
164167
rake
165168

166169
RUBY VERSION

Diff for: Rakefile

+2-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ task :verify_data do
2727
"reg_date",
2828
"cfp_phrase",
2929
"cfp_date",
30-
"video_link"
30+
"video_link",
31+
"announced_on"
3132
]
3233
data = YAML.load File.read "_data/conferences.yml"
3334
validator = DataFileValidator.validate(data, allowed_keys)

Diff for: _config.yml

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
name: Ruby Conferences
2+
url: https://rubyconferences.org
13
safe: true
24
lsi: false
35
source: .
@@ -12,3 +14,6 @@ exclude:
1214
- data_file_validator.rb
1315
- notes.txt
1416
- vendor
17+
18+
plugins:
19+
- jekyll-feed

Diff for: _data/conferences.yml

+22
Original file line numberDiff line numberDiff line change
@@ -2650,25 +2650,29 @@
26502650
cfp_open_date: 2024-03-15
26512651
cfp_close_date: 2024-04-30
26522652
cfp_link: https://cfp.madisonruby.com/events/2024/
2653+
announced_on: 2023-11-14
26532654

26542655
- name: Osaka RubyKaigi 04
26552656
location: Osaka, Japan
26562657
start_date: 2024-08-24
26572658
end_date: 2024-08-24
26582659
url: https://regional.rubykaigi.org/osaka04/
2660+
announced_on: 2024-03-28
26592661

26602662
- name: Rails Camp USA 2024
26612663
location: Cascade, Idaho
26622664
start_date: 2024-08-27
26632665
end_date: 2024-08-30
26642666
url: https://west.railscamp.us/2024
26652667
twitter: railscamp_usa
2668+
announced_on: 2024-02-29
26662669

26672670
- name: Fukuoka RubyistKaigi 04
26682671
location: Fukuoka, Japan
26692672
start_date: 2024-09-07
26702673
end_date: 2024-09-07
26712674
url: https://regional.rubykaigi.org/fukuoka04/
2675+
announced_on: 2023-12-14
26722676

26732677
- name: EuRuKo 2024
26742678
location: Sarajevo, Bosnia & Herzegovina
@@ -2680,6 +2684,7 @@
26802684
cfp_open_date: 2024-01-12
26812685
cfp_close_date: 2024-04-15
26822686
cfp_link: https://www.papercall.io/euruko2024
2687+
announced_on: 2023-11-27
26832688

26842689
- name: Friendly.rb 2024
26852690
location: Bucharest, Romania
@@ -2691,6 +2696,7 @@
26912696
cfp_open_date: 2024-03-29
26922697
cfp_close_date: 2024-07-01
26932698
cfp_link: https://friendlyrb.com/cfp
2699+
announced_on: 2023-11-01
26942700

26952701
- name: Rails World 2024
26962702
location: Toronto, Canada
@@ -2701,12 +2707,14 @@
27012707
cfp_open_date: 2024-02-05
27022708
cfp_close_date: 2024-03-21
27032709
cfp_link: https://sessionize.com/rails-world/
2710+
announced_on: 2023-11-30
27042711

27052712
- name: Matsue RubyistKaigi 11
27062713
location: Matsue, Japan
27072714
start_date: 2024-10-05
27082715
end_date: 2024-10-05
27092716
url: https://matsue.rubyist.net/matrk11/
2717+
announced_on: 2024-03-21
27102718

27112719
- name: Rubyfuza 2024
27122720
location: Cape Town, South Africa
@@ -2718,12 +2726,14 @@
27182726
cfp_close_date: 2024-08-10
27192727
cfp_link: https://www.papercall.io/rubyfuza-2024
27202728
status: Canceled
2729+
announced_on: 2023-10-18
27212730

27222731
- name: Ruby Retreat 2024
27232732
location: Warrnambool, VIC, Australia
27242733
url: https://retreat.ruby.org.au/
27252734
start_date: 2024-10-18
27262735
end_date: 2024-10-21
2736+
announced_on: 2024-04-12
27272737

27282738
- name: Rocky Mountain Ruby 2024
27292739
location: Boulder, Colorado
@@ -2735,13 +2745,15 @@
27352745
cfp_open_date: 2024-05-15
27362746
cfp_close_date: 2024-06-30
27372747
cfp_link: https://sessionize.com/rocky-mountain-ruby
2748+
announced_on: 2024-04-17
27382749

27392750
- name: Haggis Ruby 2024
27402751
location: Edinburgh, Scotland
27412752
start_date: 2024-10-24
27422753
end_date: 2024-10-24
27432754
url: https://haggisruby.co.uk
27442755
mastodon: https://ruby.social/@haggisruby
2756+
announced_on: 2024-07-04
27452757

27462758
- name: Kaigi on Rails 2024
27472759
location: Tokyo, Japan
@@ -2753,6 +2765,7 @@
27532765
cfp_open_date: 2024-07-01
27542766
cfp_close_date: 2024-07-31
27552767
cfp_link: https://cfp.kaigionrails.org/events/2024
2768+
announced_on: 2024-02-24
27562769

27572770
- name: RubyConf 2024
27582771
location: Chicago, IL
@@ -2764,6 +2777,7 @@
27642777
cfp_open_date: 2024-06-06
27652778
cfp_close_date: 2024-07-22
27662779
cfp_link: https://sessionize.com/rubyconf-2024/
2780+
announced_on: 2024-01-21
27672781

27682782
- name: RubyConf India 2024
27692783
location: Jaipur, India
@@ -2774,13 +2788,15 @@
27742788
cfp_open_date: 2024-07-23
27752789
cfp_close_date: 2024-09-25
27762790
cfp_link: https://www.papercall.io/rubyconf-india-2024
2791+
announced_on: 2024-07-23
27772792

27782793
- name: RubyWorld Conference 2024
27792794
location: Matsue, Japan
27802795
start_date: 2024-12-05
27812796
end_date: 2024-12-06
27822797
url: https://2024.rubyworld-conf.org/en/
27832798
twitter: rubyworldconf
2799+
announced_on: 2024-05-29
27842800

27852801
- name: RubyKaigi 2025
27862802
location: Matsuyama, Ehime, Japan
@@ -2789,13 +2805,15 @@
27892805
url: https://rubykaigi.org
27902806
twitter: rubykaigi
27912807
mastodon: https://ruby.social/@rubykaigi
2808+
announced_on: 2024-05-18
27922809

27932810
- name: Balkan Ruby 2025
27942811
location: Sofia, Bulgaria
27952812
start_date: 2025-04-25
27962813
end_date: 2025-04-26
27972814
url: https://balkanruby.com
27982815
twitter: balkanruby
2816+
announced_on: 2024-04-28
27992817

28002818
- name: Helvetic Ruby 2025
28012819
location: Geneva, Switzerland
@@ -2804,6 +2822,7 @@
28042822
url: https://helvetic-ruby.ch
28052823
twitter: helvetic_ruby
28062824
mastodon: https://ruby.social/@helvetic_ruby
2825+
announced_on: 2024-05-17
28072826

28082827
- name: Brighton Ruby 2025
28092828
location: Brighton, UK
@@ -2812,6 +2831,7 @@
28122831
url: https://brightonruby.com
28132832
twitter: brightonruby
28142833
mastodon: https://ruby.social/@brightonruby
2834+
announced_on: 2024-06-19
28152835

28162836
- name: Baltic Ruby 2025
28172837
location: Riga, Latvia
@@ -2822,6 +2842,7 @@
28222842
url: https://balticruby.org
28232843
twitter: balticruby
28242844
mastodon: https://ruby.social/@balticruby
2845+
announced_on: 2024-06-15
28252846

28262847
- name: RailsConf 2025
28272848
location: United States
@@ -2832,3 +2853,4 @@
28322853
url: https://www.railsconf.com
28332854
twitter: railsconf
28342855
mastodon: https://ruby.social/@railsconf
2856+
announced_on: 2024-05-07

Diff for: _layouts/default.html

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
<link href="//fonts.googleapis.com/css?family=Exo+2:300,400" rel="stylesheet" type="text/css">
1111
<link href="/css/style.css" rel="stylesheet" type="text/css">
1212
<link href="/images/favicon.png" rel="icon" type="image/png">
13+
{% feed_meta %}
1314
<script src="/js/jquery.js" type="text/javascript"></script>
1415
<script src="/js/moment.min.js" type="text/javascript"></script>
1516
<script src="/js/behavior.js" type="text/javascript"></script>
@@ -47,6 +48,7 @@ <h1>
4748
<li><a href="https://github.com/ruby-conferences/ruby-conferences.github.io">source</a></li>
4849
<li><a href="https://rubyconferences.org/calendar.ics">ics events calendar feed</a></li>
4950
<li><a href="https://rubyconferences.org/cfp.ics">ics CFP calendar feed</a></li>
51+
<li><a href="https://rubyconferences.org/feed.xml">RSS feed</a></li>
5052
</ul>
5153
</footer>
5254
<script type="text/javascript">

Diff for: feed.xml

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
---
2+
---
3+
<?xml version="1.0" encoding="utf-8"?>
4+
<feed xmlns="http://www.w3.org/2005/Atom">
5+
<title type="text" xml:lang="en">{{ site.name }}</title>
6+
<link type="application/atom+xml" href="atom_feed_url" rel="self"/>
7+
<link type="text/html" href="home_url_canonical" rel="alternate"/>
8+
<updated>{{ site.time | date_to_xmlschema }}</updated>
9+
<id>{{ site.url }}/feed.xml</id>
10+
11+
{% assign latest_events = site.data.conferences | reverse | slice: 0, 50 %}
12+
{% for event in latest_events %}
13+
{% if event.announced_on %}
14+
<entry>
15+
<published>{{ event.announced_on | date: "%Y-%m-%dT%H:%M:%S%z" }}</published>
16+
17+
<title>{{ event.name }}</title>
18+
<id>{{ event.url }}</id>
19+
<link href="{{ event.url }}" />
20+
<content type="html">
21+
<![CDATA[
22+
{% include event.html %}
23+
]]>
24+
</content>
25+
</entry>
26+
{% endif %}
27+
{% endfor %}
28+
</feed>

0 commit comments

Comments
 (0)