MDN data contribution guide
November 3, 2023 ยท View on GitHub
Thanks for taking the time to contribute to MDN Web Docs! :tada: This file lists some general guidelines to help you contribute effectively.
Publishing a release
Details about publishing a release can be found in the publishing guide.
Types of contribution
There are many ways you can help improve this repository! For example:
General tasks
- Fixing a bug: we have a list of issues, or maybe you found your own.
- Reviewing a pull request: there is a list of PRs. Let us know if these look good to you.
- Localizing strings: translations are in the l10n folder. You can add your locale.
Note: Commits need to adhere to conventional commits and only fix: and feat: commits are considered.
CSS data tasks
- Updating CSS data: familiarize yourself with the CSS schema files and add missing CSS data. An additional guide is provided in the How to update the CSS JSON DB document.
Validating the data
You can use npm test to validate data against the schema. You might need to install the devDependencies using npm install --dev.
Reviewer's checklist
Not everything is enforced or validated by the schema. A few things a reviewer should pay attention to:
- Make sure
npm testreports no errors. - Double check the data using the latest specifications.
Code style
The JSON files should be formatted according to the .editorconfig file.
Licensing
Please note that the compatibility data is made available under the CC0 1.0 Universal (public domain) license, so any contributions must be compatible with that license. If you're not sure about that, just ask.
Getting help
If you need help with this repository or have any questions, contact the MDN team in the #mdn IRC channel on irc.mozilla.org or write us on discourse.