-
Notifications
You must be signed in to change notification settings - Fork 248
feat: show strikethrough on deprecated endpoints in sidebar #2795
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
base: main
Are you sure you want to change the base?
Conversation
… field This allows the UI to detect whether a node is deprecated and display visual indicators accordingly.
Extracts 'deprecated? from each node’s data and assigns it to the TOC structure so the sidebar can reflect it visually.
Hi! 👋 |
✅ Deploy Preview for stoplight-elements-demo ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
✅ Deploy Preview for stoplight-elements ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Hi @Relionnn, Thanks in advance! |
Elements Default PR Template
In general, make sure you have: (check the boxes to acknowledge you've followed this template)
CONTRIBUTING.md
Summary
This PR enhances the Table of Contents (sidebar) to visually indicate deprecated API endpoints by applying a strikethrough style to their titles.
Why
Currently, the only way to see if an endpoint is deprecated is to click into its detail view. This change improves visibility and helps developers quickly identify deprecated operations from the sidebar.
Changes
deprecated
flag into theTableOfContentsNode
dataTableOfContentsNode
type to include adata.deprecated
booleanline-through
style whendeprecated
istrue
Related issue
Implements the idea suggested in an existing issue:
Other Available PR Templates:
CONTRIBUTING.md