-
-
Notifications
You must be signed in to change notification settings - Fork 229
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
Add a way of marking articles as deprecated #3912
Conversation
Quick links (staging server):
Login:
SVG tester:Number of differences (default views): 0 ✅ Edited: 2024-08-30 10:22:40 UTC |
c3bb96a
to
4409b25
Compare
This is ready for review, but there is a chance the design will change slightly. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good overall! Just a few code nitpicks really.
Do you know if we still want to index deprecated articles and show them in the sitemap?
Co-authored-by: Ike Saunders <[email protected]>
Hey @rakyi sorry I went ahead and yak-shaved on your work without your blessing, but I realized earlier today in the cursor demo that my suggestion of using The only truly critical fix I made was in GdocFactory where I noticed a leading slash was there where it shouldn't be, which is what made me realize we should be using constants for these 2 filenames. If you'd prefer, you can revert my changes (though you'll need to fix the leading slash again) and I'll add the constants in a separate PR. Also, do we want to exclude archived posts from the sitemap and search index? 🙂 |
Thank you for the changes!
I forgot to reply to this before. We shouldn't exclude these posts from search and sitemap. |
Once you merge this, don't forget to add an example to the article documentation gdoc 🙂 You'll probably have to write it in the body and escape it so that ts-pattern doesn't complain - otherwise the docs themselves will have the deprecation notice which we probably don't want. |
Yeah, I was meaning to do that. Thank you for the tip! |
No description provided.