Skip to content

Commit 2db0774

Browse files
authored
Merge pull request #427 from nipreps/fix/broken-docs-build-2
FIX: Pandoc requires Texlive to render LaTeX in notebook
2 parents 6c5292c + b3c28a4 commit 2db0774

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.circleci/config.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ jobs:
370370
name: Install Graphviz & pandoc
371371
command: |
372372
sudo apt-get update -y
373-
sudo apt-get install -y --no-install-recommends graphviz pandoc
373+
sudo apt-get install -y --no-install-recommends graphviz pandoc texlive
374374
- run:
375375
name: Install deps
376376
command: |
@@ -384,7 +384,8 @@ jobs:
384384
source /tmp/venv/bin/activate
385385
python -m hatch version | tail -n1 | xargs
386386
BRANCH=$( echo $CIRCLE_BRANCH | sed 's+/+_+g' )
387-
make -C docs SPHINXOPTS="-W" BUILDDIR="$HOME/docs" OUTDIR=${CIRCLE_TAG:-$BRANCH} html
387+
python -c "from templateflow.api import get; get('MNI152NLin2009cAsym', desc='brain', resolution=1, suffix='T1w')"
388+
make -C docs SPHINXOPTS="-W -v" BUILDDIR="$HOME/docs" OUTDIR=${CIRCLE_TAG:-$BRANCH} html
388389
- store_artifacts:
389390
path: ~/docs/
390391

docs/notebooks/SDC - Theory and physics.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@
142142
"metadata": {},
143143
"outputs": [],
144144
"source": [
145-
"data = np.asanyarray(nb.load(get(\"MNI152NLin2009cAsym\", desc=\"brain\", resolution=1, suffix=\"T1w\")).dataobj)"
145+
"data = np.asanyarray(nb.load(get(\"MNI152NLin2009cAsym\", desc=\"brain\", resolution=1, suffix=\"T1w\")).dataobj);"
146146
]
147147
},
148148
{

0 commit comments

Comments
 (0)