godotengine / godot-website

The code for the official Godot Engine website. A static site built using Jekyll.
https://godotengine.org
MIT License
302 stars 151 forks source link

Add a json feed version of /rss.xml #607

Closed noidexe closed 1 year ago

noidexe commented 1 year ago

I'm working on a "Godot Version Manager" and there are other similar projects doing the same, having a timeline view of /blog as a feature.

Right now the only way to parse xml is using XMLParser which is pretty low level and I've heard it's going to be deprecated in Godot 4. Json is much easier to handle within GDscript and there is https://www.jsonfeed.org/ which is similar to RSS/Atom.

Would it be posible to offer the same info in json feed format?

YuriSizov commented 1 year ago

Would it be posible to offer the same info in json feed format?

Yes, we can add anything we want, it's all templated. Here's the RSS source, for example.

noidexe commented 1 year ago

Thanks. I'll see if I can contribute that myself then

coppolaemilio commented 1 year ago

@noidexe can you review https://github.com/godotengine/godot-website/pull/649 ?

noidexe commented 1 year ago

Looks perfect. It has all the info I was currently scraping from the html. Thanks!

coppolaemilio commented 1 year ago

Closed by #649