Skip to content
This repository has been archived by the owner on Jun 21, 2022. It is now read-only.

refactor(macros): Use a more future‑proof method for sidebar slug processing #969

Closed
wants to merge 2 commits into from

Conversation

ExE-Boss
Copy link
Contributor

@ExE-Boss ExE-Boss commented Oct 29, 2018

Part of bug 1519579.

This refactors the sidebar slug processing method to avoid using String.replace(…).

A bonus of this is that sidebar macros ({{APIRef}}, {{CSSRef}}, etc.) are supported outside of Web/<namespace>, eg. Archive/Web/<namespace>, Mozilla/Gecko/Chrome/<namespace>, etc.

Depends on:


review?(@wbamberg)

@ExE-Boss ExE-Boss force-pushed the macros/mdn-common branch 5 times, most recently from 5698f23 to c21842b Compare October 31, 2018 18:15
@ExE-Boss ExE-Boss changed the title [WIP] feat(MDN:Common): Implement trimSlugStart(…) utility method for sidebar macros feat(macros): Add support for sidebar macros in internal trees Oct 31, 2018
@ExE-Boss ExE-Boss force-pushed the macros/mdn-common branch 3 times, most recently from 4c5f685 to 18a4b15 Compare October 31, 2018 18:50
@ExE-Boss ExE-Boss changed the title feat(macros): Add support for sidebar macros in internal trees Bug 1519579: Add support for sidebar macros in internal trees Jan 12, 2019
@ExE-Boss ExE-Boss changed the title Bug 1519579: Add support for sidebar macros in internal trees refactor(macros): Use a more future‑proof method for sidebar slug processing May 11, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants