|
| 1 | +# Contributing |
| 2 | + |
| 3 | +Thank you for your interest in contributing to the Multi Theft Auto: Wiki. This guide will help you get started. |
| 4 | + |
| 5 | +## Getting Started |
| 6 | + |
| 7 | +1. **Fork the Repository** |
| 8 | + - Click the "Fork" button at the top-right of this GitHub repository's page to create your own copy. |
| 9 | + |
| 10 | +2. **Clone the Repository** |
| 11 | + - Clone your forked repository to your local machine ([tutorial](https://docs.github.com/en/repositories/creating-and-managing-repositories/cloning-a-repository)). |
| 12 | + |
| 13 | +3. **Create a Branch** |
| 14 | + - Before making any changes, create a new branch to keep your work organized ([tutorial](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/creating-and-deleting-branches-within-your-repository)). |
| 15 | + |
| 16 | +## Editing Wiki Pages |
| 17 | + |
| 18 | +The Wiki is generated by code, which relies on data present in this repository. Most text content uses the Markdown format. You can edit the files to make changes to the Wiki pages. |
| 19 | + |
| 20 | +1. Navigate to the folder that contains the page you want to edit. |
| 21 | + |
| 22 | + - Articles are defined in the [articles](/articles) folder. |
| 23 | + - Lua Functions are defined in the [functions](/functions) folder. |
| 24 | + - Lua Events are defined in the [events](/events) folder. |
| 25 | + - Lua Elements are defined in the [elements](/elements) folder. |
| 26 | + - Additional asset files can be stored in the [assets](/assets) folder. |
| 27 | + |
| 28 | +2. Each folder may contain a `README.md` file with instructions or guidelines specific to the files in that directory. **Read these instructions carefully before making changes.** |
| 29 | + |
| 30 | +3. Make your edits to the relevant file(s) using your preferred text editor. |
| 31 | + |
| 32 | +## Testing Your Changes |
| 33 | + |
| 34 | +Follow the provided instructions in the [`web/README.md`](/web/README.md) file. |
| 35 | + |
| 36 | +## Submitting Your Changes |
| 37 | + |
| 38 | +1. Commit your changes with a clear and descriptive message, e.g. `Add new article on scripting events`. |
| 39 | + |
| 40 | +2. Push your branch to your forked repository. |
| 41 | + |
| 42 | +3. Open a Pull Request: |
| 43 | + - Go to the original repository ([https://github.com/multitheftauto/mtasa-wiki](https://github.com/multitheftauto/mtasa-wiki)). |
| 44 | + - Click "Pull Requests" and then "New Pull Request." |
| 45 | + - Select your branch from your fork as the source and submit your pull request. |
| 46 | + |
| 47 | +## Guidelines |
| 48 | + |
| 49 | +- Follow the structure and formatting conventions used in the existing files. |
| 50 | +- Make sure your edits are clear, concise, and accurate. |
| 51 | +- Provide useful commit messages to explain your changes. |
| 52 | +- If you have questions or need clarification, open an issue or ask for help in your pull request. |
| 53 | + |
| 54 | +We appreciate your contributions to improving the Multi Theft Auto: Wiki! |
0 commit comments