Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion content/contributing/check_mergeability_status.rst

This file was deleted.

7 changes: 0 additions & 7 deletions content/contributing/configure_git_authorship.rst

This file was deleted.

2 changes: 0 additions & 2 deletions content/contributing/configure_github_account.rst

This file was deleted.

3 changes: 0 additions & 3 deletions content/contributing/create_github_account.rst

This file was deleted.

23 changes: 18 additions & 5 deletions content/contributing/development.rst
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,25 @@ The instructions below help you prepare your environment for making local change
and then push them to GitHub. Skip this section and go to
:ref:`contributing/development/first-contribution` if you have already completed this step.

#. .. include:: create_github_account.rst
#. .. include:: configure_github_account.rst
#. First, you need to `create a GitHub account <https://github.com/join>`_. Odoo uses GitHub to
manage the source code of its products, and this is where you will make your changes and submit
them for review.
#. `Generate a new SSH key and register it on your GitHub account
<https://docs.github.com/en/authentication/connecting-to-github-with-ssh>`_.
#. Go to `github.com/odoo/odoo <https://github.com/odoo/odoo>`_ and click on the :guilabel:`Fork`
button in the top right corner to create a fork (:dfn:`your own copy`) of the repository on your
account. Do the same with `github.com/odoo/enterprise <https://github.com/odoo/enterprise>`_ if
you have access to it. This creates a copy of the codebase to which you can make changes without
affecting the main codebase. Skip this step if you work at Odoo.
#. .. include:: install_git.rst
#. .. include:: configure_git_authorship.rst
#. Configure Git to identify yourself as the author of your future contributions. Enter the same
email address you used to register on GitHub.

.. code-block:: console

$ git config --global user.name "Your Name"
$ git config --global user.email "youremail@example.com"

#. :doc:`Install Odoo from the sources <../administration/on_premise/source>`. Make sure to fetch
the sources through Git with SSH.
#. Configure Git to push changes to your fork(s) rather than to the main codebase. If you work at
Expand Down Expand Up @@ -155,7 +165,10 @@ navigate to the directory where you installed Odoo from sources and follow the g
#. Tick the :guilabel:`Allow edits from maintainer` checkbox. Skip this step if you work at Odoo.
#. Complete the description and click on the :guilabel:`Create pull request` button again.

#. .. include:: check_mergeability_status.rst
#. .. include:: handle_reviews.rst
#. At the bottom of the page, check the mergeability status and address any issues.
#. As soon as your :abbr:`PR (Pull Request)` is ready for merging, a member of the Odoo team
is automatically assigned for review. If the reviewer has questions or remarks, they will
post them as comments and you will be notified by email. Those comments must be resolved
for the contribution to go forward.
#. Once your changes are approved, the review merges them and they become available for all Odoo
users after the next code update!
108 changes: 57 additions & 51 deletions content/contributing/documentation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,54 +8,40 @@ Documentation
:titlesonly:

documentation/content_guidelines
documentation/rst_cheat_sheet
documentation/rst_guidelines

This introductory guide will help you acquire the tools and knowledge you need to write
documentation, whether you plan to make a minor content change or document an application from
scratch.
This introductory guide will help you acquire the tools and knowledge needed to contribute to the
documentation.

Read the :ref:`introduction to the reStructuredText language <contributing/documentation/rst-intro>`
if you are not familiar with it. Then, there are two courses of action to start contributing to the
documentation:

- **For minor changes**, such as adding a paragraph or fixing a typo, we recommend **using the
GitHub interface**. This is the easiest and fastest way to submit changes, and it is suitable for
non-technical people. Jump directly to the :ref:`contributing/documentation/first-contribution`
section to get started.
- **For more complex changes**, such as adding a new page, it is necessary to **use Git** and work
from a local copy of the documentation. Follow the instructions in the
:ref:`contributing/documentation/setup` section first to prepare your environment.

.. seealso::
:doc:`Discover other ways to contribute to Odoo <../contributing>`

Read the :ref:`introduction to the reStructuredText language <contributing/documentation/rst-intro>`
if you are not familiar with it. Then, you have two courses of action to start contributing to the
documentation, depending on whether you want to propose minor changes to existing content or you
instead want to work on significant changes to new and existing content.

- **For minor changes**, for example, adding a paragraph or fixing a typo, we recommend **using the
GitHub interface**. This is the easiest and fastest way to submit your changes, and it is suitable
for non-technical people. Jump directly to the
:ref:`contributing/documentation/first-contribution` section to get started.
- **For more complex changes**, it is necessary to **use Git** and work from a local copy of the
documentation. Follow the instructions in the :ref:`contributing/documentation/setup` section to
first prepare your environment.

.. _contributing/documentation/rst-intro:

reStructuredText (RST)
======================

The documentation is written in **reStructuredText** (RST), a `lightweight markup language
<https://en.wikipedia.org/wiki/Lightweight_markup_language>`_ consisting of regular text augmented
with markup, which allows including headings, images, notes, and so on. This might seem a bit
abstract, but there is no need to worry; :abbr:`RST (reStructuredText)` is not hard to learn,
especially if you intend to make minor changes to the content.

If you need to learn about a specific markup, head over to our :doc:`cheat sheet for RST
<documentation/rst_cheat_sheet>`; it contains all the information you should ever need for the
documentation of Odoo.
with markup, which allows including headings, images, notes, and so on. :abbr:`RST
(reStructuredText)` is easy to use, even if you are not familiar with it.

.. important::
We kindly ask you to observe a set of :doc:`content <documentation/content_guidelines>` and
Be mindful of our :doc:`content <documentation/content_guidelines>` and
:doc:`RST <documentation/rst_guidelines>` guidelines as you write documentation. This ensures
that you stay consistent with the rest of the documentation and facilitates the approval of your
content changes as the Odoo team reviews them.

.. seealso::
- :doc:`documentation/content_guidelines`
- :doc:`documentation/rst_cheat_sheet`
- :doc:`documentation/rst_guidelines`
that the documentation stays consistent and facilitates the approval of changes by the Odoo team.

.. _contributing/documentation/setup:

Expand All @@ -67,14 +53,23 @@ documentation and then push them to GitHub. Skip this section and go to
:ref:`contributing/documentation/first-contribution` if you have already completed this step or want
to make changes from the GitHub interface.

#. .. include:: create_github_account.rst
#. .. include:: configure_github_account.rst
#. First, `create a GitHub account <https://github.com/join>`_. Odoo uses GitHub to manage the
source code of its products, and this is where you will submit your changes.
#. `Generate a new SSH key and register it on your GitHub account
<https://docs.github.com/en/authentication/connecting-to-github-with-ssh>`_.
#. Go to `github.com/odoo/documentation <https://github.com/odoo/documentation>`_ and click on the
:guilabel:`Fork` button in the top right corner to create a fork (:dfn:`your own copy`) of the
repository on your account. This creates a copy of the codebase to which you can make changes
without affecting the main codebase. Skip this step if you work at Odoo.
#. .. include:: install_git.rst
#. .. include:: configure_git_authorship.rst
#. Configure Git to identify yourself as the author of your future contributions. Enter the same
email address you used to register on GitHub.

.. code-block:: console

$ git config --global user.name "Your Name"
$ git config --global user.email "youremail@example.com"

#. Clone the sources with Git and navigate into the local repository.

.. code-block:: console
Expand Down Expand Up @@ -109,7 +104,7 @@ to make changes from the GitHub interface.
$ git config commit.template %CD%\commit_template.txt

#. Install the latest release of `Python <https://wiki.python.org/moin/BeginnersGuide/Download>`_
and `pip <https://pip.pypa.io/en/stable/installation/>`_ on your machine.
and `pip <https://pip.pypa.io/en/stable/installation/>`_.
#. Install the Python dependencies of the documentation with pip.

.. code-block:: console
Expand Down Expand Up @@ -149,18 +144,20 @@ to make changes from the GitHub interface.
<https://www.technewstoday.com/install-and-use-make-in-windows>`_.

#. `Install pngquant <https://pngquant.org/>`_.
#. That's it! You are ready to :ref:`make your first contribution
#. You are now ready to :ref:`make your first contribution
<contributing/documentation/first-contribution>` with Git.

.. _contributing/documentation/first-contribution:

Make your first contribution
============================
Contributing to the documentation
=================================

.. tabs::

.. tab:: Contribute from the GitHub interface
#. .. include:: create_github_account.rst

#. First, `create a GitHub account <https://github.com/join>`_. Odoo uses GitHub to manage the
source code of its products, and this is where you will submit your changes.
#. Verify that you are browsing the documentation in the version that you intend to change.
The version can be selected from the dropdown in the top menu.
#. Head to the page that you want to change and click on the :guilabel:`Edit on GitHub` button
Expand Down Expand Up @@ -194,9 +191,14 @@ Make your first contribution
Odoo.
#. Review the summary that you wrote about your changes and click on the :guilabel:`Create
pull request` button again.
#. .. include:: check_mergeability_status.rst
#. .. include:: handle_reviews.rst
#. .. include:: documentation/changes_approved.rst
#. At the bottom of the page, check the mergeability status and address any issues.
#. As soon as your :abbr:`PR (Pull Request)` is ready for merging, a member of the Odoo team
is automatically assigned for review. If the reviewer has questions or remarks, they will
post them as comments and you will be notified by email. Those comments must be resolved
for the contribution to go forward.

#. Once your changes are approved, the reviewer merges them and they appear online the next
day.

.. tab:: Contribute with Git

Expand Down Expand Up @@ -230,7 +232,7 @@ Make your first contribution
#. Make the desired changes while taking care of following the :doc:`content
<documentation/content_guidelines>` and :doc:`RST <documentation/rst_guidelines>`
guidelines.
#. Compress all PNG images that you added or modified.
#. Compress all PNG images that were added or modified.

.. code-block:: console

Expand All @@ -239,9 +241,9 @@ Make your first contribution

#. Write a `redirect rule
<https://github.com/odoo/documentation/tree/{BRANCH}/redirects/MANUAL.md>`_ for every RST
file that your renamed.
#. Build the documentation with :command:`make`. Then, open :file:`_build/index.html` in your
web browser to browse the documentation with your changes.
file that were renamed.
#. Build the documentation with :command:`make`. Then, open :file:`_build/index.html` in a web
browser to browse the documentation with your changes.

.. tip::
Use :command:`make help` to learn about other useful commands.
Expand All @@ -254,7 +256,7 @@ Make your first contribution
$ git add .
$ git commit

#. Push your change to your fork, for which we added the remote alias `dev`.
#. Push your changes to your fork, for which we added the remote alias `dev`.

.. example::

Expand Down Expand Up @@ -285,6 +287,10 @@ Make your first contribution
Odoo.
#. Complete the description and click on the :guilabel:`Create pull request` button again.

#. .. include:: check_mergeability_status.rst
#. .. include:: handle_reviews.rst
#. .. include:: documentation/changes_approved.rst
#. At the bottom of the page, check the mergeability status and address any issues.
#. As soon as your :abbr:`PR (Pull Request)` is ready for merging, a member of the Odoo team
is automatically assigned for review. If the reviewer has questions or remarks, they will
post them as comments and you will be notified by email. Those comments must be resolved
for the contribution to go forward.
#. Once your changes are approved, the reviewer merges them and they appear online the next
day.
1 change: 0 additions & 1 deletion content/contributing/documentation/changes_approved.rst

This file was deleted.

Loading