66SphinxDocumentation
77###################
88
9- The ``SphinxDocumentation `` job template compiles the ReStructured Text documentation using Sphinx to an HTML website
10- and a LaTeX documentation. This LaTeX document can be translated using e.g. MikTeX to a PDF file.
9+ The ``SphinxDocumentation `` job template compiles the ReStructured Text documentation using :term: ` Sphinx ` to an HTML
10+ website and a LaTeX documentation. This LaTeX document can be translated using e.g. :term: ` MikTeX ` to a PDF file.
1111
1212.. topic :: Features
1313
@@ -70,12 +70,6 @@ Instantiation
7070
7171.. code-block :: yaml
7272
73- name : Pipeline
74-
75- on :
76- push :
77- workflow_dispatch :
78-
7973 jobs :
8074 UnitTestingParams :
8175 uses : pyTooling/Actions/.github/workflows/Parameters.yml@r5
@@ -99,29 +93,29 @@ Parameter Summary
9993
10094.. rubric :: Goto :ref:`input parameters <JOBTMPL/SphinxDocumentation/Inputs>`
10195
102- +-------------------------------------------------------------------------+----------+----------+-------------------------------------------------------------------+
103- | Parameter Name | Required | Type | Default |
104- +=========================================================================+==========+==========+===================================================================+
105- | :ref: `JOBTMPL/SphinxDocumentation/Input/ubuntu_image_version ` | no | string | ``'24.04' `` |
106- +-------------------------------------------------------------------------+----------+----------+-------------------------------------------------------------------+
107- | :ref: `JOBTMPL/SphinxDocumentation/Input/python_version ` | no | string | ``'3.13' `` |
108- +-------------------------------------------------------------------------+----------+----------+-------------------------------------------------------------------+
109- | :ref: `JOBTMPL/SphinxDocumentation/Input/requirements ` | no | string | ``'-r doc/requirements.txt' `` |
110- +-------------------------------------------------------------------------+----------+----------+-------------------------------------------------------------------+
111- | :ref: `JOBTMPL/SphinxDocumentation/Input/doc_directory ` | no | string | ``'doc' `` |
112- +-------------------------------------------------------------------------+----------+----------+-------------------------------------------------------------------+
113- | :ref: `JOBTMPL/SphinxDocumentation/Input/coverage_report_json_directory ` | no | string | ``'' `` |
114- +-------------------------------------------------------------------------+----------+----------+-------------------------------------------------------------------+
115- | :ref: `JOBTMPL/SphinxDocumentation/Input/coverage_json_artifact ` | no | string | `` '' `` |
116- +-------------------------------------------------------------------------+----------+----------+-------------------------------------------------------------------+
117- | :ref: `JOBTMPL/SphinxDocumentation/Input/unittest_xml_artifact ` | no | string | ``'' `` |
118- +-------------------------------------------------------------------------+----------+----------+-------------------------------------------------------------------+
119- | :ref: `JOBTMPL/SphinxDocumentation/Input/unittest_xml_directory ` | no | string | `` 'report/unit' `` |
120- +-------------------------------------------------------------------------+----------+----------+-------------------------------------------------------------------+
121- | :ref: `JOBTMPL/SphinxDocumentation/Input/html_artifact ` | no | string | ``'' `` |
122- +-------------------------------------------------------------------------+----------+----------+-------------------------------------------------------------------+
123- | :ref: `JOBTMPL/SphinxDocumentation/Input/latex_artifact ` | no | string | ``'' `` |
124- +-------------------------------------------------------------------------+----------+----------+-------------------------------------------------------------------+
96+ +-------------------------------------------------------------------------+----------+---------------- +-------------------------------------------------------------------+
97+ | Parameter Name | Required | Type | Default |
98+ +=========================================================================+==========+================ +===================================================================+
99+ | :ref: `JOBTMPL/SphinxDocumentation/Input/ubuntu_image_version ` | no | string | ``'24.04' `` |
100+ +-------------------------------------------------------------------------+----------+---------------- +-------------------------------------------------------------------+
101+ | :ref: `JOBTMPL/SphinxDocumentation/Input/python_version ` | no | string | ``'3.13' `` |
102+ +-------------------------------------------------------------------------+----------+---------------- +-------------------------------------------------------------------+
103+ | :ref: `JOBTMPL/SphinxDocumentation/Input/requirements ` | no | string | ``'-r doc/requirements.txt' `` |
104+ +-------------------------------------------------------------------------+----------+---------------- +-------------------------------------------------------------------+
105+ | :ref: `JOBTMPL/SphinxDocumentation/Input/doc_directory ` | no | string | ``'doc' `` |
106+ +-------------------------------------------------------------------------+----------+---------------- +-------------------------------------------------------------------+
107+ | :ref: `JOBTMPL/SphinxDocumentation/Input/coverage_json_artifact ` | no | string | ``'' `` |
108+ +-------------------------------------------------------------------------+----------+---------------- +-------------------------------------------------------------------+
109+ | :ref: `JOBTMPL/SphinxDocumentation/Input/coverage_report_json ` | no | string (JSON) | :jsoncode: ` {"directory": "report/coverage"} ` |
110+ +-------------------------------------------------------------------------+----------+---------------- +-------------------------------------------------------------------+
111+ | :ref: `JOBTMPL/SphinxDocumentation/Input/unittest_xml_artifact ` | no | string | ``'' `` |
112+ +-------------------------------------------------------------------------+----------+---------------- +-------------------------------------------------------------------+
113+ | :ref: `JOBTMPL/SphinxDocumentation/Input/unittest_xml ` | no | string (JSON) | :jsoncode: ` {"directory": "report/unit"} ` |
114+ +-------------------------------------------------------------------------+----------+---------------- +-------------------------------------------------------------------+
115+ | :ref: `JOBTMPL/SphinxDocumentation/Input/html_artifact ` | no | string | ``'' `` |
116+ +-------------------------------------------------------------------------+----------+---------------- +-------------------------------------------------------------------+
117+ | :ref: `JOBTMPL/SphinxDocumentation/Input/latex_artifact ` | no | string | ``'' `` |
118+ +-------------------------------------------------------------------------+----------+---------------- +-------------------------------------------------------------------+
125119
126120.. rubric :: Goto :ref:`secrets <JOBTMPL/SphinxDocumentation/Secrets>`
127121
@@ -178,18 +172,6 @@ doc_directory
178172 adjusted as well.
179173
180174
181- .. _JOBTMPL/SphinxDocumentation/Input/coverage_report_json_directory :
182-
183- coverage_report_json_directory
184- ==============================
185-
186- :Type: string
187- :Required: no
188- :Default Value: ``'' ``
189- :Possible Values: Any valid directory or sub-directory.
190- :Description: tbd
191-
192-
193175.. _JOBTMPL/SphinxDocumentation/Input/coverage_json_artifact :
194176
195177coverage_json_artifact
@@ -202,6 +184,40 @@ coverage_json_artifact
202184:Description: Name of the artifact containing the code coverage report in JSON format.
203185
204186
187+ .. _JOBTMPL/SphinxDocumentation/Input/coverage_report_json :
188+
189+ coverage_report_json
190+ ====================
191+
192+ :Type: string (JSON)
193+ :Required: no
194+ :Default Value:
195+ .. code-block :: json
196+
197+ { "directory" : " reports/coverage" ,
198+ }
199+ :Possible Values: Any valid JSON string containing a JSON object with fields:
200+
201+ :directory: Directory or sub-directory where the code coverage JSON report will be extracted from
202+ :ref: `artifact <JOBTMPL/SphinxDocumentation/Input/coverage_json_artifact >`.
203+ :Description: Directory as JSON object where the code coverage JSON report will be extracted. |br |
204+ This path is configured in :file: `pyproject.toml ` and can be extracted by
205+ :ref: `JOBTMPL/ExtractConfiguration `.
206+ :Example:
207+ .. code-block :: yaml
208+
209+ ConfigParams :
210+ uses : pyTooling/Actions/.github/workflows/ExtractConfiguration.yml@r5
211+
212+ Documentation :
213+ uses : pyTooling/Actions/.github/workflows/SphinxDocumentation.yml@r5
214+ needs :
215+ - ConfigParams
216+ with :
217+ ...
218+ coverage_report_json : ${{ needs.ConfigParams.outputs.coverage_report_json }}
219+
220+
205221 .. _JOBTMPL/SphinxDocumentation/Input/unittest_xml_artifact :
206222
207223unittest_xml_artifact
@@ -214,16 +230,38 @@ unittest_xml_artifact
214230:Description: Name of the artifact containing the unittest XML report summary in XML format.
215231
216232
217- .. _JOBTMPL/SphinxDocumentation/Input/unittest_xml_directory :
233+ .. _JOBTMPL/SphinxDocumentation/Input/unittest_xml :
218234
219- unittest_xml_directory
220- ======================
235+ unittest_xml
236+ ============
221237
222- :Type: string
238+ :Type: string (JSON)
223239:Required: no
224- :Default Value: ``'report/unit' ``
225- :Possible Values: Any valid directory or sub-directory.
226- :Description: Directory where unittest XML artifact will be extracted.
240+ :Default Value:
241+ .. code-block :: json
242+
243+ { "directory" : " reports/unit" ,
244+ }
245+ :Possible Values: Any valid JSON string containing a JSON object with fields:
246+
247+ :directory: Directory or sub-directory where the unittest JUnit XML report will be extracted from
248+ :ref: `artifact <JOBTMPL/SphinxDocumentation/Input/unittest_xml_artifact >`.
249+ :Description: Directory as JSON object where the unittest JUnit XML report will be extracted. |br |
250+ This path is configured in :file: `pyproject.toml ` and can be extracted by
251+ :ref: `JOBTMPL/ExtractConfiguration `.
252+ :Example:
253+ .. code-block :: yaml
254+
255+ ConfigParams :
256+ uses : pyTooling/Actions/.github/workflows/ExtractConfiguration.yml@r5
257+
258+ Documentation :
259+ uses : pyTooling/Actions/.github/workflows/SphinxDocumentation.yml@r5
260+ needs :
261+ - ConfigParams
262+ with :
263+ ...
264+ unittest_xml : ${{ needs.ConfigParams.outputs.unittest_xml }}
227265
228266
229267 .. _JOBTMPL/SphinxDocumentation/Input/html_artifact :
0 commit comments