LatexDocumentation

The LatexDocumentation job template …………….

  • uses xelatex and latexmk

Instantiation

The following instantiation example creates a Params job derived from job template Parameters version @r5. It only requires a name parameter to create the artifact names.

name: Pipeline

on:
  push:
  workflow_dispatch:

jobs:
  UnitTestingParams:
    uses: pyTooling/Actions/.github/workflows/Parameters.yml@r5
    with:
      package_name: myPackage

  Documentation:
    uses: pyTooling/Actions/.github/workflows/SphinxDocumentation.yml@r5
    needs:
      - UnitTestingParams
    with:
      python_version: ${{ needs.UnitTestingParams.outputs.python_version }}
      html_artifact:  ${{ fromJson(needs.UnitTestingParams.outputs.artifact_names).documentation_html }}
      latex_artifact: ${{ fromJson(needs.UnitTestingParams.outputs.artifact_names).documentation_latex }}

  PDFDocumentation:
    uses: pyTooling/Actions/.github/workflows/LaTeXDocumentation.yml@r5
    needs:
      - UnitTestingParams
      - Documentation
    with:
      document: pyEDAA.ProjectModel
      latex_artifact: ${{ fromJson(needs.UnitTestingParams.outputs.artifact_names).documentation_latex }}
      pdf_artifact:   ${{ fromJson(needs.UnitTestingParams.outputs.artifact_names).documentation_pdf }}

See also

TagReleaseCommit

LatexDocumentation is usualy

Parameter Summary

Goto input parameters

Parameter Name

Required

Type

Default

ubuntu_image_version

no

string

'24.04'

latex_artifact

yes

string

— — — —

document

yes

string

— — — —

processor

no

string

'xelatex'

pdf_artifact

no

string

''

Goto secrets

This job template needs no secrets.

Goto output parameters

This job template has no output parameters.

Input Parameters

ubuntu_image_version

Type:

string

Required:

no

Default Value:

'24.04'

Possible Values:

See actions/runner-images - Available Images for available Ubuntu image versions.

Description:

Version of the Ubuntu image used to run this job.

Note

Unfortunately, GitHub Actions has only a limited set of functions, thus, the usual Ubuntu image name like 'ubuntu-24.04' can’t be split into image name and image version.

latex_artifact

Type:

string

Required:

yes

Default Value:

— — — —

Possible Values:

Any valid artifact name.

Description:

name of the artifact containing the LaTeX document to translate.

document

Type:

string

Required:

yes

Default Value:

— — — —

Possible Values:

Any valid document name.

Description:

Name of the LaTeX document

processor

Type:

string

Required:

no

Default Value:

'xelatex'

Possible Values:

Any supported LaTeX processor supported by MikTeX and latexmk.

Description:

Name of the used LaTeX processor.

pdf_artifact

Type:

string

Required:

no

Default Value:

''

Possible Values:

Any valid artifact name.

Description:

Name of the artifact containing the generated PDF document.

Optimization:

Hint

If this parameter is empty, no PDF file will be generated and no artifact will be uploaded.

Secrets

This job template needs no secrets.

Outputs

This job template has no output parameters.

Optimizations

The following optimizations can be used to reduce the template’s runtime.

Disable PDF generation and PDF artifact

If parameter pdf_artifact is empty, no PDF will be generated and uploaded.