-
Couldn't load subscription status.
- Fork 45
DOC: Deploy docs to gh-pages from CircleCI - with versioning #65
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
Merged
Merged
Changes from 18 commits
Commits
Show all changes
67 commits
Select commit
Hold shift + click to select a range
a895c7f
initial docs commit
rwblair 3e0f388
add doc build and deploy to workflow.
rwblair ff1798e
fix indentation of docs jobs in config.yml
rwblair 35624db
more indents in config.yml
rwblair d0f9048
ensure sphinx installed for docs
rwblair 50f713d
apidoc wont make a directory for you.
rwblair 1ee14cd
only build docs if push to pypi and docker works, only push docs if a…
rwblair ae493f6
Merge branch 'master' of github.com:poldracklab/smriprep into ci_doc_…
rwblair d8a6165
change in apidoc command, should fail missing dot command now
rwblair ec8d3a8
try building docs even if not deploying them
rwblair 7e901e1
install sphinx-versioning from github
rwblair 505bc4e
add apidoc to docs/conf.py
rwblair 3ce213c
change how apidoc output is referenced in index.rst
rwblair f0c9f7c
remove old api.rst
rwblair c2e5dd0
put doc requirements in their own file instead of only in ci config
rwblair 909baa5
add -e to github install for sphinx-versioning
rwblair 04991ea
call pip properly in build_docs in circle config
rwblair 809ae0e
use remove apidoc call in circle, use sphinx-versioning. Save documen…
rwblair 3910d09
Update docs/Makefile
rwblair 51a3ef9
Update docs/conf.py
rwblair 6268213
Update docs/api/smriprep.rst
rwblair 1a5b94e
Update docs/api/smriprep.rst
rwblair d5cf408
Deploy for any tag, not just ones that start with v
rwblair d85ff5b
Merge branch 'ci_doc_deploy' of github.com:poldracklab/smriprep into …
rwblair 08122d7
set a templatedir for apidoc
rwblair ffabae2
move autodoc templates into _templates. Minor removals inside package…
rwblair 062d18d
remove 'subpackages' header from main smriprep toctree
rwblair 8ec2bdb
Let apidoc build the files in docs/api
rwblair 5eaf33e
autodoc builds for workflows failed when called by sphinx-versioning …
rwblair 3f99224
circle needs to install graphviz
rwblair e2b5d9f
fixed circle config syntax error
rwblair 5cba911
fix for circle, python docker runs as root by default
rwblair ee24073
modernize pybids import
rwblair 9340f23
tweak package template, only show toctree for each package.
rwblair 76556f6
fix: remove ``docs/_sources`` // several improvements
oesteban b2e72e7
fix: improving template, slow apidoc down
oesteban 377799a
set fsloutput env variable to quiet the warnings when building docs
rwblair 268647b
ignore modules.rst generated by apidoc, fix indent issues and standar…
rwblair f9b8557
remove bidslayout import replace with named tuple
rwblair 581705f
add import for namedtuple
rwblair c6e49f9
Merge branch 'master' into ci_doc_deploy
oesteban 9a1f948
validate is not a kwarg for namedtuples, removing in base.py
rwblair 68ec087
have init_anat_norm_wf doc argument match actual argument name
rwblair 47112ef
convert templates from list to tuple in norm.py
rwblair a9722e5
remote another trailing underscore for freesurfer in docs.
rwblair 05dadf8
have pytest test use python 3.6 as required by twine package
rwblair 3bfa7e7
set python version for pytest test to one that pyenv has access to on…
rwblair 44aae1d
bump sphinxcontrib-versioning version to allow default sidebar entrie…
rwblair 88f0684
use python docker image instead of circle machine image
rwblair cbdfd5b
add --user flag for pytest test pip command
rwblair 8261eef
add --user flag for pytest test pip command
rwblair 53e9493
pin python version when building docs. Use makefile to build docs
rwblair c331167
add back in freesurfer link remove pytest as requirement
rwblair 534642d
have build_docs in ci cd to docs dir
rwblair 67d1bef
copy fmriprep makefile
rwblair 3f38183
use make to change dirs in stead of using seperate command in circle …
rwblair dc59b3e
fix sphinxversioning call in makefile and circle conf
rwblair e0075d9
sphinx-versioning needs to be called in the directory above docs/ to …
rwblair 6f7440c
cache versioned docs output to preserve html for previously build tags
rwblair ece60db
fix unmatched quote in circle config...
rwblair 09a9e44
actually validate circle config before pushing
rwblair e3841e0
DOC: Restore FreeSurfer link
effigies 70394aa
update setup.cfg requirements for docs
rwblair ae68918
DOC: Move links to docstring to avoid weird sphinx warning
effigies f491a0c
Merge branch 'ci_doc_deploy' of github.com:poldracklab/smriprep into …
rwblair cf74799
bump nipype version
rwblair b539115
bump pybids version
rwblair File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -429,6 +429,45 @@ jobs: | |
| - store_artifacts: | ||
| path: /tmp/ds054 | ||
|
|
||
| build_docs: | ||
| docker: | ||
| - image: python:latest | ||
| steps: | ||
| - checkout | ||
| - run: | ||
| name: Install deps | ||
| command: pip install -r requirements.txt && pip install -r docs_requirements.txt | ||
| - run: | ||
| name: Generate Docs | ||
| command: sphinx-versioning -vv build -r ci_doc_deploy ./docs ./docs/_build/html/ | ||
rwblair marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| - persist_to_workspace: | ||
| root: docs/_build | ||
| paths: html | ||
| - store_artifacts: | ||
| path: ./docs/_build/html | ||
|
|
||
| deploy_docs: | ||
| docker: | ||
| - image: node:8.10.0 | ||
| steps: | ||
| - checkout | ||
| - attach_workspace: | ||
| at: docs/_build | ||
| - run: | ||
| name: Disable jekyll builds | ||
| command: touch docs/_build/html/.nojekyll | ||
| - run: | ||
| name: Install and configure dependencies | ||
| command: | | ||
| npm install -g --silent [email protected] | ||
| git config user.email "[email protected]" | ||
| git config user.name "ci-build" | ||
| - add_ssh_keys: | ||
| fingerprints: | ||
| - "45:a6:cb:50:27:5a:c7:39:4c:1f:aa:2c:0f:87:8a:a6" | ||
| - run: | ||
| name: Deploy docs to gh-pages branch | ||
| command: gh-pages --dotfiles --message "[skip ci] Updates" --dist docs/_build/html | ||
|
|
||
| workflows: | ||
| version: 2 | ||
|
|
@@ -448,17 +487,32 @@ workflows: | |
| tags: | ||
| only: /.*/ | ||
|
|
||
| # - build_docs: | ||
| # requires: | ||
| # - build | ||
| # filters: | ||
| # branches: | ||
| # ignore: | ||
| # - /tests?\/.*/ | ||
| # - /ds005\/.*/ | ||
| # - /ds054\/.*/ | ||
| # tags: | ||
| # only: /.*/ | ||
| - build_docs: | ||
| #requires: | ||
| # - deploy_docker | ||
| # - deploy_pypi | ||
| filters: | ||
| branches: | ||
| ignore: | ||
| - /tests?\/.*/ | ||
| - /ds005\/.*/ | ||
| - /ds054\/.*/ | ||
| tags: | ||
| only: /.*/ | ||
|
|
||
| - deploy_docs: | ||
| requires: | ||
| - build_docs | ||
| - deploy_docker | ||
| - deploy_pypi | ||
| filters: | ||
| branches: | ||
| ignore: | ||
| - /tests?\/.*/ | ||
| - /ds005\/.*/ | ||
| - /ds054\/.*/ | ||
| tags: | ||
| only: /^v.*/ | ||
rwblair marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| - update_cache: | ||
| requires: | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| .. include:: links.rst | ||
|
|
||
| smriprep: A Robust Preprocessing Pipeline for Structural MRI Data | ||
| ================================================================= | ||
|
|
||
| This pipeline is developed by the `Poldrack lab at Stanford University | ||
| <https://poldracklab.stanford.edu/>`_ for use at the `Center for Reproducible | ||
| Neuroscience (CRN) <http://reproducibility.stanford.edu/>`_, as well as for | ||
| open-source software distribution. | ||
|
|
||
| This package is called directly from fMRIPrep_. |
Empty file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| # Minimal makefile for Sphinx documentation | ||
| # | ||
|
|
||
| # You can set these variables from the command line. | ||
| SPHINXOPTS = | ||
| SPHINXBUILD = sphinx-build | ||
| SOURCEDIR = . | ||
| BUILDDIR = _build | ||
|
|
||
| # Put it first so that "make" without argument is like "make help". | ||
| help: | ||
| @$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) | ||
|
|
||
| .PHONY: help Makefile | ||
|
|
||
| # Catch-all target: route all unknown targets to Sphinx using the new | ||
| # "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS). | ||
| %: Makefile | ||
| @$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) | ||
rwblair marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
Empty file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| smriprep | ||
| ======== | ||
|
|
||
| .. toctree:: | ||
| :maxdepth: 4 | ||
|
|
||
| smriprep |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,30 @@ | ||
| smriprep.cli package | ||
| ==================== | ||
|
|
||
| Submodules | ||
| ---------- | ||
|
|
||
| smriprep.cli.run module | ||
| ----------------------- | ||
|
|
||
| .. automodule:: smriprep.cli.run | ||
| :members: | ||
| :undoc-members: | ||
| :show-inheritance: | ||
|
|
||
| smriprep.cli.utils module | ||
| ------------------------- | ||
|
|
||
| .. automodule:: smriprep.cli.utils | ||
| :members: | ||
| :undoc-members: | ||
| :show-inheritance: | ||
|
|
||
|
|
||
| Module contents | ||
| --------------- | ||
|
|
||
| .. automodule:: smriprep.cli | ||
| :members: | ||
| :undoc-members: | ||
| :show-inheritance: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| smriprep.interfaces package | ||
| =========================== | ||
|
|
||
| Submodules | ||
| ---------- | ||
|
|
||
| smriprep.interfaces.reports module | ||
| ---------------------------------- | ||
|
|
||
| .. automodule:: smriprep.interfaces.reports | ||
| :members: | ||
| :undoc-members: | ||
| :show-inheritance: | ||
|
|
||
|
|
||
| Module contents | ||
| --------------- | ||
|
|
||
| .. automodule:: smriprep.interfaces | ||
| :members: | ||
| :undoc-members: | ||
| :show-inheritance: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| smriprep package | ||
| ================ | ||
|
|
||
| Subpackages | ||
| ----------- | ||
|
|
||
| .. toctree:: | ||
|
|
||
| smriprep.cli | ||
| smriprep.interfaces | ||
| smriprep.utils | ||
| smriprep.workflows | ||
|
|
||
| Module contents | ||
| --------------- | ||
|
|
||
| .. automodule:: smriprep | ||
| :members: | ||
| :undoc-members: | ||
| :show-inheritance: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| smriprep.utils package | ||
| ====================== | ||
|
|
||
| Submodules | ||
| ---------- | ||
|
|
||
| smriprep.utils.bids module | ||
| -------------------------- | ||
|
|
||
| .. automodule:: smriprep.utils.bids | ||
| :members: | ||
| :undoc-members: | ||
| :show-inheritance: | ||
|
|
||
|
|
||
| Module contents | ||
| --------------- | ||
|
|
||
| .. automodule:: smriprep.utils | ||
| :members: | ||
| :undoc-members: | ||
| :show-inheritance: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,54 @@ | ||
| smriprep.workflows package | ||
| ========================== | ||
|
|
||
| Submodules | ||
| ---------- | ||
|
|
||
| smriprep.workflows.anatomical module | ||
| ------------------------------------ | ||
|
|
||
| .. automodule:: smriprep.workflows.anatomical | ||
| :members: | ||
| :undoc-members: | ||
| :show-inheritance: | ||
|
|
||
| smriprep.workflows.base module | ||
| ------------------------------ | ||
|
|
||
| .. automodule:: smriprep.workflows.base | ||
| :members: | ||
| :undoc-members: | ||
| :show-inheritance: | ||
|
|
||
| smriprep.workflows.norm module | ||
| ------------------------------ | ||
|
|
||
| .. automodule:: smriprep.workflows.norm | ||
| :members: | ||
| :undoc-members: | ||
| :show-inheritance: | ||
|
|
||
| smriprep.workflows.outputs module | ||
| --------------------------------- | ||
|
|
||
| .. automodule:: smriprep.workflows.outputs | ||
| :members: | ||
| :undoc-members: | ||
| :show-inheritance: | ||
|
|
||
| smriprep.workflows.surfaces module | ||
| ---------------------------------- | ||
|
|
||
| .. automodule:: smriprep.workflows.surfaces | ||
| :members: | ||
| :undoc-members: | ||
| :show-inheritance: | ||
|
|
||
|
|
||
| Module contents | ||
| --------------- | ||
|
|
||
| .. automodule:: smriprep.workflows | ||
| :members: | ||
| :undoc-members: | ||
| :show-inheritance: |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.