mirror of
https://github.com/pyTooling/Actions.git
synced 2026-02-12 11:06:56 +08:00
Documented BuildTheDocs.
This commit is contained in:
@@ -3,6 +3,21 @@
|
|||||||
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
|
Instantiation
|
||||||
*************
|
*************
|
||||||
|
|
||||||
@@ -11,31 +26,46 @@ Simple Example
|
|||||||
|
|
||||||
.. code-block:: yaml
|
.. code-block:: yaml
|
||||||
|
|
||||||
TBD
|
jobs:
|
||||||
|
BuildTheDocs:
|
||||||
|
uses: pyTooling/Actions/.github/workflows/BuildTheDocs.yml@r0
|
||||||
|
with:
|
||||||
|
artifact: Documentation
|
||||||
|
|
||||||
Complex Example
|
Complex Example
|
||||||
===============
|
===============
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
.. code-block:: yaml
|
.. code-block:: yaml
|
||||||
|
|
||||||
TBD
|
jobs:
|
||||||
|
BuildTheDocs:
|
||||||
|
uses: pyTooling/Actions/.github/workflows/BuildTheDocs.yml@r0
|
||||||
|
needs:
|
||||||
|
- Params
|
||||||
|
with:
|
||||||
|
artifact: ${{ fromJson(needs.Params.outputs.params).artifacts.doc }}
|
||||||
|
|
||||||
|
|
||||||
Template Parameters
|
Template Parameters
|
||||||
*******************
|
*******************
|
||||||
|
|
||||||
TBD 1
|
artifact
|
||||||
=====
|
========
|
||||||
|
|
||||||
TBD
|
Name of the documentation artifact.
|
||||||
|
|
||||||
TBD 1
|
+----------+----------+--------------+
|
||||||
=====
|
| Required | Type | Default |
|
||||||
|
+==========+==========+==============+
|
||||||
|
| yes | string | — — — — |
|
||||||
|
+----------+----------+--------------+
|
||||||
|
|
||||||
TBD
|
Secrets
|
||||||
|
*******
|
||||||
|
|
||||||
Template Results
|
This job template needs no secrets.
|
||||||
****************
|
|
||||||
|
|
||||||
*None*
|
Results
|
||||||
|
*******
|
||||||
|
|
||||||
|
This job template has no output parameters.
|
||||||
|
|||||||
@@ -22,9 +22,9 @@ Setup a secret (e.g. ``PYPI_TOKEN``) in GitHub to handover the PyPI token to the
|
|||||||
|
|
||||||
**Dependencies:**
|
**Dependencies:**
|
||||||
|
|
||||||
* actions/download-artifact
|
* :gh:`actions/download-artifact`
|
||||||
* actions/setup-python
|
* :gh:`actions/setup-python`
|
||||||
* geekyeggo/delete-artifact
|
* :gh:`geekyeggo/delete-artifact`
|
||||||
|
|
||||||
|
|
||||||
Instantiation
|
Instantiation
|
||||||
|
|||||||
Reference in New Issue
Block a user