-
Notifications
You must be signed in to change notification settings - Fork 516
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
enhance(macros/JSRef): refactor + update inheritance data + separate instance/static methods/properties #8502
Conversation
kumascript/macros/JSRef.ejs
Outdated
if (group.length > 0) { | ||
output += `<li><strong>${text.Related}</strong></li>`; | ||
for (const groupItem of group) { | ||
const link = web.smartLink( | ||
`${slugStdlib}/${groupItem.replace(".", "/")}`, | ||
null, | ||
`<code>${groupItem}</code>`, | ||
null, | ||
slugStdlib, | ||
"JSRef", | ||
); | ||
output += `<li><strong>${link}</strong></li>`; |
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.
Because the inheritance chain is now proper, there's less need for the "related pages" part (except for Intl
, where navigation remains a bit awkward). I've thus put it below "inheritance" to avoid obstructing the more structured information.
6a7bf17
to
dd0c1ab
Compare
cc @wbamberg in case you missed it—this should interest you |
This pull request has merge conflicts that must be resolved before it can be merged. |
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.
LGTU (@argl @fiji-flo @caugner) and is currently deployed at https://developer.allizom.xyz/, thanks a lot.
We'll loop in the MDN content team once more before merging.
This pull request has merge conflicts that must be resolved before it can be merged. |
Thank you @Josh-Cena! 🙌 |
Nice! Thanks! |
Summary
Fix #8052. This should replace #8269.
Problem
The inheritance is useless; static properties/methods and instance properties/methods are not differentiated.
Solution
This PR is a total refactor of the
JSRef
implementation. With this change, I hope the sidebar can be more useful.Screenshots
How did you test this change?