Skip to content

Commit

Permalink
Skip json build for docs build. (#146)
Browse files Browse the repository at this point in the history
Co-authored-by: Roberto Pastor Muela <[email protected]>
  • Loading branch information
2 people authored and jorgepiloto committed Jan 23, 2023
1 parent e2ccfeb commit cb6add4
Show file tree
Hide file tree
Showing 10 changed files with 26 additions and 14 deletions.
2 changes: 1 addition & 1 deletion build-ci-wheels/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ inputs:
required: false
type: boolean
checkout:
description: 'Whether to checkout the repository or not'
description: 'Whether to checkout the repository or not.'
default: true
required: false
type: boolean
Expand Down
2 changes: 1 addition & 1 deletion build-library/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ inputs:
default: true
type: boolean
checkout:
description: 'Whether to checkout the repository or not'
description: 'Whether to checkout the repository or not.'
default: true
required: false
type: boolean
Expand Down
2 changes: 1 addition & 1 deletion build-wheelhouse/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ inputs:
default: ''
type: string
checkout:
description: 'Whether to checkout the repository or not'
description: 'Whether to checkout the repository or not.'
default: true
required: false
type: boolean
Expand Down
2 changes: 1 addition & 1 deletion check-licenses/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ inputs:
default: ''
type: string
checkout:
description: 'Whether to checkout the repository or not'
description: 'Whether to checkout the repository or not.'
default: true
required: false
type: boolean
Expand Down
2 changes: 1 addition & 1 deletion code-style/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ inputs:
default: true
type: boolean
checkout:
description: 'Whether to checkout the repository or not'
description: 'Whether to checkout the repository or not.'
default: true
required: false
type: boolean
Expand Down
22 changes: 17 additions & 5 deletions doc-build/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,12 @@ inputs:
required: false
type: boolean
checkout:
description: 'Whether to checkout the repository or not'
description: 'Whether to checkout the repository or not.'
default: true
required: false
type: boolean
skip-json-build:
description: 'Whether to build json files or not.'
default: true
required: false
type: boolean
Expand Down Expand Up @@ -98,22 +103,28 @@ runs:
shell: bash
if: env.EXISTS_DOC_REQUIREMENTS == 'false'
run: python -m pip install .[doc]

- name: "Build HTML, PDF, and JSON documentation"
if: inputs.requires-xvfb == 'false'
shell: bash
run: |
make -C doc html SPHINXOPTS="${{ inputs.sphinxopts }}"
make -C doc pdf
make -C doc json SPHINXOPTS="${{ inputs.sphinxopts }}"
if [[ ${{ inputs.skip-json-build == 'false' }} ]];
then
make -C doc json SPHINXOPTS="${{ inputs.sphinxopts }}"
fi
- name: "Build HTML and JSON documentation using xvfb"
- name: "Build HTML, PDF, and JSON documentation using xvfb"
if: inputs.requires-xvfb == 'true'
shell: bash
run: |
xvfb-run make -C doc html SPHINXOPTS="${{ inputs.sphinxopts }}"
xvfb-run make -C doc pdf
xvfb-run make -C doc json SPHINXOPTS="${{ inputs.sphinxopts }}"
if [[ ${{ inputs.skip-json-build == 'false' }} ]];
then
xvfb-run make -C doc json SPHINXOPTS="${{ inputs.sphinxopts }}"
fi
- name: "Upload HTML documentation artifact"
uses: actions/upload-artifact@v3
Expand All @@ -131,6 +142,7 @@ runs:

- name: "Upload JSON documentation artifact"
uses: actions/upload-artifact@v3
if: inputs.skip-json-build == 'false'
with:
name: documentation-json
path: doc/_build/json
Expand Down
2 changes: 1 addition & 1 deletion doc-deploy-stable/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ inputs:
required: false
type: string
checkout:
description: 'Whether to checkout the repository or not'
description: 'Whether to checkout the repository or not.'
default: true
required: false
type: boolean
Expand Down
2 changes: 1 addition & 1 deletion doc-deploy-to-repo/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ inputs:
required: true
type: string
checkout:
description: 'Whether to checkout the repository or not'
description: 'Whether to checkout the repository or not.'

default: true
required: false
Expand Down
2 changes: 1 addition & 1 deletion doc-style/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ inputs:
required: true
type: string
checkout:
description: 'Whether to checkout the repository or not'
description: 'Whether to checkout the repository or not.'
default: true
required: false
type: boolean
Expand Down
2 changes: 1 addition & 1 deletion tests-pytest/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ inputs:
required: false
type: boolean
checkout:
description: 'Whether to checkout the repository or not'
description: 'Whether to checkout the repository or not.'
default: true
required: false
type: boolean
Expand Down

0 comments on commit cb6add4

Please sign in to comment.