-
Notifications
You must be signed in to change notification settings - Fork 509
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(macro/MDNSidebar): rewrite macro + add missing pages #10329
Conversation
This looks great! Did you consider using the design in https://github.com/mdn/yari/blob/main/kumascript/macros/LearnSidebar.ejs, which derives link text from page titles wherever possible, to avoid these huge string maps for l10n? See also #8132. |
@wbamberg I've updated the macro to use titles. It does render well in local environment. But don't know why the |
FWIW I think it's okay to remove that test. |
Done in bbafd23 Also removed from the content kitchensink page: mdn/content#31846 |
bbafd23
to
bf7379b
Compare
@caugner, please let me know if you're OK for me to review+merge this PR, or if you want to look. |
Let me run this by the content team, to be sure. |
I think we need to wait till mdn/content#31868 is fixed. We'll have to update the macro again after those changes are done. |
mdn/content#31878 fixed that meanwhile. |
bf7379b
to
d247ff0
Compare
@caugner I've updated this PR accordingly. We can merge this now. |
@OnkarRuikar Thank you. Can you please add Before/After screenshots to the PR description? This will make it easier to have the change reviewed by the content team. |
Done! |
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.
Had a quick chat with the content team, and all looks good, but can we change the order as follows: 🙏
- Community guidelines
- Writing guidelines
- PAB
- History
Add all the pages under https://github.com/mdn/content/tree/main/files/en-us/mdn to the macro.
All the documents under the dir hierarchy have been added. Sequence is as per mentions of the pages in coresponding overview pages.
mdnSidebar.mp4
Screenshots
Before change
After changes