We would like to delete unused KumaScript macros, so it’s easier for us to improve the macros that we actually use and need. Many macros are used only (or mostly) in MDN pages that have been archived (for example, there are a bunch of B2G ones).
If we just delete these macros from KumaScript without updating the MDN pages to remove the places they are called, then we will see errors in those pages (as in the pages listed here https://developer.mozilla.org/en-US/docs/with-errors).
I can think of three approaches to this problem:
- just delete the macros from KumaScript, and don’t worry about errors in archived pages. This is the least work approach. Since the pages are archived anyway, it doesn’t matter too much that they now contain errors. This approach has 2 drawbacks:
- (lots of) extra noise in the https://developer.mozilla.org/en-US/docs/with-errors
- the archived pages will now be broken, which would be a problem if anyone ever wants to use them
-
update all the archived pages to remove the macro calls, then delete the macros. The problem with this is that it would involve updating thousands of pages manually.
-
render all the archived pages, running the macros, then replace the pages with the rendered version. So the archived pages would no longer contain any macro calls. This seems like a good approach, but I don’t know what the difficulty of doing it would be.