22Documentation infrastructure
33=============================
44
5- In this section of the :doc: `documentation guidelines </contributing/docs >`,
6- we deal with some support activities to ensure the correct building of
5+ This section of the :doc: `documentation guidelines </contributing/docs >`
6+ discusses some of the support activities that ensure the correct building of
77documentation.
88
99.. _guidelines_doc_submodules :
1010
1111Adding submodules
1212-----------------
1313
14- The source files with the documentation content are mainly stored in the
14+ The documentation source files are mainly stored in the
1515`documentation repository <https://github.com/tarantool/doc >`_.
16- However, in some of the cases the content source files are stored in
17- repositories of other Tarantool-related products and modules, for example,
18- `Cartridge <https://github.com/tarantool/cartridge >`_,
16+ However, in some cases, they are stored in the
17+ repositories of other Tarantool-related products
18+ or modules--- `Cartridge <https://github.com/tarantool/cartridge >`_,
1919`Monitoring <https://github.com/tarantool/metrics/tree/master/doc/monitoring >`__,
20- and some others.
20+ and others.
2121
22- In this case, we need to add such a repository containing the source files
23- as a submodule to the `documentation repository <https://github.com/tarantool/doc >`_
24- and set up other necessary settings to ensure the proper building of the entire
25- body of Tarantool documentation presented at the `official web-site <http://www.tarantool.io/en/doc >`_.
22+ If you are working with source files from a product or module repository,
23+ add that repository as a submodule to the
24+ `documentation repository <https://github.com/tarantool/doc >`_
25+ and configure other necessary settings.
26+ This will ensure that the entire
27+ body of Tarantool documentation,
28+ presented on the `official website <http://www.tarantool.io/en/doc >`_,
29+ is built properly.
2630
27- The steps to do that are the following :
31+ Here is how to do that:
2832
2933.. contents ::
3034 :local:
@@ -35,7 +39,7 @@ The steps to do that are the following:
35391. Add a submodule
3640~~~~~~~~~~~~~~~~~~
3741
38- First, we need to add a repository containing the content source files as
42+ First, we need to add the repository with content source files as
3943a submodule.
4044
4145#. Make sure you are in the root directory of the documentation repository.
@@ -49,7 +53,7 @@ a submodule.
4953 cd ..
5054
5155
52- #. Check that the new submodule appears in the ``.gitmodules `` file, for example:
56+ #. Check that the new submodule is in the ``.gitmodules `` file, for example:
5357
5458 .. code-block :: ini
5559
@@ -62,30 +66,30 @@ a submodule.
62662. Update build_submodules.sh
6367~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
6468
65- Next, we should define what directories and files are to be copied from
66- the submodule repository into the documentation one before building
69+ Now define what directories and files are to be copied from
70+ the submodule repository to the documentation repository before building
6771documentation. These settings are defined in the ``build_submodules.sh `` file
68- which is in the root directory of the documentation repository.
72+ in the root directory of the documentation repository.
6973
70- We can take examples of the already existing submodules to show the logic of
71- the settings.
74+ Here are some real submodule examples
75+ that show the logic of the settings.
7276
7377metrics
7478^^^^^^^
7579
76- In case of the ``metrics `` submodule, the content source files are in the
80+ The content source files for the ``metrics `` submodule are in the
7781``./doc/monitoring `` directory of the submodule repository.
7882In the final documentation view, the content should appear in the
7983`Monitoring <https://www.tarantool.io/en/doc/latest/book/monitoring/ >`__
8084chapter (``https://www.tarantool.io/en/doc/latest/book/monitoring/ ``).
8185
82- So, we need to :
86+ To make this work :
8387
84- * create a directory at ``./doc/book/monitoring/ ``.
85- * copy the entire content of the ``./modules/metrics/doc/monitoring/ `` directory to
88+ * Create a directory at ``./doc/book/monitoring/ ``.
89+ * Copy the entire content of the ``./modules/metrics/doc/monitoring/ `` directory to
8690 ``./doc/book/monitoring/ ``.
8791
88- The corresponding lines in the ``build_submodules.sh `` file are the following :
92+ Here are the corresponding lines in ``build_submodules.sh ``:
8993
9094.. code-block :: bash
9195
@@ -95,25 +99,25 @@ The corresponding lines in the ``build_submodules.sh`` file are the following:
9599 mkdir -p " ${monitoring_dest} "
96100 yes | cp -rf " ${monitoring_root} " " ${monitoring_dest} /"
97101
98- The ``${project_root} `` variable is defined earlier as ``project_root=$(pwd) ``.
99- We should start the documentation build from the documentation repository root
100- directory so that will be the value of the variable .
102+ The ``${project_root} `` variable is defined earlier in the file as ``project_root=$(pwd) ``.
103+ This is because the documentation build has to start from the documentation repository root
104+ directory.
101105
102106cartridge_cli
103107^^^^^^^^^^^^^
104108
105- In case of the ``cartridge_cli `` submodule, the content source is in
106- the ``README.rst `` file located in the directory of the submodule repository.
109+ The content source file for the ``cartridge_cli `` submodule is
110+ ``README.rst ``, located in the directory of the submodule repository.
107111In the final documentation view, the content should appear here:
108112``https://www.tarantool.io/en/doc/latest/book/cartridge/cartridge_cli/ ``.
109113
110- So, we need to :
114+ To make this work :
111115
112- * create a directory at ``./doc/book/cartridge/cartridge_cli ``
113- * copy ``./modules/cartridge_cli/README.rst `` to
116+ * Create a directory at ``./doc/book/cartridge/cartridge_cli ``.
117+ * Copy ``./modules/cartridge_cli/README.rst `` to
114118 ``./doc/book/cartridge/cartridge_cli/index.rst ``.
115119
116- The corresponding settings in the ``build_submodules.st `` file are the following :
120+ Here ar the corresponding settings in ``build_submodules.sh `` :
117121
118122.. code-block :: bash
119123
@@ -130,5 +134,4 @@ The corresponding settings in the ``build_submodules.st`` file are the following
1301343. Update .gitignore
131135~~~~~~~~~~~~~~~~~~~~
132136
133- Finaly, we should add paths to the copied directories and files to
134- the ``.gitignore `` file.
137+ Finally, add paths to the copied directories and files to ``.gitignore ``.
0 commit comments