Contribute to Hydra

From Gamepedia Help Wiki
Jump to: navigation, search

If you want to contribute a CSS fix, translation, or other issue to the Hydra code base, it's pretty easy to do! You will need a GitLab account.

Note that this guide explains how to use the web interface. If you are doing involved development, you should have Git installed, and make changes locally using the Git command line interface to push them to your remote. That is outside of the scope of this page.

Opening the code file[edit | edit source]

  1. Go to https://gitlab.com/hydrawiki. If you are contributing a CSS change, you will want to then go to the Skins project. A translation change will vary depending on what the translation is for; ask for help if you aren't sure.
  2. Navigate to the code file that you want to change. If it's a CSS change, this will be in the /css directory.

Here is an example navigation to make a Hydradark change:

Making your change[edit | edit source]

  1. Log into your GitLab account if you didn't already.
  2. Click the "Edit" button or the "Web IDE" button in the upper-right corner of the file, depending on which interface you want to use.
  3. You will see a message saying `You're not allowed to edit files in this project directly. Please fork this project, make your changes there, and submit a merge request.`. Click "Fork."
  4. Make your change. Be careful to follow existing whitespace conventions! You might want to make your change locally in an editor like SublimeText or Notepad++.

Opening a Merge Request (MR)[edit | edit source]

You might have heard the term "pull request" on GitHub, it's the same thing, but GitLab calls them "merge requests."

  1. After making your changes, edit the "Commit message" field to have a brief explanation of your changes, for example, "Improve the style of greyed-out Save option in preferences."
  2. Then press Commit changes.
  3. It will automatically bring you to a screen to open a merge request. Add a description including why you made the change, and any other relevant information.
  4. Scroll down and click "Submit merge request" and you're done!