|
| 1 | +.. _add-deliverable: |
| 2 | + |
| 3 | +Adding a Deliverable |
| 4 | +==================== |
| 5 | + |
| 6 | +A deliverable is a documentation output that docbuild will |
| 7 | +either build from source or take as a prebuilt file and |
| 8 | +publish on the portal: |
| 9 | + |
| 10 | +* Build from source |
| 11 | + |
| 12 | + A deliverable that is built by :command:`daps` from a DocBook XML |
| 13 | + or ADoc source file. It needs a DC file. |
| 14 | + |
| 15 | + .. code-block:: xml |
| 16 | + :caption: Example of a Deliverable Built from Source |
| 17 | +
|
| 18 | + <deliverable type="dc" id="nas.1.0.overview"> |
| 19 | + <dc file="DC-NAS-overview"> |
| 20 | + <format epub="0" html="1" pdf="1" single-html="1" /> |
| 21 | + </dc> |
| 22 | + </deliverable> |
| 23 | +
|
| 24 | +* Prebuilt file |
| 25 | + |
| 26 | + A deliverable that is already built and available as a file. |
| 27 | + It can be used for example for documentation that is not in |
| 28 | + DocBook XML or ADoc format or for documentation that is built |
| 29 | + by a different tool than :command:`daps`: |
| 30 | + |
| 31 | + .. code-block:: xml |
| 32 | + :caption: Example of a Prebuilt Deliverable |
| 33 | +
|
| 34 | + <deliverable id="cn.continuous-delivery.latest-en-index.overview" type="prebuilt" category="cat.cloudnative.rancher"> |
| 35 | + <prebuilt> |
| 36 | + <title>Overview</title> |
| 37 | + <url format="html" href="/cloudnative/continuous-delivery/latest/en/index.html"/> |
| 38 | + </prebuilt> |
| 39 | + </deliverable> |
| 40 | +
|
| 41 | +* Translations |
| 42 | + |
| 43 | + A deliverable that is a translation of an existing deliverable. |
| 44 | + It is linked to the original deliverable: |
| 45 | + |
| 46 | + .. code-block:: xml |
| 47 | + :caption: Example of a Translated Deliverable |
| 48 | +
|
| 49 | + <deliverable type="ref"> |
| 50 | + <ref linkend="nas.1.0.overview"/> |
| 51 | + </deliverable> |
| 52 | +
|
| 53 | +
|
| 54 | +To add a deliverable, proceed as follows: |
| 55 | + |
| 56 | +#. Identify the release you want to add the deliverable to. |
| 57 | + |
| 58 | + If you haven't created a release yet, create one as described in |
| 59 | + section :ref:`create-product`. |
| 60 | + |
| 61 | + In this example, we want to add a deliverable to the 1.0 |
| 62 | + release of the NAS product. |
| 63 | + |
| 64 | +#. Create a deliverable. |
| 65 | + |
| 66 | + In our example, we have a DocBook XML source and a DC file :file:`DC-NAS-overview`. We want to build HTML, PDF, and |
| 67 | + single HTML output, but not EPUB: |
| 68 | + |
| 69 | + .. code-block:: xml |
| 70 | + :caption: Example of a Deliverable Built from Source |
| 71 | +
|
| 72 | + <deliverable type="dc" id="nas.1.0.overview"> |
| 73 | + <dc file="DC-NAS-overview"> |
| 74 | + <format epub="0" html="1" pdf="1" single-html="1" /> |
| 75 | + </dc> |
| 76 | + </deliverable> |
| 77 | +
|
| 78 | +#. Add as many deliverables as needed. |
0 commit comments