Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion _doc-build-linux/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,13 @@ inputs:

needs-quarto:
description: |
Whether to add a Quarto cheatsheet to the documentation.
Whether to add a Quarto cheatsheet to the documentation. Default value is
``false``.

.. warning::

Quarto needs Jupyter to be installed. Make sure to add `Jupyter <https://pypi.org/project/jupyter/>` to
the requirements list.
required: true
type: boolean

Expand Down
27 changes: 14 additions & 13 deletions _doc-build-windows/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,13 @@ inputs:

needs-quarto:
description: |
Whether to add a Quarto cheatsheet to the documentation.
Whether to add a Quarto cheatsheet to the documentation. Default value is
``false``.

.. warning::

Quarto needs Jupyter to be installed. Make sure to add `Jupyter <https://pypi.org/project/jupyter/>` to
the requirements list.
required: true
type: boolean

Expand Down Expand Up @@ -176,6 +182,13 @@ runs:
choco install poppler -y
echo "C:\Program Files\poppler\bin" | Out-File -Append -FilePath $env:GITHUB_PATH -Encoding utf8

- name: "Install quarto for cheatsheet"
if: ${{ inputs.needs-quarto == 'true' }}
shell: powershell
run: |
choco install quarto -y
echo "C:\ProgramData\chocolatey\lib\quarto\tools" | Out-File -Append -FilePath $env:GITHUB_PATH -Encoding utf8

# ------------------------------------------------------------------------

- uses: ansys/actions/_logging@main
Expand All @@ -191,18 +204,6 @@ runs:

# ------------------------------------------------------------------------

- uses : ansys/actions/_logging@main
with:
level: "INFO"
message: >
Setup quarto to build the cheatsheet.

- name: Install Quarto
if: ${{ inputs.needs-quarto == 'true' }}
uses: quarto-dev/quarto-actions/setup@v2
with:
tinytex: true

- name: Check Quarto Version
if: ${{ inputs.needs-quarto == 'true' }}
shell: powershell
Expand Down
6 changes: 6 additions & 0 deletions doc-build/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,12 @@ inputs:
description: >
Whether to add a Quarto cheatsheet to the documentation. Default value is
``false``.

.. warning::

Quarto needs Jupyter to be installed. Make sure to add `Jupyter <https://pypi.org/project/jupyter/>` to
the requirements list.

default: false
required: false
type: boolean
Expand Down