Skip to content
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(macros): add XsltSidebar for XSLT pages #9021

Merged
merged 3 commits into from
Jun 5, 2023
Merged

Conversation

bsmth
Copy link
Member

@bsmth bsmth commented Jun 5, 2023

Summary

This PR improves the XSLT ref macro to use the same structure as the GlossarySidebar macro.

Problem

There are no / poor sidebars on XSLT pages. Currently, it uses an xsltref macro which renders a few links on some sub-pages in a kind of 'breadcrumb' style.

Solution

This macro XsltSidebar would deprecate the usage of xsltref and add sidebars to all sub-pages under that technology category.

If this pull request lands, I would remove usage of {{xsltref}} from content and push to delete this macro when unused in all locales.

Screenshots

Before

image

After

image

How did you test this change?

localhost with yarn && yarn dev

@bsmth bsmth requested a review from caugner June 5, 2023 14:35
@github-actions github-actions bot added the macros tracking issues related to kumascript macros label Jun 5, 2023
Copy link
Contributor

@caugner caugner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, just one nit.

kumascript/macros/XsltSidebar.ejs Outdated Show resolved Hide resolved
@caugner caugner changed the title feat: add XSLTSidebar for XSLT pages feat(macros): add XSLTSidebar for XSLT pages Jun 5, 2023
@bsmth bsmth marked this pull request as ready for review June 5, 2023 19:06
@caugner caugner changed the title feat(macros): add XSLTSidebar for XSLT pages feat(macros): add XsltSidebar for XSLT pages Jun 5, 2023
@caugner caugner merged commit bddd9f7 into mdn:main Jun 5, 2023
@bsmth bsmth deleted the xslt-sidebars branch June 8, 2023 10:41
@bsmth
Copy link
Member Author

bsmth commented Jun 8, 2023

Thank you, @caugner 🙏🏻

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
macros tracking issues related to kumascript macros
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants