-
Notifications
You must be signed in to change notification settings - Fork 8.1k
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
fr: Removes duplicated frontmatter keys (learn folder) #13663
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
multi-line metadata should be properly removed.
As far as I can see (I searched for : >-
):
/files/fr/learn/forms/how_to_build_custom_form_controls/index.md
/files/fr/learn/forms/how_to_build_custom_form_controls/example_1/index.md
/files/fr/learn/forms/how_to_build_custom_form_controls/example_2/index.md
/files/fr/learn/forms/how_to_build_custom_form_controls/example_3/index.md
/files/fr/learn/forms/how_to_build_custom_form_controls/example_4/index.md
/files/fr/learn/forms/how_to_build_custom_form_controls/example_5/index.md
/files/fr/learn/javascript/objects/adding_bouncing_balls_features/index.md
need to be edited.
files/fr/learn/forms/how_to_build_custom_form_controls/index.md
Outdated
Show resolved
Hide resolved
@Lou8is thanks that was fast :) (I was working on it locally as well) |
I had time and saw the notification so... 😄 |
thanks for this (and for all the work on this PR and the others) I think it has to do with the content used from the subpages in the |
I'll be back at it later tonight or tomorrow :) |
Well removing EmbedLiveSample macros from /fr/docs/Learn/Forms/How_to_build_custom_form_controls also removes the errors so you were right. However, i compared that with the EN content, and it does not seems to be any difference regarding that. I suspect the error comes from arguments being deprecated in the EmbedLiveSample macro (see line 17 of https://github.com/mdn/yari/blob/main/kumascript/macros/EmbedLiveSample.ejs). That might be a whole other issue to rewrite pages so they don't call out-of-page code samples. |
It seems that the EmbedLiveSample macros on the en-US page need to be updated as well. I opened an issue on mdn/content to confirm and I am preparing a pull request (for en-US). |
The accepted solution on en-US (cf. mdn/content#27813) was to copy the code of each EmbedLiveSample from the Some comments (Styles requis, etc.) were removed from the hidden codeblocks (not from the See the pull request diff on mdn/content for more details, and let us know if help is needed for fixing the live samples :) |
I've fixed that page as you demonstrated and did not thought about looking into the other pages. Seems like these files are also impacted, at list in the FR translation. I'm working on them but listing them if you'd like to check the EN content. (Impacted macros per page)
|
Some macros use "hide-codepen-jsfiddle" as parameter $6. Removing it does not seem to have functional impact, however it changes the page display (more margins or something). Any advice on that? Edit: checks passed, maybe I did not modified those files. I could modified them in this PR or in a separate one. |
Parameter $6 is also deprecated. However, some say that it was incorrectly/prematurely deprecated, so MDN might keep this parameter. In case MDN does keep parameter $6 (perhaps also parameter $5) in the future, I would say if the @SphinxKnight any thoughts regarding parameters $5 and $6 of EmbedLiveSample? |
Since this PR already modifies a lot of files/lines and the scope is not to fix EmbedLiveSample macros (and clarification is needed regarding parameters $5 and $6), let's remove the remaining deprecated EmbedLiveSample parameters in a separate one. |
Agreed :) |
@SphinxKnight hmm not convinced I've managed this one correctly, I might need some help on reverting (or I could just re-do the edits on a clean branch).
|
@Lou8is if you made sure the "newer commits" were on another branch for #14401 , there's no need to create another branch, locally (assuming you have
Since you have Please let me know if you need help in a "synchronous" way and I'll gladly help :) |
since the changes now touch a lot of files (incl. other locales and some engine/core stuff who were added as reviewers), I'll go ahead for the push |
1976cf2
to
a851416
Compare
Yeah thanks for handling that. I obviously messed up with git. |
Description
Removes duplicated frontmatter keys (see #7412) from the files/fr/learn sub-folder.
Only
title
,short_title
,slug
andl10n.*
are left, essentially removedtags
,original_slug
,browser-compat
,file-type
.Motivation
Help keeping the FR translation nice and up-to-date :)
Additional details
Related issues and pull requests
Relates to #7412
Relates to 6 other PR for the other subfolders (#13629, #13630, #13631, #13632, #13633, #13664)