Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DOC: Documentation overhaul #3124

Merged
merged 23 commits into from
Jan 2, 2020
Merged
Show file tree
Hide file tree
Changes from 14 commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
cb1e376
DOC: Documentation overhaul
oesteban Dec 21, 2019
98ae446
fix: circle.yml file
oesteban Dec 29, 2019
5caa4a4
fix: add modified specs
oesteban Dec 30, 2019
70db903
sty: black
oesteban Dec 30, 2019
9b0026f
fix: make specs after black
oesteban Dec 30, 2019
6bd2f35
maint: remove unused ``build_docs.py`` script
oesteban Dec 30, 2019
9a02161
fix: small typos, pep8 errors, etc.
oesteban Dec 30, 2019
4c4c00c
Merge remote-tracking branch 'upstream/master' into doc/sphinxext-int…
effigies Dec 31, 2019
36242c6
Apply suggestions from code review
oesteban Jan 1, 2020
bb1157e
Apply suggestions from code review
oesteban Jan 1, 2020
3041af5
fix: minimal fixes in ordering and links
oesteban Jan 1, 2020
571d27e
fix: links to interface bases when showing inheritance
oesteban Jan 1, 2020
88ce978
Apply suggestions from code review
oesteban Jan 1, 2020
d547366
Apply suggestions from code review
oesteban Jan 1, 2020
b92a531
Apply suggestions from code review
oesteban Jan 1, 2020
1a903e6
Update doc/interfaces.rst
oesteban Jan 1, 2020
a9b434b
fix: typos and links in fmri auditory example
oesteban Jan 1, 2020
7be74f9
fix: updates to ``make_examples.py``
oesteban Jan 1, 2020
356422b
fix: miscellaneous improvements and fixes
oesteban Jan 1, 2020
98d2418
Merge remote-tracking branch 'upstream/master' into doc/sphinxext-int…
oesteban Jan 2, 2020
32fc5f1
doc: fix sphinx's latex build
oesteban Jan 2, 2020
482d815
fix: strings too long
oesteban Jan 2, 2020
e74d33b
fix: codacy issues
oesteban Jan 2, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 52 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,6 @@ _run_codecov_smoke: &_run_codecov_smoke

version: 2
jobs:

compare_base_dockerfiles:
docker:
- image: docker:17.10.0-ce-git
Expand Down Expand Up @@ -394,10 +393,44 @@ jobs:
ssh-add ~/.ssh/id_ed25519
/home/circleci/nipype/tools/feedstock.sh

build_docs:
docker:
- image: python:3.7.4
working_directory: /tmp/src/nipype
environment:
- FSLOUTPUTTYPE: 'NIFTI'
steps:
- checkout
- run:
name: Check Python version and upgrade pip
command: |
python --version
python -m pip install -U pip
- run:
name: Install graphviz
command: |
apt-get update
apt-get install -y graphviz
- run:
name: Install Requirements (may contain pinned versions)
command: python -m pip install -r doc/requirements.txt
- run:
name: Install NiPype
command: python -m pip install ".[doc]"
- run:
name: Build documentation
command: make -C doc html
- store_artifacts:
path: /tmp/src/nipype/doc/_build/html

workflows:
version: 2
build_test_deploy:
jobs:
- build_docs:
filters:
tags:
only: /.*/
- pypi_precheck:
filters:
branches:
Expand All @@ -406,21 +439,39 @@ workflows:
only: /.*/
- compare_base_dockerfiles:
filters:
branches:
ignore:
- /docs?\/.*/
tags:
only: /.*/
- test_pytest:
filters:
branches:
ignore:
- /docs?\/.*/
tags:
only: /.*/
requires:
- compare_base_dockerfiles
- test_fmri_fsl_spm:
filters:
branches:
ignore:
- /docs?\/.*/
requires:
- compare_base_dockerfiles
- test_fmri_spm_dartel_multiproc:
filters:
branches:
ignore:
- /docs?\/.*/
requires:
- compare_base_dockerfiles
- test_fmri_spm_nested_fsl_feeds:
filters:
branches:
ignore:
- /docs?\/.*/
requires:
- compare_base_dockerfiles
- deploy_dockerhub:
Expand Down
1 change: 0 additions & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ include MANIFEST.in
include README
include THANKS
include Makefile
include build_docs.py
include setup_egg.py
include doc/documentation.zip
include nipype/COMMIT_INFO.txt
Expand Down
197 changes: 0 additions & 197 deletions build_docs.py

This file was deleted.

31 changes: 5 additions & 26 deletions doc/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,11 @@ PAPEROPT_a4 = -D latex_paper_size=a4
PAPEROPT_letter = -D latex_paper_size=letter
ALLSPHINXOPTS = -d _build/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) .

.PHONY: help clean html nipypeapi htmlonly latex changes linkcheck doctest
.PHONY: help clean html htmlonly latex changes linkcheck doctest

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

nipypeapi:
rm -rf interfaces/generated
python -u ../tools/build_interface_docs.py
@echo "Build API docs finished."

html: clean examples2rst nipypeapi htmlonly
html: clean examples2rst htmlonly
@echo "Build HTML and API finished."

examples2rst:
examples2rst: clean
mkdir -p users/examples
../tools/make_examples.py --no-exec
../tools/make_examples.py -x ../../../examples/test_spm.py --no-exec
@echo "examples2rst finished."

latex: nipypeapi
latex: clean
$(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) _build/latex
@echo
@echo "Build finished; the LaTeX files are in _build/latex."
Expand Down Expand Up @@ -80,18 +74,3 @@ gitwash-update:
--project-url=http://nipy.org/nipype \
--project-ml-url=http://mail.scipy.org/mailman/listinfo/nipy-devel
@echo "gitwash updated"

# Sourceforge doesn't appear to have a way of copying the files
# without specifying a username. So we'll probably have one target
# for each project admin
sf_satra_nightly: html
@echo "Copying html files to sourceforge..."
scp -r _build/html/* satra,[email protected]:htdocs/nipype-nightly/

sf_satra: html
@echo "Copying html files to sourceforge..."
rsync -auv _build/html/. satra,[email protected]:htdocs/nipype/.

sf_filo: html
@echo "Copying html files to sourceforge..."
rsync -auv _build/html/. gorgolewski,[email protected]:htdocs/nipype/.
28 changes: 0 additions & 28 deletions doc/README.txt

This file was deleted.

4 changes: 3 additions & 1 deletion doc/_templates/navbar.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@

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

Loading