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

feat: Add RSS for affine.pro #165

Closed
wants to merge 0 commits into from

Conversation

asad0206
Copy link

Issue : #143

-Added RSS support for the website
Utilized RSS node js package which is a lightweight and independent package

image

You can see the example ss attached.

Please check the Pull Request and allow for the merge, In case of any issue please contact me. Thank you!

Copy link

vercel bot commented Sep 17, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
affine-pro ✅ Ready (Inspect) Visit Preview Sep 18, 2024 6:05pm

@asad0206
Copy link
Author

asad0206 commented Sep 17, 2024

@pengx17 Please check this PR and merge the same. If the code is upto ur standards.

It can be accessed by website_url/rss.xml

Copy link
Collaborator

@lawvs lawvs left a comment

Choose a reason for hiding this comment

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

Please remove package-lock.json

Copy link
Contributor

@pengx17 pengx17 left a comment

Choose a reason for hiding this comment

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

Thanks for your contribution!
Some changes that need to be made before merging:

  1. All files in content are static thus there is no need to have a dynamic API handler for RSS. Can you instead write a new script in /generation and run it in github action instead?
  2. No need to parse file with gray-matter again. All content's metadata is already parsed and in json format.
  3. I think you can just generate RSS for the blog files, excluding the templates and changelog.

@asad0206
Copy link
Author

asad0206 commented Sep 18, 2024

Okay give me some time and I will do the requested changes ASAP. Sorry for the delay

Sorry for the bad PR , new to open source

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.

3 participants