How to contribute
We appreciate pull requests from everyone.
You can participate in many ways. The documentation is available in a Git repository with the design assets needed for your project. You can get all of them, change anything and send the changes back.
Fork, then clone the repo:
$ git clone email@example.com:your-username/WikimediaUI-Style-Guide.git
Setup your system. Change to the cloned folder and type:
$ npm install
Make your changes. To automatically watch for changes, run:
$ npm run start
Make sure the tests pass and the CSS for production is built:
$ npm run build
Get the design repository
The WikimediaUI Style Guide repository is available to download. It contains this documentation, Sketch and SVG templates and resources. Select the “clone or download” button to get the repository.
Easily contribute to the content of the style guide by adding new recommendations, making corrections or adding examples in the form of images or videos:
In order to publish the updated contents to be available live, go to the repo and launch the following command from a terminal:
git push -f origin master:gh-pages
Please add specific topics into a single commit and also take into account the Wikimedia commit message guidelines.
Push to your fork and submit a pull request
In order for the pushed changes to be available live, members of Wikimedia design are going to review it first.
Contribute beyond content
You can also help to improve how this documentation looks and works.
When modifying aspects such as the CSS styling you'll need to rebuild the production files using Grunt (which requires Node.js and npm). The first time you have to run
npm install in a terminal from the style guide's main folder in order to get all necessary dependencies. To rebuild the CSS files after changing them in
wmui-style-guide.dev.css you just need to launch the
grunt command in a terminal, also from the main folder.
These requirements provide our contributors a reliable environment and our viewers a performant experience.