Skip to content

Commit 07887e0

Browse files
committed
fix: build docs on CircleCI
1 parent 223e04a commit 07887e0

File tree

7 files changed

+19
-12
lines changed

7 files changed

+19
-12
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ jobs:
377377
python -m venv /tmp/venv
378378
source /tmp/venv/bin/activate
379379
python -m pip install -U build hatch hatchling pip twine docutils
380-
python -m pip install --no-cache-dir -r docs/requirements.txt
380+
python -m pip install .[docs]
381381
- run:
382382
name: Build only this commit
383383
command: |

docs/Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
# You can set these variables from the command line.
55
SPHINXOPTS =
66
SPHINXBUILD = sphinx-build
7+
SPHINX_APIDOC_OPTIONS = members,show-inheritance
78
PAPER =
89
BUILDDIR = _build
910
OUTDIR = html
@@ -57,7 +58,7 @@ docs-coverage:
5758
PYTHONPATH=$(PYTHONPATH) $(SPHINXBUILD) -b coverage $(ALLSPHINXOPTS) $(BUILDDIR)/coverage
5859

5960
html:
60-
PYTHONPATH=$(PYTHONPATH) $(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/$(OUTDIR)
61+
PYTHONPATH=$(PYTHONPATH) SPHINX_APIDOC_OPTIONS=$(SPHINX_APIDOC_OPTIONS) $(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/$(OUTDIR)
6162
@echo
6263
@echo "Build finished. The HTML pages are in $(BUILDDIR)/$(OUTDIR)."
6364

File renamed without changes.

docs/api.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ Information on specific functions, classes, and methods.
77
:glob:
88

99
api/sdcflows.cli
10+
api/sdcflows.config
1011
api/sdcflows.data
1112
api/sdcflows.fieldmaps
1213
api/sdcflows.interfaces

docs/requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ matplotlib >= 2.2.0
77
nbsphinx
88
nibabel
99
nipype >= 1.5.1
10-
niworkflows ~= 1.6.3
10+
niworkflows >= 1.7.0
1111
numpy
1212
packaging
1313
pandoc
@@ -18,4 +18,4 @@ sphinx >= 7.2.2
1818
sphinx-argparse
1919
sphinxcontrib-apidoc
2020
templateflow
21-
traits < 6.4
21+
traits < 6.4

pyproject.toml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,19 +47,24 @@ doc = [
4747
"attrs >= 20.1.0",
4848
"furo",
4949
"importlib_resources",
50+
"ipykernel",
51+
"ipython",
5052
"matplotlib >= 2.2.0",
53+
"nbsphinx",
5154
"nibabel",
5255
"nipype >= 1.5.1",
53-
"traits < 6.4",
5456
"niworkflows >= 1.7.0",
5557
"numpy",
5658
"packaging",
59+
"pandoc",
5760
"pydot >= 1.2.3",
5861
"pydotplus",
62+
"scipy",
5963
"sphinx >= 7.2.2",
6064
"sphinx-argparse",
6165
"sphinxcontrib-apidoc",
62-
"templateflow"
66+
"templateflow",
67+
"traits < 6.4"
6368
]
6469

6570
mem = [

sdcflows/config.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
The module has a :py:func:`~sdcflows.config.to_filename` function to allow writing out
5555
the settings to hard disk in *ToML* format, which looks like:
5656
57-
.. literalinclude:: ../sdcflows/data/config-example.toml
57+
.. literalinclude:: /_static/config-example.toml
5858
:language: toml
5959
:name: sdcflows.toml
6060
:caption: **Example file representation of SDCFlows settings**.
@@ -65,13 +65,13 @@
6565
Configuration sections
6666
----------------------
6767
.. autoclass:: environment
68-
:members:
68+
:noindex:
6969
.. autoclass:: execution
70-
:members:
70+
:noindex:
7171
.. autoclass:: workflow
72-
:members:
72+
:noindex:
7373
.. autoclass:: nipype
74-
:members:
74+
:noindex:
7575
7676
Usage
7777
-----
@@ -97,7 +97,7 @@
9797
Logging
9898
-------
9999
.. autoclass:: loggers
100-
:members:
100+
:noindex:
101101
102102
Other responsibilities
103103
----------------------

0 commit comments

Comments
 (0)