Skip to content

Commit 66cd92f

Browse files
authored
Merge pull request #3124 from oesteban/doc/sphinxext-interfaces
DOC: Documentation overhaul
2 parents 92d8bc3 + e74d33b commit 66cd92f

File tree

121 files changed

+3450
-4033
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

121 files changed

+3450
-4033
lines changed

.circleci/config.yml

+52-1
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,6 @@ _run_codecov_smoke: &_run_codecov_smoke
9999
100100
version: 2
101101
jobs:
102-
103102
compare_base_dockerfiles:
104103
docker:
105104
- image: docker:17.10.0-ce-git
@@ -394,10 +393,44 @@ jobs:
394393
ssh-add ~/.ssh/id_ed25519
395394
/home/circleci/nipype/tools/feedstock.sh
396395
396+
build_docs:
397+
docker:
398+
- image: python:3.7.4
399+
working_directory: /tmp/src/nipype
400+
environment:
401+
- FSLOUTPUTTYPE: 'NIFTI'
402+
steps:
403+
- checkout
404+
- run:
405+
name: Check Python version and upgrade pip
406+
command: |
407+
python --version
408+
python -m pip install -U pip
409+
- run:
410+
name: Install graphviz
411+
command: |
412+
apt-get update
413+
apt-get install -y graphviz
414+
- run:
415+
name: Install Requirements (may contain pinned versions)
416+
command: python -m pip install -r doc/requirements.txt
417+
- run:
418+
name: Install NiPype
419+
command: python -m pip install ".[doc]"
420+
- run:
421+
name: Build documentation
422+
command: make -C doc html
423+
- store_artifacts:
424+
path: /tmp/src/nipype/doc/_build/html
425+
397426
workflows:
398427
version: 2
399428
build_test_deploy:
400429
jobs:
430+
- build_docs:
431+
filters:
432+
tags:
433+
only: /.*/
401434
- pypi_precheck:
402435
filters:
403436
branches:
@@ -406,21 +439,39 @@ workflows:
406439
only: /.*/
407440
- compare_base_dockerfiles:
408441
filters:
442+
branches:
443+
ignore:
444+
- /docs?\/.*/
409445
tags:
410446
only: /.*/
411447
- test_pytest:
412448
filters:
449+
branches:
450+
ignore:
451+
- /docs?\/.*/
413452
tags:
414453
only: /.*/
415454
requires:
416455
- compare_base_dockerfiles
417456
- test_fmri_fsl_spm:
457+
filters:
458+
branches:
459+
ignore:
460+
- /docs?\/.*/
418461
requires:
419462
- compare_base_dockerfiles
420463
- test_fmri_spm_dartel_multiproc:
464+
filters:
465+
branches:
466+
ignore:
467+
- /docs?\/.*/
421468
requires:
422469
- compare_base_dockerfiles
423470
- test_fmri_spm_nested_fsl_feeds:
471+
filters:
472+
branches:
473+
ignore:
474+
- /docs?\/.*/
424475
requires:
425476
- compare_base_dockerfiles
426477
- deploy_dockerhub:

MANIFEST.in

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ include MANIFEST.in
44
include README
55
include THANKS
66
include Makefile
7-
include build_docs.py
87
include setup_egg.py
98
include doc/documentation.zip
109
include nipype/COMMIT_INFO.txt

build_docs.py

-197
This file was deleted.

doc/Makefile

+5-26
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,11 @@ PAPEROPT_a4 = -D latex_paper_size=a4
1111
PAPEROPT_letter = -D latex_paper_size=letter
1212
ALLSPHINXOPTS = -d _build/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) .
1313

14-
.PHONY: help clean html nipypeapi htmlonly latex changes linkcheck doctest
14+
.PHONY: help clean html htmlonly latex changes linkcheck doctest
1515

1616
help:
1717
@echo "Please use \`make <target>' where <target> is one of"
1818
@echo " html make the HTML documentation"
19-
@echo " nipypeapi make interface API documents only"
2019
@echo " latex make the LaTeX, you can set PAPER=a4 or PAPER=letter"
2120
@echo " pdf make <latex> and run the PDF generation"
2221
@echo " changes make an overview of all changed/added/deprecated" \
@@ -33,20 +32,15 @@ htmlonly:
3332
@echo
3433
@echo "Build finished. The HTML pages are in _build/html."
3534

36-
nipypeapi:
37-
rm -rf interfaces/generated
38-
python -u ../tools/build_interface_docs.py
39-
@echo "Build API docs finished."
40-
41-
html: clean examples2rst nipypeapi htmlonly
35+
html: clean examples2rst htmlonly
4236
@echo "Build HTML and API finished."
4337

44-
examples2rst:
38+
examples2rst: clean
4539
mkdir -p users/examples
46-
../tools/make_examples.py --no-exec
40+
../tools/make_examples.py -x ../../../examples/test_spm.py --no-exec
4741
@echo "examples2rst finished."
4842

49-
latex: nipypeapi
43+
latex: clean examples2rst
5044
$(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) _build/latex
5145
@echo
5246
@echo "Build finished; the LaTeX files are in _build/latex."
@@ -80,18 +74,3 @@ gitwash-update:
8074
--project-url=http://nipy.org/nipype \
8175
--project-ml-url=http://mail.scipy.org/mailman/listinfo/nipy-devel
8276
@echo "gitwash updated"
83-
84-
# Sourceforge doesn't appear to have a way of copying the files
85-
# without specifying a username. So we'll probably have one target
86-
# for each project admin
87-
sf_satra_nightly: html
88-
@echo "Copying html files to sourceforge..."
89-
scp -r _build/html/* satra,[email protected]:htdocs/nipype-nightly/
90-
91-
sf_satra: html
92-
@echo "Copying html files to sourceforge..."
93-
rsync -auv _build/html/. satra,[email protected]:htdocs/nipype/.
94-
95-
sf_filo: html
96-
@echo "Copying html files to sourceforge..."
97-
rsync -auv _build/html/. gorgolewski,[email protected]:htdocs/nipype/.

doc/README.txt

-28
This file was deleted.

doc/_templates/navbar.html

+3-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@
99

1010
<a class="navbar" href="{{pathto('index')}}">Home</a> ·
1111
<a class="navbar" href="{{pathto('quickstart')}}">Quickstart</a> ·
12-
<a class="navbar" href="{{pathto('documentation')}}">Documentation</a> ·
12+
<a class="navbar" href="{{pathto('examples')}}">User Guide and Examples</a> ·
13+
<a class="navbar" href="{{pathto('interfaces')}}">Interfaces Index</a> ·
14+
<a class="navbar" href="{{pathto('developers')}}">Developers</a> ·
1315
<a class="navbar" href="{{pathto('about')}}">About</a> ·
1416
<a class="navbar" href="http://nipy.org">Nipy</a>
1517

0 commit comments

Comments
 (0)