Skip to content

Commit 752e6f0

Browse files
committed
update documentation
1 parent 1aa443a commit 752e6f0

File tree

13 files changed

+145
-107
lines changed

13 files changed

+145
-107
lines changed

CHANGES.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
0.1.0 (2018-09-06)
2+
==================
3+
4+
* First release on GitHub.
5+

CONTRIBUTING.rst

Lines changed: 29 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,31 @@
44
Contributing
55
============
66

7-
Contributions are welcome, and they are greatly appreciated! Every little bit
8-
helps, and credit will always be given.
7+
We love contributions! dmriprep is open source, built on open source,
8+
and we'd love to have you hang out in our community.
9+
10+
**Imposter syndrome disclaimer**: We want your help. No, really.
11+
12+
There may be a little voice inside your head that is telling you that
13+
you're not ready to be an open source contributor; that your skills
14+
aren't nearly good enough to contribute. What could you possibly offer a
15+
project like this one?
16+
17+
We assure you - the little voice in your head is wrong. If you can
18+
write code at all, you can contribute code to open source. Contributing
19+
to open source projects is a fantastic way to advance one's coding
20+
skills. Writing perfect code isn't the measure of a good developer (that
21+
would disqualify all of us!); it's trying to create something, making
22+
mistakes, and learning from those mistakes. That's how we all improve,
23+
and we are happy to help others learn.
24+
25+
Being an open source contributor doesn't just mean writing code, either.
26+
You can help out by writing documentation, tests, or even giving
27+
feedback about the project (and yes - that includes giving feedback
28+
about the contribution process). Some of these contributions may be the
29+
most valuable to the project as a whole, because you're coming to the
30+
project with fresh eyes, so you can see the errors and assumptions that
31+
seasoned contributors have glossed over.
932

1033
Installing a development version of dmriprep
1134
--------------------------------------------
@@ -152,3 +175,7 @@ $ git push
152175
$ git push --tags
153176

154177
Travis will then deploy to PyPI if tests pass.
178+
179+
The imposter syndrome disclaimer was originally written by
180+
`Adrienne Lowe <https://github.com/adriennefriend>`_ for a `PyCon talk <https://www.youtube.com/watch?v=6Uj746j9Heo>`_, and was
181+
adapted based on its use in the README file for the `MetPy project <https://github.com/Unidata/MetPy>`_.

HISTORY.rst

Lines changed: 0 additions & 8 deletions
This file was deleted.

README.rst

Lines changed: 18 additions & 83 deletions
Original file line numberDiff line numberDiff line change
@@ -25,95 +25,30 @@ Preparing your data
2525

2626
You should have raw data organized in the BIDS format. Also, you should have run Freesurfer and the results should be in a derivatives/ folder:
2727

28-
```
29-
bids
30-
├── derivatives
31-
│   └── sub-01
32-
│   └── freesurfer
33-
└── sub-01
34-
├── dwi
35-
│   ├── sub-01_ses-01_dwi.bval
36-
│   ├── sub-01_ses-01_dwi.bvec
37-
│   ├── sub-01_ses-01_dwi.json
38-
│   └── sub-01_ses-01_dwi.nii.gz
39-
└── fmap
40-
├── sub-01_ses-01_acq-dwi_dir-AP_epi.json
41-
├── sub-01_ses-01_acq-dwi_dir-AP_epi.nii.gz
42-
├── sub-01_ses-01_acq-dwi_dir-PA_epi.json
43-
└── sub-01_ses-01_acq-dwi_dir-PA_epi.nii.gz
44-
```
45-
46-
Quickstart
47-
----------
48-
49-
.. code-block:: bash
50-
git clone https://github.com/tigrlab/dmriprep
51-
cd dmriprep
52-
python setup.py install
53-
54-
dmriprep $BIDS_INPUT_DIR $OUTPUT_DIR --participant-label 01
55-
56-
.. code-block:: bash
57-
git clone https://github.com/tigrlab/dmriprep
58-
cd dmriprep
59-
make docker
60-
61-
If you don't want to log into the docker image:
62-
.. code-block:: bash
63-
docker run -ti -v $BIDS_INPUT_DIR:/inputs -v $OUTPUT_DIR:/outputs dmriprep:prod dmriprep /inputs /outputs
64-
65-
If you want to log into the image:
66-
.. code-block:: bash
67-
docker run -ti -v $BIDS_INPUT_DIR:/inputs -v $OUTPUT_DIR:/outputs dmriprep:prod
68-
69-
Run this inside the docker image:
70-
.. code-block:: bash
71-
dmriprep /inputs /output --participant-label 01
28+
.. code-block:: console
29+
30+
bids
31+
├── derivatives
32+
│   └── sub-01
33+
│   └── freesurfer
34+
└── sub-01
35+
├── dwi
36+
│   ├── sub-01_ses-01_dwi.bval
37+
│   ├── sub-01_ses-01_dwi.bvec
38+
│   ├── sub-01_ses-01_dwi.json
39+
│   └── sub-01_ses-01_dwi.nii.gz
40+
└── fmap
41+
├── sub-01_ses-01_acq-dwi_dir-AP_epi.json
42+
├── sub-01_ses-01_acq-dwi_dir-AP_epi.nii.gz
43+
├── sub-01_ses-01_acq-dwi_dir-PA_epi.json
44+
└── sub-01_ses-01_acq-dwi_dir-PA_epi.nii.gz
7245
7346
Features
7447
--------
7548

7649
* TODO
7750

78-
Contributing
79-
------------
80-
81-
We love contributions! dmriprep is open source, built on open source,
82-
and we'd love to have you hang out in our community.
83-
84-
We have developed some [guidelines](CONTRIBUTING.rst) for contributing to
85-
dmriprep.
86-
87-
**Imposter syndrome disclaimer**: We want your help. No, really.
88-
89-
There may be a little voice inside your head that is telling you that
90-
you're not ready to be an open source contributor; that your skills
91-
aren't nearly good enough to contribute. What could you possibly offer a
92-
project like this one?
93-
94-
We assure you - the little voice in your head is wrong. If you can
95-
write code at all, you can contribute code to open source. Contributing
96-
to open source projects is a fantastic way to advance one's coding
97-
skills. Writing perfect code isn't the measure of a good developer (that
98-
would disqualify all of us!); it's trying to create something, making
99-
mistakes, and learning from those mistakes. That's how we all improve,
100-
and we are happy to help others learn.
101-
102-
Being an open source contributor doesn't just mean writing code, either.
103-
You can help out by writing documentation, tests, or even giving
104-
feedback about the project (and yes - that includes giving feedback
105-
about the contribution process). Some of these contributions may be the
106-
most valuable to the project as a whole, because you're coming to the
107-
project with fresh eyes, so you can see the errors and assumptions that
108-
seasoned contributors have glossed over.
109-
11051
Credits
11152
-------
11253

113-
This package was created with [Cookiecutter](https://github.com/audreyr/cookiecutter) and the [`audreyr/cookiecutter-pypackage`](https://github.com/audreyr/cookiecutter-pypackage) project template.
114-
115-
The imposter syndrome disclaimer was originally written by
116-
[Adrienne Lowe](https://github.com/adriennefriend) for a [PyCon
117-
talk](https://www.youtube.com/watch?v=6Uj746j9Heo), and was
118-
adapted based on its use in the README file for the [MetPy
119-
project](https://github.com/Unidata/MetPy).
54+
This package was created with `Cookiecutter <https://github.com/audreyr/cookiecutter>`_ and the `audreyr/cookiecutter-pypackage <https://github.com/audreyr/cookiecutter-pypackage>`_ project template.

docs/changes.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
----------
2+
What's new
3+
----------
4+
5+
.. includes:: ../CHANGES.rst

docs/conf.py

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
#
2121
import os
2222
import sys
23+
from datetime import datetime
2324

2425
sys.path.insert(0, os.path.abspath(".."))
2526

@@ -33,7 +34,11 @@
3334

3435
# Add any Sphinx extension module names here, as strings. They can be
3536
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
36-
extensions = ["sphinx.ext.autodoc", "sphinx.ext.viewcode"]
37+
extensions = [
38+
"sphinx.ext.autodoc",
39+
"sphinx.ext.viewcode",
40+
"sphinx_click.ext"
41+
]
3742

3843
# Add any paths that contain templates here, relative to this directory.
3944
templates_path = ["_templates"]
@@ -49,8 +54,9 @@
4954

5055
# General information about the project.
5156
project = "dmriprep"
52-
copyright = "2018, Anisha Keshavan"
5357
author = "Anisha Keshavan"
58+
copyright = "2018-%s, %s" % (datetime.now().year, author)
59+
5460

5561
# The version info for the project you're documenting, acts as replacement
5662
# for |version| and |release|, also used in various other places throughout
@@ -85,7 +91,7 @@
8591
# The theme to use for HTML and HTML Help pages. See the documentation for
8692
# a list of builtin themes.
8793
#
88-
html_theme = "alabaster"
94+
html_theme = "sphinx_rtd_theme"
8995

9096
# Theme options are theme-specific and customize the look and feel of a
9197
# theme further. For a list of options available for each theme, see the
@@ -130,7 +136,7 @@
130136
master_doc,
131137
"dmriprep.tex",
132138
"dmriprep Documentation",
133-
"Anisha Keshavan",
139+
author,
134140
"manual",
135141
)
136142
]

docs/history.rst

Lines changed: 0 additions & 1 deletion
This file was deleted.

docs/index.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,12 @@ Welcome to dmriprep's documentation!
77

88
readme
99
installation
10+
changes
1011
usage
12+
workflows
13+
outputs
1114
contributing
1215
authors
13-
history
1416

1517
Indices and tables
1618
==================

docs/installation.rst

Lines changed: 31 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,13 @@ You can either clone the public repository:
3232

3333
.. code-block:: console
3434
35-
$ git clone git://github.com/tigrlab/dmriprep
35+
$ git clone git://github.com/josephmje/dmriprep
3636
3737
Or download the `tarball`_:
3838

3939
.. code-block:: console
4040
41-
$ curl -OL https://github.com/tigrlab/dmriprep/tarball/master
41+
$ curl -OL https://github.com/josephmje/dmriprep/tarball/master
4242
4343
Once you have a copy of the source, you can install it with:
4444

@@ -47,5 +47,32 @@ Once you have a copy of the source, you can install it with:
4747
$ python setup.py install
4848
4949
50-
.. _Github repo: https://github.com/tigrlab/dmriprep
51-
.. _tarball: https://github.com/tigrlab/dmriprep/tarball/master
50+
.. _Github repo: https://github.com/josephmje/dmriprep
51+
.. _tarball: https://github.com/josephmje/dmriprep/tarball/master
52+
53+
Docker container
54+
----------------
55+
56+
.. code-block:: console
57+
58+
$ git clone https://github.com/josephmje/dmriprep
59+
$ cd dmriprep
60+
$ make docker
61+
62+
If you don't want to log into the docker image:
63+
64+
.. code-block:: console
65+
66+
$ docker run -ti -v $BIDS_INPUT_DIR:/inputs -v $OUTPUT_DIR:/outputs dmriprep:prod dmriprep /inputs /outputs
67+
68+
If you want to log into the image:
69+
70+
.. code-block:: console
71+
72+
$ docker run -ti -v $BIDS_INPUT_DIR:/inputs -v $OUTPUT_DIR:/outputs dmriprep:prod
73+
74+
Run this inside the docker image:
75+
76+
.. code-block:: console
77+
78+
$ dmriprep /inputs /output --participant-label 01

docs/links.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
.. _Nipype: http://nipype.readthedocs.io/en/latest/
2+
.. _BIDS: http://bids.neuroimaging.io
3+
.. _Usage: usage.html
4+
.. _Installation: installation.html
5+
.. _workflows: workflows.html
6+
.. _guidelines: contributing.html

0 commit comments

Comments
 (0)