diff --git a/.github/workflows/docs-build-update.yml b/.github/workflows/docs-build-update.yml index 9cb5013b39..6b05f0e947 100644 --- a/.github/workflows/docs-build-update.yml +++ b/.github/workflows/docs-build-update.yml @@ -59,6 +59,15 @@ jobs: python -m pip install -r docs/requirements.txt python -m hatch version | tail -n1 | xargs + - name: Pre-install template + shell: python + run: | + from templateflow.api import get + get('MNI152NLin2009cAsym', desc='brain', resolution=1, suffix='T1w') + get('MNI152NLin2009cAsym', desc='fMRIPrep', resolution=2, suffix='boldref') + get('MNI152NLin2009cAsym', desc='brain', resolution=2, suffix='mask') + get('MNI152NLin2009cAsym', label='brain', resolution=1, suffix='probseg') + - name: Build docs run: | make -C docs/ SPHINXOPTS="-W" BUILDDIR="$HOME/docs" OUTDIR="${CURBRANCH:-html}" html