NativeScript / NativeScript

⚡ Empowering JavaScript with native platform APIs. ✨ Best of all worlds (TypeScript, Swift, Objective C, Kotlin, Java, Dart). Use what you love ❤️ Angular, Capacitor, Ionic, React, Solid, Svelte, Vue with: iOS (UIKit, SwiftUI), Android (View, Jetpack Compose), Dart (Flutter) and you name it compatible.
https://nativescript.org
MIT License
24.3k stars 1.64k forks source link

RSS feed from the Blog #8606

Open romeoonisim opened 4 years ago

romeoonisim commented 4 years ago

I don't know if this exists already. But we couldn't find it ...

Is your feature request related to a problem? Please describe. I've built with 2 friends a mobile app with news from most of the programming languages. This kind of app is useful to stay up-to-date with the latest changes your coding languages have to offer.

We wish to add the news from NativeScript into the app. But couldn't reach an RSS feed to pull up the latest news.

Describe the solution you'd like An URL with an XML RSS feed on: https://nativescript.org/blog/rss.xml Here is an example from freecodecamp: https://www.freecodecamp.org/news/rss/

Additional If you are interested to check the app, you can find it here: https://codenews.app/

NathanaelA commented 4 years ago

I love the idea; I personally use RSS for several of my feeds. As we are rebuilding the site and blog software we will look into adding a RSS feed.

rigor789 commented 4 years ago

@romeoonisim I have added a quick rss feed here: https://nativescript.org/rss.xml

It's auto-generated and includes all posts, but the order is not chronological (thought the publishDates are correct). Does this help? Any feedback is welcome!

romeoonisim commented 4 years ago

Hey, @rigor789 thanks for this quick modification! I've added the RSS source into our database, the news was already fetched. The script expects the first news item to be the newest, because it fetches only the first 50, once a day.

romeoonisim commented 4 years ago

LE: I've seen that this RSS includes all the links of the blog, like this one: <link>https://nativescript.org/blog/page/9/index.html</link> or <link>https://nativescript.org/blog/index.html</link>

Maybe we could remove this types of links and include only the articles.

Here is a screenshot from the app: Screenshot_2020-06-04-16-14-52-813_ro crxapps codenews

Thanks for your support guys! 👍 👏

rigor789 commented 4 years ago

@romeoonisim right - in that case it's slightly trickier with the current build setup. I'll see what I can do.

Adelrisk commented 4 years ago

After noticing my apparently unofficial feed stopped working several blog posts ago, I did some investigating and found this issue.

First of all, the link seems to work fine in my rss-reader: the content is sorted and includes the latest blog posts. :+1:

However, the URL is currently not available on the main website or blog page (I always check the source first). My naive impression inspires me to provide the nudge, you shouldn't to forget to roll this feature out for others. :smile:

rigor789 commented 4 years ago

However, the URL is currently not available on the main website or blog page

@Adelrisk can you clarify which URL is not available?

Adelrisk commented 4 years ago

"Not available" was imprecise.

When I view the source of https://nativescript.org/ and https://nativescript.org/blog/ and search for "rss", I do not find any results. Which is unfortunate, as the url https://nativescript.org/rss.xml seems to work and those two would be the sites I'd expect to find the RSS url.

romeoonisim commented 4 years ago

Actually this page seems more like a sitemap 😁 it would be very helpful for us if it would be ordered by created at descending.

On Wed, 12 Aug 2020, 20:59 Neil Crossley, notifications@github.com wrote:

"Not available" was imprecise.

When I view the source of https://nativescript.org/ and https://nativescript.org/blog/ and search for "rss", I do not find any results. Which is unfortunate, as the url https://nativescript.org/rss.xml seems to work and those two would be the sites I'd expect to find the RSS url.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/NativeScript/NativeScript/issues/8606#issuecomment-673024120, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABIGPER3XJLJBBCTKAHHE7LSALJ7NANCNFSM4NQ7QRUA .

rigor789 commented 4 years ago

@Adelrisk thanks for clarifying, I've added

<link rel="alternate" type="application/rss+xml" title="RSS Feed for nativescript.org" href="/rss.xml">

to all pages, that I believe should be enough for RSS readers to pick up on. (If not, let me know - I haven't had enough time to dive deeper).

Other than that, the format is currently limited by the Netlify rss builder. When I have a bit more time, I'll look into generating a correctly ordered feed - though my RSS reader I've been testing with picked up the new posts based on their date - regardless of the order in the rss.xml.

Adelrisk commented 4 years ago

This is now outside of my field of expertise, but as a general user:

Thunderbird will accept and process the direct URL: https://nativescript.org/rss.xml

When I provide it with https://nativescript.org however, something causes a different validation process, which fails with the link: https://validator.w3.org/feed/check.cgi?url=https%3A%2F%2Fnativescript.org%2Fblog%2F

Only two finds cause it to be invalid: "nativescript.org" is not a valid email address for managingEditor and webMaster.

xuhcc commented 3 years ago

https://nativescript.org/rss.xml seems to be broken again

clouedoc commented 2 years ago

Hello, the RSS feed is down. I'll use rss-bridge and follow the issues relevant to me in in the meantime.

kuchta commented 7 months ago

Still broken, even after 3 years :). Probably nothing important happens there 🙂