Skip to content

Commit fcdcb85

Browse files
committed
📝 Add user docs re: C-PAC versions
1 parent b299fb8 commit fcdcb85

File tree

5 files changed

+49
-5
lines changed

5 files changed

+49
-5
lines changed

docs/_sources/conf.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -573,14 +573,24 @@ def _unireplace(release_note, unireplace):
573573
# How to display URL addresses: 'footnote', 'no', or 'inline'.
574574
# texinfo_show_urls = 'footnote'
575575

576+
rst_prolog = """
577+
578+
.. |version as code| replace:: ``{version}``
579+
580+
""".format(
581+
version=f'v{version}' if not version.endswith('dev') else 'nightly'
582+
)
583+
576584
rst_epilog = """
577585
586+
578587
.. |Versions| replace:: {versions}
579588
580589
""".format(
581590
versions=', '.join(gh_tags[:5])
582591
) if len(gh_tags) >= 5 else ""
583592

593+
584594
def setup(app):
585595
from CPAC.utils.monitoring import custom_logging
586596

docs/_sources/user/cpac.rst

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ or
2424
2525
cpac upgrade
2626
27-
When downloading/upgrading, the ``--platform``, ``--image``, and ``--tag`` let you specify platform (Docker or Singularity), image (Docker image name or URL to image in repository), and tag (version tag, currently only for Docker repositories), respectively.
27+
When downloading/upgrading, the ``--platform``, ``--image``, and ``--tag`` let you specify platform (Docker or Singularity), image (Docker image name or URL to image in repository), and tag (:doc:`version tag </user/versions>`), respectively.
2828

2929
For example, a development Docker image can be downloaded with
3030

@@ -70,6 +70,8 @@ Usage
7070

7171
You can also specify a container image with an ``--image`` argument, passing an image name (e.g., ``fcpindi/c-pac``) for a Docker image or a filepath (e.g. ``~/singularity_images/C-PAC.sif``) for a Singularity image. You can also specify a ``--tag`` (e.g., ``latest`` or ``nightly``).
7272

73+
.. seealso:: :doc:`/user/versions`
74+
7375
You can also provide a link to an AWS S3 bucket containing a BIDS directory as the data source:
7476

7577
.. code-block:: console
@@ -115,7 +117,3 @@ Note that any of the optional arguments above will over-ride any pipeline settin
115117
* The ``participant_label`` and ``participant_ndx`` arguments allow the user to specify which of the many datasets should be processed, which is useful when parallelizing the run of multiple participants.
116118

117119
* If you want to pass runtime options to your container plaform (Docker or Singularity), you can pass them with ``-o`` or ``--container_options``.
118-
119-
.. rubric:: Footnotes
120-
121-
.. [*] The version restrictions for Singularity are specific to cpac the convenience wrapper. C-PAC itself should :doc:`run on Singularity <singularity>` 2 or 3.

docs/_sources/user/docker.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ To start, first pull the image from Docker Hub:
1515
1616
Once this is complete, you can use the ``fcpindi/c-pac:latest`` image tag to invoke runs. The full C-PAC Docker image usage options are shown here, with some specific use cases.
1717

18+
.. seealso:: :doc:`/user/versions`
19+
1820
As a quick example, in order to run the C-PAC Docker container in participant mode, for one participant, using a BIDS dataset stored on your machine or server, and using the Docker image's default pipeline configuration (broken into multiple lines for visual clarity):
1921

2022
.. code-block:: console

docs/_sources/user/index.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,3 +113,8 @@ User Guide Index
113113
10. Troubleshoot <help>
114114
11. Release Notes <rnotes>
115115
12. Appendix <appendix>
116+
117+
.. toctree::
118+
:hidden:
119+
120+
versions

docs/_sources/user/versions.rst

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
C-PAC versions
2+
==============
3+
4+
See :doc:`Release Notes </user/rnotes>` for information about specific versions of C-PAC. The Docker Hub tags are like ``fcpindi/c-pac:release-${VERSION}${VARIANT}`` where ``${VERSION}`` is either a specific semantic version prefixed with a ``v`` or ``latest`` or ``nightly``, like |example version|
5+
6+
Variants
7+
^^^^^^^^
8+
9+
Primary image
10+
-------------
11+
12+
Non-variant, primary image (no ``${VARIANT}`` or an empty string, e.g. |example version|)
13+
14+
Lite variant
15+
------------
16+
17+
``-lite``, primary image without FreeSurfer for a smaller image for runs that don't need FreeSurfer (e.g., |example version|\ ``-lite``)
18+
19+
ABCD-HCP variant
20+
----------------
21+
22+
``-ABCD-HCP``, image with software dependencies version-matched to `ABCD-HCP BIDS fMRI Pipeline <https://github.com/DCAN-Labs/abcd-hcp-pipeline/blob/e480a8f99534f1b05f37bf44c64827384b69b383/Dockerfile>`_ (e.g., |example version|\ ``-ABCD-HCP``)
23+
24+
fMRIPrep-LTS variant
25+
--------------------
26+
27+
``-fMRIPrep-LTS``, image with software dependencies version-matched to `fMRIPrep LTS <https://reproducibility.stanford.edu/fmriprep-lts#long-term-support-lts>`_ (e.g., |example version|\ ``-fMRIPrep-LTS``)
28+
29+
.. |example version| replace:: ``release-``\ |version as code|

0 commit comments

Comments
 (0)