-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
Remove duplicated frontmatter keys from localized content #7412
Comments
@queengooborg is there any "deadline" or something blocked by this or can we go progressively during "new" edits on pages? Note to self: double-check |
This can be done progressively and isn't blocking anything, so it can be done at our own leisure! |
Without testing, I'd go for removing |
Done for l10n-zh |
I made a script to batch delete. ruby remove_frontmatter_keys.rb files\ja\webassembly Remove anything but the meta below.
|
As pointed out by @yin1999, frontmatter metadata (ex. tags, title) is combined with the metadata from the original en-US docs. As such, keys such as tags, browser-compat, and spec-urls is redundant to copy to the localized content. These duplicated keys should be removed from the localized docs for easier maintenance overall. We should only keep:
title
,short_title
,slug
,andoriginal_slug
l10n.*
.Edit; July 18, 2023
A configuration file is now present in this repository, which will let us utilize the frontmatter linter in upstream content! To use the linter to fix the frontmatter, perform the following:
The text was updated successfully, but these errors were encountered: