|
| 1 | +Contributing |
| 2 | +============ |
| 3 | + |
| 4 | +The documentation |
| 5 | +----------------- |
| 6 | + |
| 7 | +We are happy for documentation contributions. This section will show you how to get up and running with contribution the SimpleBus documentations. The documentation is formatted in ``reStructuredText``. |
| 8 | +For this we use `Sphinx <http://www.sphinx-doc.org>`__, a tool that makes it easy to create beautiful documentation. Assuming you have `Python <https://www.python.org>`__ already installed, install Sphinx: |
| 9 | + |
| 10 | +.. code-block:: bash |
| 11 | +
|
| 12 | + $ pip install sphinx sphinx-autobuild |
| 13 | +
|
| 14 | +Download GIT repository |
| 15 | +^^^^^^^^^^^^^^^^^^^^^^^ |
| 16 | + |
| 17 | +Before you can start contributing the documentations you have to, fork the repository, clone it and create a new branch with the following commands: |
| 18 | + |
| 19 | +.. code-block:: bash |
| 20 | +
|
| 21 | + $ git clone https://github.com/your-name/repo-name.git |
| 22 | + $ git checkout -b documentation-description |
| 23 | +
|
| 24 | +After cloning the documentation repository you can open these files in your preferred IDE. Now it's time to start editing one of the the ``.rst`` files. For example the ``contributing.rst`` and add the information you are missing in the project. |
| 25 | + |
| 26 | +Install the dependencies |
| 27 | +^^^^^^^^^^^^^^^^^^^^^^^^ |
| 28 | + |
| 29 | +This documentation is making use of external open source dependencies. You can think of the Read the Docs theme and the Sphinx Extensions for PHP and Symfony. You can install these by the following command. |
| 30 | + |
| 31 | +.. code-block:: bash |
| 32 | +
|
| 33 | + $ pip install -r requirements.txt |
| 34 | +
|
| 35 | +Building the documentation |
| 36 | +^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 37 | + |
| 38 | +After you have installed the open source dependencies and changed some files, you can manually rebuild the documentation HTML output. You can see the result by opening the ``_build/html/index.html`` file. |
| 39 | + |
| 40 | +.. code-block:: bash |
| 41 | +
|
| 42 | + $ make html |
| 43 | +
|
| 44 | +.. note:: You can use ``sphinx-autobuild`` to auto-reload your docs. Run ``make autobuild`` instead of ``make html``. |
| 45 | + |
| 46 | +Spelling |
| 47 | +^^^^^^^^ |
| 48 | + |
| 49 | +This documentation makes use of the Sphinx spelling extension, a spelling checker for Sphinx-based documentation. You run this by the following command: |
| 50 | + |
| 51 | +.. code-block:: bash |
| 52 | +
|
| 53 | + $ make spelling |
| 54 | +
|
| 55 | +If there are some technical words that are not recognized, then you have to add them to ``spelling_word_list.txt``. Please fill in this glossary in alphabetical order. As an example, you'll see the output below for the word ``symfony`` that's not found in the ``contributing.rst`` file. |
| 56 | + |
| 57 | +.. code-block:: bash |
| 58 | +
|
| 59 | + contributing.rst:55:symfony: |
| 60 | +
|
| 61 | +Commit & pull request |
| 62 | +^^^^^^^^^^^^^^^^^^^^^ |
| 63 | + |
| 64 | +Now it's time to commit your changes and push it to your repository. The last step to finish your contribution, is to create an `pull requests <https://help.github.com/articles/about-pull-requests/>`__ for your valuable contribution. Thank you! |
0 commit comments