microsoft / rushstack-websites

Doc content for the Rush Stack websites.
Creative Commons Attribution 4.0 International
27 stars 73 forks source link

[rushstack] Add a Mastodon feed component to the "News" page #204

Closed octogonz closed 1 year ago

octogonz commented 1 year ago

Twitter embedding has been broken for some time, and even when it worked, their control never looked very professional on our website. Also it seems Twitter now blocks users from viewing your feed unless they log in. 😆

This PR introduces a React component that can display our Mastodon feed inside a Docusaurus page.

(I did look around for an existing library, but there aren't a lot of professional grade solutions. The implementation here is very loosely based on https://github.com/sampsyo/emfed/ )

Design goals

If this experiment is successful, we can eventually generalize the component and publish it to NPM, or contribute it back to an existing project such as emfed.

Live page

https://rushstack.io/pages/news/

Screenshot

image