Skip to content

Commit

Permalink
Merge pull request #409 from nipreps/docs/render-notebooks
Browse files Browse the repository at this point in the history
ENH: Enable rendering of the Jupyter notebooks
  • Loading branch information
oesteban authored Nov 30, 2023
2 parents f3b376d + 582a217 commit e6ba541
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 5 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/docs-build-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,15 @@ jobs:
echo "Building branch/tag ${CURBRANCH:-<unkwown>}, from git ref <$GITHUB_REF>"
echo "CURBRANCH=${CURBRANCH}" >> ${GITHUB_ENV}
- name: Install GraphViz
- name: Set up Python 3
uses: actions/setup-python@v4
with:
python-version: 3

- name: Install GraphViz & pandoc
run: |
sudo apt-get update -y
sudo apt-get install -y --no-install-recommends graphviz
sudo apt-get install -y --no-install-recommends graphviz pandoc
- name: Install dependencies
run: |
Expand Down
9 changes: 7 additions & 2 deletions .github/workflows/docs-build-update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,15 @@ jobs:
# Pacify git if we were to commit something
git config user.email "[email protected]"
git config user.name "NiPreps Bot"
- name: Install GraphViz
- name: Install GraphViz & pandoc
run: |
sudo apt-get update -y
sudo apt-get install -y --no-install-recommends graphviz
sudo apt-get install -y --no-install-recommends graphviz pandoc
- name: Set up Python 3
uses: actions/setup-python@v4
with:
python-version: 3

- name: Install dependencies
run: |
Expand Down
1 change: 1 addition & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
"sphinx.ext.mathjax",
"sphinx.ext.viewcode",
"sphinxcontrib.apidoc",
"nbsphinx",
"nipype.sphinxext.apidoc",
"nipype.sphinxext.plot_workflow",
]
Expand Down
8 changes: 8 additions & 0 deletions docs/examples.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
Examples
========

.. toctree::
:maxdepth: 2
:caption: Contents:

notebooks/SDC - Theory and physics
1 change: 1 addition & 0 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ Contents
:maxdepth: 3

installation
examples
methods
api
changes
7 changes: 6 additions & 1 deletion docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,15 +1,20 @@
attrs >= 20.1.0
furo
importlib_resources
ipykernel
ipython
matplotlib >= 2.2.0
nbsphinx
nibabel
nipype >= 1.5.1
traits < 6.4
niworkflows ~= 1.6.3
numpy
packaging
pandoc
pydot >= 1.2.3
pydotplus
scipy
sphinx >= 7.2.2
sphinxcontrib-apidoc
templateflow
traits < 6.4

0 comments on commit e6ba541

Please sign in to comment.