Debian Codegraph @

docs/contributing.rst

raw
1 Contributing
2 ============
3
4 If you would like to contribute to the project, please do not hesitate to get
5 involved! Here you can find how best to get started.
6
7 Contributing to Errbot itself
8 -----------------------------
9
10 Clone Errbot
11 ~~~~~~~~~~~~
12
13 All development on Errbot happens on GitHub_. If you'd like to get involved, just
14 fork_ the repository and make changes in your own repo. When you are satisfied
15 with your changes, just open a `pull request`_ with us and we'll get it reviewed
16 as soon as we can! Depending on our thoughts, we might decide to merge it in
17 right away, or we may ask you to change certain parts before we will accept the
18 change.
19
20 Run Errbot from source
21 ^^^^^^^^^^^^^^^^^^^^^^
22
23 Clone you github fork repo locally and install errbot in development mode from the root of the repo with::
24
25 pip install -e .
26
27 From there, anytime you execute `errbot` it will run from the checked out version of Errbot with all your local
28 changes taken into account.
29
30 Preparing your pull request
31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^
32
33 In order to make the process easy for everyone involved, please follow
34 these guidelines as you open a pull request.
35
36 * Make your changes on a separate branch_, preferably giving it a descriptive name.
37 * Split your work up into smaller commits if possible, while making sure each commit
38 can still function on its own. Do not commit work-in-progress code - commit it
39 once it's working.
40 * Run tox before opening your pull request, and make sure all tests pass.
41 You can install tox with :command:`pip install tox`
42 * If you can, please add tests for your code. We know large parts of our codebase
43 are missing tests, so we won't reject your code if it lacks tests, though.
44
45 Contributing documentation & making changes to the website
46 ----------------------------------------------------------
47
48 `errbot.io <http://www.errbot.io/>`_ is created using Sphinx_, which also doubles
49 as a generator for our (API) documentation. The code for it is in the same repository
50 as Errbot itself, inside the docs_ folder. To make changes to the documentation or the
51 website, you can build the HTML locally as follows::
52
53 # Install the required extra dependencies from the root of the repository.
54 pip install -r docs/requirements.txt
55 # Go into the docs directory
56 cd docs/
57 # Generate the static HTML
58 make html
59 # Then, open the generated _build/html/index.html in a browser
60
61 To submit your changes back to us, please make your change in a separate branch as
62 described in the previous section, then open a pull request with us.
63
64 .. note::
65 You must do this with Python 3, Python 2 is unsupported.
66
67 Issues and feature requests
68 ===========================
69
70 Please report issues or feature requests on the `issue tracker`_ on GitHub.
71
72 When reporting issues, please be as specific as possible. Include things such as
73 your Python version, platform, debug logs, and a description of what is happening.
74 If you can tell us how to reproduce the issue ourselves, this makes it a lot
75 easier for us to figure out what is going on, as well.
76
77 Getting help
78 ============
79
80 The best place to get help if you get stuck with anything is to ask for advice
81 on our Gitter_ chat room. If nobody is around to help you, opening an issue on
82 the `issue tracker`_ is your next best option.
83
84 If you have a code-related question concerning (plugin) development it's best
85 to ask your question on Stack Overflow, `tagged errbot
86 <http://stackoverflow.com/questions/tagged/errbot>`_.
87
88 .. _GitHub: https://github.com/errbotio/errbot
89 .. _fork: https://github.com/errbotio/errbot/fork
90 .. _`pull request`: https://help.github.com/articles/using-pull-requests
91 .. _branch: http://git-scm.com/book/en/Git-Branching
92 .. _Sphinx: http://sphinx-doc.org/
93 .. _docs: https://github.com/errbotio/errbot/tree/master/docs/
94 .. _repos.py: https://github.com/errbotio/errbot/blob/master/errbot/repos.py
95 .. _`issue tracker`: https://github.com/errbotio/errbot/issues/
96 .. _Gitter: https://gitter.im/errbotio/errbot