@@ -8,54 +8,40 @@ Documentation
8
8
:titlesonly:
9
9
10
10
documentation/content_guidelines
11
- documentation/rst_cheat_sheet
12
11
documentation/rst_guidelines
13
12
14
- This introductory guide will help you acquire the tools and knowledge you need to write
15
- documentation, whether you plan to make a minor content change or document an application from
16
- scratch.
13
+ This introductory guide will help you acquire the tools and knowledge needed to contribute to the
14
+ documentation.
15
+
16
+ Read the :ref: `introduction to the reStructuredText language <contributing/documentation/rst-intro >`
17
+ if you are not familiar with it. Then, there are two courses of action to start contributing to the
18
+ documentation:
19
+
20
+ - **For minor changes **, such as adding a paragraph or fixing a typo, we recommend **using the
21
+ GitHub interface **. This is the easiest and fastest way to submit changes, and it is suitable for
22
+ non-technical people. Jump directly to the :ref: `contributing/documentation/first-contribution `
23
+ section to get started.
24
+ - **For more complex changes **, such as adding a new page, it is necessary to **use Git ** and work
25
+ from a local copy of the documentation. Follow the instructions in the
26
+ :ref: `contributing/documentation/setup ` section first to prepare your environment.
17
27
18
28
.. seealso ::
19
29
:doc: `Discover other ways to contribute to Odoo <../contributing >`
20
30
21
- Read the :ref: `introduction to the reStructuredText language <contributing/documentation/rst-intro >`
22
- if you are not familiar with it. Then, you have two courses of action to start contributing to the
23
- documentation, depending on whether you want to propose minor changes to existing content or you
24
- instead want to work on significant changes to new and existing content.
25
-
26
- - **For minor changes **, for example, adding a paragraph or fixing a typo, we recommend **using the
27
- GitHub interface **. This is the easiest and fastest way to submit your changes, and it is suitable
28
- for non-technical people. Jump directly to the
29
- :ref: `contributing/documentation/first-contribution ` section to get started.
30
- - **For more complex changes **, it is necessary to **use Git ** and work from a local copy of the
31
- documentation. Follow the instructions in the :ref: `contributing/documentation/setup ` section to
32
- first prepare your environment.
33
-
34
31
.. _contributing/documentation/rst-intro :
35
32
36
33
reStructuredText (RST)
37
34
======================
38
35
39
36
The documentation is written in **reStructuredText ** (RST), a `lightweight markup language
40
37
<https://en.wikipedia.org/wiki/Lightweight_markup_language> `_ consisting of regular text augmented
41
- with markup, which allows including headings, images, notes, and so on. This might seem a bit
42
- abstract, but there is no need to worry; :abbr: `RST ( reStructuredText ) ` is not hard to learn,
43
- especially if you intend to make minor changes to the content.
44
-
45
- If you need to learn about a specific markup, head over to our :doc: `cheat sheet for RST
46
- <documentation/rst_cheat_sheet>`; it contains all the information you should ever need for the
47
- documentation of Odoo.
38
+ with markup, which allows including headings, images, notes, and so on. :abbr: `RST
39
+ ( reStructuredText ) ` is easy to use, even if you are not familiar with it.
48
40
49
41
.. important ::
50
- We kindly ask you to observe a set of :doc: `content <documentation/content_guidelines >` and
42
+ Be mindful of our :doc: `content <documentation/content_guidelines >` and
51
43
:doc: `RST <documentation/rst_guidelines >` guidelines as you write documentation. This ensures
52
- that you stay consistent with the rest of the documentation and facilitates the approval of your
53
- content changes as the Odoo team reviews them.
54
-
55
- .. seealso ::
56
- - :doc: `documentation/content_guidelines `
57
- - :doc: `documentation/rst_cheat_sheet `
58
- - :doc: `documentation/rst_guidelines `
44
+ that the documentation stays consistent and facilitates the approval of changes by the Odoo team.
59
45
60
46
.. _contributing/documentation/setup :
61
47
@@ -67,14 +53,23 @@ documentation and then push them to GitHub. Skip this section and go to
67
53
:ref: `contributing/documentation/first-contribution ` if you have already completed this step or want
68
54
to make changes from the GitHub interface.
69
55
70
- #. .. include:: create_github_account.rst
71
- #. .. include:: configure_github_account.rst
56
+ #. First, `create a GitHub account <https://github.com/join >`_. Odoo uses GitHub to manage the
57
+ source code of its products, and this is where you will submit your changes.
58
+ #. `Generate a new SSH key and register it on your GitHub account
59
+ <https://docs.github.com/en/authentication/connecting-to-github-with-ssh> `_.
72
60
#. Go to `github.com/odoo/documentation <https://github.com/odoo/documentation >`_ and click on the
73
61
:guilabel: `Fork ` button in the top right corner to create a fork (:dfn: `your own copy `) of the
74
62
repository on your account. This creates a copy of the codebase to which you can make changes
75
63
without affecting the main codebase. Skip this step if you work at Odoo.
76
64
#. .. include:: install_git.rst
77
- #. .. include:: configure_git_authorship.rst
65
+ #. Configure Git to identify yourself as the author of your future contributions. Enter the same
66
+ email address you used to register on GitHub.
67
+
68
+ .. code-block :: console
69
+
70
+ $ git config --global user.name "Your Name"
71
+ $ git config --global user.email "youremail@example.com"
72
+
78
73
#. Clone the sources with Git and navigate into the local repository.
79
74
80
75
.. code-block :: console
@@ -109,7 +104,7 @@ to make changes from the GitHub interface.
109
104
$ git config commit.template %CD%\commit_template.txt
110
105
111
106
#. Install the latest release of `Python <https://wiki.python.org/moin/BeginnersGuide/Download >`_
112
- and `pip <https://pip.pypa.io/en/stable/installation/ >`_ on your machine .
107
+ and `pip <https://pip.pypa.io/en/stable/installation/ >`_.
113
108
#. Install the Python dependencies of the documentation with pip.
114
109
115
110
.. code-block :: console
@@ -149,18 +144,20 @@ to make changes from the GitHub interface.
149
144
<https://www.technewstoday.com/install-and-use-make-in-windows> `_.
150
145
151
146
#. `Install pngquant <https://pngquant.org/ >`_.
152
- #. That's it! You are ready to :ref: `make your first contribution
147
+ #. You are now ready to :ref: `make your first contribution
153
148
<contributing/documentation/first-contribution>` with Git.
154
149
155
150
.. _contributing/documentation/first-contribution :
156
151
157
- Make your first contribution
158
- ============================
152
+ Contributing to the documentation
153
+ =================================
159
154
160
155
.. tabs ::
161
156
162
157
.. tab :: Contribute from the GitHub interface
163
- #. .. include:: create_github_account.rst
158
+
159
+ #. First, `create a GitHub account <https://github.com/join >`_. Odoo uses GitHub to manage the
160
+ source code of its products, and this is where you will submit your changes.
164
161
#. Verify that you are browsing the documentation in the version that you intend to change.
165
162
The version can be selected from the dropdown in the top menu.
166
163
#. Head to the page that you want to change and click on the :guilabel: `Edit on GitHub ` button
@@ -194,9 +191,14 @@ Make your first contribution
194
191
Odoo.
195
192
#. Review the summary that you wrote about your changes and click on the :guilabel: `Create
196
193
pull request ` button again.
197
- #. .. include:: check_mergeability_status.rst
198
- #. .. include:: handle_reviews.rst
199
- #. .. include:: documentation/changes_approved.rst
194
+ #. At the bottom of the page, check the mergeability status and address any issues.
195
+ #. As soon as your :abbr: `PR ( Pull Request ) ` is ready for merging, a member of the Odoo team
196
+ is automatically assigned for review. If the reviewer has questions or remarks, they will
197
+ post them as comments and you will be notified by email. Those comments must be resolved
198
+ for the contribution to go forward.
199
+
200
+ #. Once your changes are approved, the reviewer merges them and they appear online the next
201
+ day.
200
202
201
203
.. tab :: Contribute with Git
202
204
@@ -230,7 +232,7 @@ Make your first contribution
230
232
#. Make the desired changes while taking care of following the :doc: `content
231
233
<documentation/content_guidelines>` and :doc: `RST <documentation/rst_guidelines >`
232
234
guidelines.
233
- #. Compress all PNG images that you added or modified.
235
+ #. Compress all PNG images that were added or modified.
234
236
235
237
.. code-block :: console
236
238
@@ -239,9 +241,9 @@ Make your first contribution
239
241
240
242
#. Write a `redirect rule
241
243
<https://github.com/odoo/documentation/tree/{BRANCH}/redirects/MANUAL.md> `_ for every RST
242
- file that your renamed.
243
- #. Build the documentation with :command: `make `. Then, open :file: `_build/index.html ` in your
244
- web browser to browse the documentation with your changes.
244
+ file that were renamed.
245
+ #. Build the documentation with :command: `make `. Then, open :file: `_build/index.html ` in a web
246
+ browser to browse the documentation with your changes.
245
247
246
248
.. tip ::
247
249
Use :command: `make help ` to learn about other useful commands.
@@ -254,7 +256,7 @@ Make your first contribution
254
256
$ git add .
255
257
$ git commit
256
258
257
- #. Push your change to your fork, for which we added the remote alias `dev `.
259
+ #. Push your changes to your fork, for which we added the remote alias `dev `.
258
260
259
261
.. example ::
260
262
@@ -285,6 +287,10 @@ Make your first contribution
285
287
Odoo.
286
288
#. Complete the description and click on the :guilabel: `Create pull request ` button again.
287
289
288
- #. .. include:: check_mergeability_status.rst
289
- #. .. include:: handle_reviews.rst
290
- #. .. include:: documentation/changes_approved.rst
290
+ #. At the bottom of the page, check the mergeability status and address any issues.
291
+ #. As soon as your :abbr: `PR ( Pull Request ) ` is ready for merging, a member of the Odoo team
292
+ is automatically assigned for review. If the reviewer has questions or remarks, they will
293
+ post them as comments and you will be notified by email. Those comments must be resolved
294
+ for the contribution to go forward.
295
+ #. Once your changes are approved, the reviewer merges them and they appear online the next
296
+ day.
0 commit comments