Drop the engines RSS feed

The engines listing is a handful of curated pages, not a stream — no feed
needed. Removes the route, controller action, RssService#engines_feed and
the footer link. The WikiService#pages alias stays (blog/howtos feeds use
it).
This commit is contained in:
2026-08-05 07:40:25 +02:00
parent a15f0ce24b
commit 1501f7f0b6
4 changed files with 0 additions and 33 deletions
@@ -24,11 +24,4 @@ class Api::RssController < ApiController
xml = RssService.new.howtos_feed
render xml: xml, content_type: "application/rss+xml"
end
api :GET, "/api/rss/engines", "Engines RSS feed"
returns code: 200, desc: "RSS XML feed of in-house engines"
def engines
xml = RssService.new.engines_feed
render xml: xml, content_type: "application/rss+xml"
end
end
-21
View File
@@ -50,27 +50,6 @@ class RssService
end.to_s
end
def engines_feed
pages = WikiService.new.pages(tag: "engine", limit: 30)
items = pages.fetch("pages", [])
RSS::Maker.make("2.0") do |maker|
maker.channel.title = "Teletype Games Engines"
maker.channel.link = "#{SITE_URL}/engines"
maker.channel.description = "In-house engines and frameworks from Teletype Games"
maker.channel.language = "hu"
items.each do |page|
maker.items.new_item do |item|
item.title = page["title"]
item.link = page["repo"].presence || "#{WIKI_URL}/#{page["path"]}"
item.description = page["description"].to_s
item.pubDate = Time.parse(page["createdAt"]) rescue Time.current
end
end
end.to_s
end
def howtos_feed
pages = WikiService.new.pages(tag: "howto", limit: 30)
items = pages.fetch("pages", [])
-1
View File
@@ -11,7 +11,6 @@ Rails.application.routes.draw do
get "rss/blog", to: "rss#blog"
get "rss/releases", to: "rss#releases"
get "rss/howtos", to: "rss#howtos"
get "rss/engines", to: "rss#engines"
end
# Utolsó sor: a host route-jai nyernek, a katalógus-útvonalakat
-4
View File
@@ -68,10 +68,6 @@
<a href="/api/rss/howtos" target="_blank" class="rss-link" title="HowTos RSS">
<i class="fa-solid fa-rss"></i> HowTos
</a>
<span class="locale-separator">|</span>
<a href="/api/rss/engines" target="_blank" class="rss-link" title="Engines RSS">
<i class="fa-solid fa-rss"></i> Engines
</a>
</div>
</div>
</div>