Skip to content

Commit

Permalink
Merge pull request #427 from nipreps/fix/broken-docs-build-2
Browse files Browse the repository at this point in the history
FIX: Pandoc requires Texlive to render LaTeX in notebook
  • Loading branch information
oesteban authored Jan 18, 2024
2 parents 6c5292c + b3c28a4 commit 2db0774
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ jobs:
name: Install Graphviz & pandoc
command: |
sudo apt-get update -y
sudo apt-get install -y --no-install-recommends graphviz pandoc
sudo apt-get install -y --no-install-recommends graphviz pandoc texlive
- run:
name: Install deps
command: |
Expand All @@ -384,7 +384,8 @@ jobs:
source /tmp/venv/bin/activate
python -m hatch version | tail -n1 | xargs
BRANCH=$( echo $CIRCLE_BRANCH | sed 's+/+_+g' )
make -C docs SPHINXOPTS="-W" BUILDDIR="$HOME/docs" OUTDIR=${CIRCLE_TAG:-$BRANCH} html
python -c "from templateflow.api import get; get('MNI152NLin2009cAsym', desc='brain', resolution=1, suffix='T1w')"
make -C docs SPHINXOPTS="-W -v" BUILDDIR="$HOME/docs" OUTDIR=${CIRCLE_TAG:-$BRANCH} html
- store_artifacts:
path: ~/docs/

Expand Down
2 changes: 1 addition & 1 deletion docs/notebooks/SDC - Theory and physics.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@
"metadata": {},
"outputs": [],
"source": [
"data = np.asanyarray(nb.load(get(\"MNI152NLin2009cAsym\", desc=\"brain\", resolution=1, suffix=\"T1w\")).dataobj)"
"data = np.asanyarray(nb.load(get(\"MNI152NLin2009cAsym\", desc=\"brain\", resolution=1, suffix=\"T1w\")).dataobj);"
]
},
{
Expand Down

0 comments on commit 2db0774

Please sign in to comment.