Replies: 4 comments 7 replies
-
If possible, I would suggest to keep the slug same as the file name (remove parenthesis from both), so that it is easier to remember the guideline and keep things consistent. |
Beta Was this translation helpful? Give feedback.
-
There are a few buckets here:
|
Beta Was this translation helpful? Give feedback.
-
The document https://github.com/bartvandebiezen/file-name-conventions has a lot of good points. Using what the element is better than mimicking the syntax (
I like the idea of dropping acronym and using only the full form. |
Beta Was this translation helpful? Give feedback.
-
Just circling back to this one, I'd like to put a +1 on renaming the files to remove the parentheses from at least the file path so that we resolve issues such as this one: mdn/content#23602. With so few changes needed, I think it's worth it. |
Beta Was this translation helpful? Give feedback.
-
We have an open pull request that renames a few files: mdn/content#20470
Background:
/path/to/function_(CSS)
/path/to/CSS_function
What to decide:
Thanks to @teoli2003 for suggesting the following to discuss:
I would also quote @Josh-Cena who had a proposal for the specific PR:
This would get rid of the need to add/change redirects, and allow linting tooling to parse the paths properly.
List of files (if slug is single-line value):
grep -rE "slug:.+?\(" files files/en-us/web/css/_colon_-moz-locale-dir(ltr)/index.md:slug: Web/CSS/:-moz-locale-dir(ltr) files/en-us/web/css/_colon_-moz-locale-dir(rtl)/index.md:slug: Web/CSS/:-moz-locale-dir(rtl) files/en-us/web/http/cross-origin_resource_policy_(corp)/index.md:slug: Web/HTTP/Cross-Origin_Resource_Policy_(CORP) files/en-us/glossary/round_trip_time_(rtt)/index.md:slug: Glossary/Round_Trip_Time_(RTT) files/en-us/glossary/xhr_(xmlhttprequest)/index.md:slug: Glossary/XHR_(XMLHttpRequest) files/en-us/glossary/descriptor_(css)/index.md:slug: Glossary/Descriptor_(CSS)
Beta Was this translation helpful? Give feedback.
All reactions