mirror of
https://github.com/pyTooling/Actions.git
synced 2026-02-12 19:16:57 +08:00
73 lines
1.3 KiB
ReStructuredText
73 lines
1.3 KiB
ReStructuredText
.. _JOBTMPL/BuildTheDocs:
|
|
|
|
BuildTheDocs
|
|
############
|
|
|
|
This jobs compiles the documentation written in ReStructured Text with Sphinx using BuildTheDocs.
|
|
|
|
**Behavior:**
|
|
|
|
1. Checkout repository.
|
|
2. Build the documentation.
|
|
3. Upload the HTML documentation as an artifact.
|
|
|
|
**Dependencies:**
|
|
|
|
* :gh:`actions/checkout`
|
|
* :gh:`buildthedocs/btd`
|
|
* :gh:`actions/upload-artifact`
|
|
|
|
|
|
Instantiation
|
|
*************
|
|
|
|
Simple Example
|
|
==============
|
|
|
|
.. code-block:: yaml
|
|
|
|
jobs:
|
|
BuildTheDocs:
|
|
uses: pyTooling/Actions/.github/workflows/BuildTheDocs.yml@r0
|
|
with:
|
|
artifact: Documentation
|
|
|
|
Complex Example
|
|
===============
|
|
|
|
.. code-block:: yaml
|
|
|
|
jobs:
|
|
BuildTheDocs:
|
|
uses: pyTooling/Actions/.github/workflows/BuildTheDocs.yml@r0
|
|
needs:
|
|
- Params
|
|
with:
|
|
artifact: ${{ fromJson(needs.Params.outputs.params).artifacts.doc }}
|
|
|
|
|
|
Parameters
|
|
**********
|
|
|
|
artifact
|
|
========
|
|
|
|
+----------------+----------+----------+--------------+
|
|
| Parameter Name | Required | Type | Default |
|
|
+================+==========+==========+==============+
|
|
| artifact | yes | string | — — — — |
|
|
+----------------+----------+----------+--------------+
|
|
|
|
Name of the documentation artifact.
|
|
|
|
|
|
Secrets
|
|
*******
|
|
|
|
This job template needs no secrets.
|
|
|
|
Results
|
|
*******
|
|
|
|
This job template has no output parameters.
|