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

fix(macros/CSS_Ref): fix special cases #10241

Merged
merged 1 commit into from
Feb 12, 2024
Merged

Conversation

teoli2003
Copy link
Contributor

@teoli2003 teoli2003 commented Dec 28, 2023

Summary

{{CSS_Ref}} creates an index of CSS features at https://developer.mozilla.org/en-US/docs/Web/CSS/Reference. It takes data from mdn/data and has some hardcoded "exceptions".

Over the years, this list got outdated: some new exceptions are missing, and some old ones need to be updated.

Problem

Links generated by CSS_Ref are sometimes incorrect. This PR fixes those that can be fixed. Note that mdn/data#697 removed abandoned values.

Solution

Updated the exception list.

Screenshots

No change in UI

Before:

Capture d’écran 2023-12-28 à 12 43 29

After

Capture d’écran 2023-12-28 à 12 43 22

Note: more message will be removed once mdn/data#697 is in prod. (the remaining ones are missing pages)

How did you test this change?

Locally, clicking on the links I changed to test them.

Note: One day, we will sever the connection to mdn/data (and likely use page-type: to select an entry if we keep the macro at all.

@teoli2003 teoli2003 requested a review from a team as a code owner December 28, 2023 11:42
@github-actions github-actions bot added the macros tracking issues related to kumascript macros label Dec 28, 2023
@caugner caugner changed the title Fix special cases in CSS_Ref macro fix(macros/CSS_Ref): fix special cases Jan 25, 2024
Copy link
Contributor

@fiji-flo fiji-flo left a comment

Choose a reason for hiding this comment

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

Thanks for cleaning up 👍 .

@fiji-flo fiji-flo merged commit 3cc3204 into mdn:main Feb 12, 2024
9 checks passed
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