|
1 | 1 | # Contributing
|
2 | 2 |
|
3 |
| -Interested in contributing to the Material for MkDocs? Have a question? Want to |
4 |
| -report a bug? Before you do, please read the following guidelines. |
5 |
| - |
6 |
| -## Submission context |
7 |
| - |
8 |
| -### Got a question or problem? |
9 |
| - |
10 |
| -For quick questions there's no need to open an issue as you can reach us on |
11 |
| -[gitter.im]. |
12 |
| - |
13 |
| - [gitter.im]: https://gitter.im/squidfunk/mkdocs-material |
14 |
| - |
15 |
| -### Found a bug? |
16 |
| - |
17 |
| -If you found a bug in the source code, you can help us by submitting an issue |
18 |
| -to the [issue tracker] in our GitHub repository. Even better, you can submit |
19 |
| -a Pull Request with a fix. However, before doing so, please read the |
20 |
| -[submission guidelines]. |
21 |
| - |
| 3 | +Material for MkDocs is an actively maintained and constantly improved project |
| 4 | +that serves a diverse user base with varying backgrounds and needs. In order to |
| 5 | +effectively address the needs of all our users, evaluate change requests, and |
| 6 | +fix bugs, we maintainers need to put in a lot of work. We have devoted |
| 7 | +significant effort to creating better templates for our issue tracker, |
| 8 | +optimizing the processes for our users to report bugs, request features or |
| 9 | +changes, contribute to the project, or exchange with our community. |
| 10 | + |
| 11 | +Given the wealth of valuable knowledge contained in numerous issues and |
| 12 | +discussions, we consider our [issue tracker] and [discussion board] to serve as |
| 13 | +a crucial __knowledge base__ that is an important addition to our [documentation] |
| 14 | +and brings value to both new and experienced users of Material for MkDocs. |
| 15 | + |
| 16 | + [discussion board]: https://github.com/squidfunk/mkdocs-material/discussions |
22 | 17 | [issue tracker]: https://github.com/squidfunk/mkdocs-material/issues
|
23 |
| - [submission guidelines]: #submission-guidelines |
24 |
| - |
25 |
| -### Missing a feature? |
26 |
| - |
27 |
| -You can request a new feature by submitting an issue to our GitHub Repository. |
28 |
| -If you would like to implement a new feature, please submit an issue with a |
29 |
| -proposal for your work first to be sure that it is of use to everyone, as |
30 |
| -Material for MkDocs is highly opinionated. Please consider what kind of change |
31 |
| -it is: |
32 |
| - |
33 |
| -* For a **major feature**, first open an issue and outline your proposal so |
34 |
| - that it can be discussed. This will also allow us to better coordinate our |
35 |
| - efforts, prevent duplication of work, and help you to craft the change so |
36 |
| - that it is successfully accepted into the project. |
37 |
| - |
38 |
| -* **Small features and bugs** can be crafted and directly submitted as a Pull |
39 |
| - Request. However, there is no guarantee that your feature will make it into |
40 |
| - the `master`, as it's always a matter of opinion whether if benefits the |
41 |
| - overall functionality of the project. |
42 |
| - |
43 |
| -### Missing translations? |
44 |
| - |
45 |
| -Material for MkDocs supports 60+ languages with the help of community |
46 |
| -contributions. When new features are added, sometimes, new translations are |
47 |
| -necessary as well. It's impossible for the maintainers of the project to update |
48 |
| -all translations (we just don't speak 60+ languages), so we have to rely on |
49 |
| -our contributors to update translations incrementally. This process is pretty |
50 |
| -simple, so if you find a translation missing in your language, follow these |
51 |
| -guidelines: |
52 |
| - |
53 |
| -1. Fork the repository. |
| 18 | + [documentation]: https://squidfunk.github.io/mkdocs-material/ |
54 | 19 |
|
55 |
| -2. Open up the [translation file for your language] as well as the |
56 |
| - [English translations], as they are always up-to-date. Compare them |
57 |
| - side-by-side and add the missing translations. __Important__: only add the |
58 |
| - translations that are different from the defaults, e.g. if your language |
59 |
| - is left-to-right, don't add the `direction` translation, as English is |
60 |
| - left-to-right as well. The following translations are for technical |
61 |
| - purposes and should not be updated, so if they're missing from your |
62 |
| - language, it's for good reason: |
| 20 | +## How to contribute |
63 | 21 |
|
64 |
| - - `search.config.lang` |
65 |
| - - `search.config.pipeline` |
66 |
| - - `search.config.separator` |
| 22 | +### Creating an issue |
67 | 23 |
|
68 |
| -3. Create a PR (see below) with your changes. |
| 24 | +- #### [Report a bug] |
69 | 25 |
|
70 |
| - [translation file for your language]: https://github.com/squidfunk/mkdocs-material/tree/master/src/partials/languages |
71 |
| - [English translations]: https://github.com/squidfunk/mkdocs-material/tree/master/src/partials/languages/en.html |
| 26 | + __Something is not working?__ Report a bug in Material for MkDocs by |
| 27 | + creating an issue with a reproduction |
72 | 28 |
|
73 |
| -## Submission guidelines |
| 29 | +- #### [Report a docs issue] |
74 | 30 |
|
75 |
| -### Submitting an issue |
| 31 | + __Missing information in our docs?__ Report missing information or |
| 32 | + potential inconsistencies in our documentation |
76 | 33 |
|
77 |
| -Before you submit an issue, please search the issue tracker, maybe an issue for |
78 |
| -your problem already exists, and the discussion might inform you of workarounds |
79 |
| -readily available. |
| 34 | +- #### [Request a change] |
80 | 35 |
|
81 |
| -We want to fix all the issues as soon as possible, but before fixing a bug, we |
82 |
| -need to reproduce and confirm it. In order to reproduce bugs, we will |
83 |
| -systematically ask you to provide a minimal reproduction scenario using the |
84 |
| -custom issue template. Please stick to the issue template. |
| 36 | + __Want to submit an idea?__ Propose a change, feature request, or |
| 37 | + suggest an improvement |
85 | 38 |
|
86 |
| -Unfortunately, we are not able to investigate / fix bugs without a minimal |
87 |
| -reproduction scenario, so if we don't hear back from you, we may close the issue. |
| 39 | +- #### [Ask a question] |
88 | 40 |
|
89 |
| -### Submitting a Pull Request (PR) |
| 41 | + __Have a question or need help?__ Ask a question on our [discussion board] |
| 42 | + and get in touch with our community |
90 | 43 |
|
91 |
| -Search GitHub for an open or closed PR that relates to your submission. You |
92 |
| -don't want to duplicate effort. If you do not find a related issue or PR, |
93 |
| -go ahead. |
| 44 | +### Contributing |
94 | 45 |
|
95 |
| -1. **Development**: Fork the project, set up the [development environment], |
96 |
| - make your changes in a separate git branch and add descriptive messages to |
97 |
| - your commits. |
| 46 | +- #### [Add a translation] |
98 | 47 |
|
99 |
| -2. **Build**: Before submitting a pull request, [build the theme]. This is |
100 |
| - a mandatory requirement for your PR to get accepted, as the theme should be |
101 |
| - installable through GitHub at all times. |
| 48 | + __Missing support for your language?__ Add missing translations for a new |
| 49 | + or already supported language |
102 | 50 |
|
103 |
| -3. **Pull Request**: After building the theme, commit the compiled output, |
104 |
| - push your branch to GitHub and send a PR to `mkdocs-material:master`. If we |
105 |
| - suggest changes, make the required updates, rebase your branch and push the |
106 |
| - changes to your GitHub repository, which will automatically update your PR. |
| 51 | +- #### [Create a pull request] |
107 | 52 |
|
108 |
| -After your PR is merged, you can safely delete your branch and pull the changes |
109 |
| -from the main (upstream) repository. |
| 53 | + __Want to create a pull request?__ Learn how to create a comprehensive |
| 54 | + and useful pull request (PR)s |
110 | 55 |
|
111 |
| - [development environment]: https://squidfunk.github.io/mkdocs-material/customization/#environment-setup |
112 |
| - [build the theme]: https://squidfunk.github.io/mkdocs-material/customization/#building-the-theme |
| 56 | + [Report a bug]: reporting-a-bug.md |
| 57 | + [Report a docs issue]: reporting-a-docs-issue.md |
| 58 | + [Request a change]: requesting-a-change.md |
| 59 | + [Ask a question]: https://github.com/squidfunk/mkdocs-material/discussions |
| 60 | + [Add a translation]: https://github.com/squidfunk/mkdocs-material/adding-a-translation |
| 61 | + [Create a pull request]: https://github.com/squidfunk/mkdocs-material/pulls |
0 commit comments