-
Notifications
You must be signed in to change notification settings - Fork 22.5k
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
Stop transcluding live sample sources #15872
Comments
Command used to generate that list: |
This is too loose, as it is catching lines like https://github.com/mdn/content/blob/main/files/en-us/web/css/filter/index.md?plain=1#L177:
|
I think this is better: (I've updated the link in the OP) |
Excellent idea. Once we're done, I think we should explicitly prohibit this macro importing from other pages. |
So, most of them were fake transclusions 😄 |
Given that this macro param is (still) used on But maybe we can add a non-failing (à la |
I think if we remove the usage from the documentation then we won't see new cases. |
They can forget a parameter and suddenly there is something in the parameter that will break the system. I've seen numerous typos appearing in the flaw dashboard (and mixing the number of empty parameters is easy), despite the review system. I would prefer to have a security net here given I don't see transclusion going away soon in mdn/translated-content. |
Need to update the list in OP. It shows 6 tasks remaining. |
Looks like transclusion hasn't reached the conclusion 🙃: The regexes didn't use double quotes. |
Let's reopen this. |
GitHub needs a :sob reaction. |
For reference, here's a working regex you could use: |
🎉 great work @queengooborg and @cw118 ! |
What he said ^^^^ !!!! |
The
{{EmbedLiveSample}}
macro has a feature in which you can ask to include sources not from the current page but from a different page.According to @escattone this along with
{{page}}
was one of the things that made KS much more complicated than it needed to be (because it introduced a build dependency between source and target).Now we are close to 0 occurrences of
{{page}}
in mdn/content (thanks mostly to @hamishwillee ) it would be nice to remove this other source of complexity.These are all the pages that make use of this feature of
{{EmbedLiveSample}}
:The text was updated successfully, but these errors were encountered: