You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Tags in the format `v.*-source` will build docs for the given version.
13
33
@@ -21,6 +41,7 @@ Steps to build a release:
21
41
5. (Force) push to the remote tag (`git push origin v`version`-source`).
22
42
6. CircleCI should deploy the versioned documentation. If the version tag is the newest, it should also overwrite `latest` with these documents.
23
43
44
+
<aid="markdown-guidelines"name="guidelines"></a>
24
45
## Guidelines
25
46
26
47
- Only write a document once, and liberally use the [reStructured Text `.. include::` directive](https://docutils.sourceforge.io/docs/ref/rst/directives.html#include) to include that document where appropriate.
@@ -37,16 +58,50 @@ Steps to build a release:
37
58
'
38
59
"
39
60
```
40
-
- Let CircleCI build your drafts / works-in-progress
41
-
* Build environment will match actual docs build environment
1. In your fork's settings, set the GitHub Pages `source` to `master` branch
45
-

46
-
1. Add your project on CircleCI
47
-
1. Merge your draft / work-in-progress into your fork's `source` branch. Make sure you push to your fork and not the main repository's `source` branch.
48
-
1. Your fork will publish at `https://[your_GitHub_username].github.io/fcp-indi.github.com/`.
1. In your fork's settings, set the GitHub Pages `source` to `master` branch
71
+

72
+
1. Add your project on CircleCI
73
+
1. Merge your draft / work-in-progress into your fork's `source` branch. Make sure you push to your fork and not the main repository's `source` branch.
74
+
1. Your fork will publish at `https://[your_GitHub_username].github.io/fcp-indi.github.com/`.
This documentation aspires to rely on a [single source of truth](https://en.wikipedia.org/wiki/Single_source_of_truth) where possible. To this end, building this documentation requires an installation of the version of [C-PAC](https://github.com/FCP-INDI/C-PAC) that is being documented.
79
+
80
+
Steps to build this documentation locally:
81
+
1. Clone this repository.
82
+
1._(optional)_ <details><summary>Locally replicate the step "π Running cpac commands" from [.circleci/config](./.circleci/config) to generate [cpac](https://pypi.org/project/cpac/) usage strings.</summary>
83
+
Either perform this "π Running cpac commands" step in a separate Python environment or uninstall cpac after generating the usage string(s).
84
+
1._(optional)_ Create an environment for cpac and activate this environment.
85
+
1.`pip install cpac`
86
+
1. If you don't have a local container for the version of C-PAC you're documenting, `cpac pull` to download the latest or `cpac pull --tag $TAG` to pull a specific version.
87
+
1. Generate ReStructuredText documents with cpac usage strings:
cpac utils --help | sed -e "s/.*/ &/">> docs/_sources/user/utils/help.rst
98
+
```
99
+
1. `deactivate` your cpac environment if you used a separate environment or `pip uninstall cpac`.
100
+
</details>
101
+
1. Locally install [C-PAC](https://github.com/FCP-INDI/C-PAC) from source.
102
+
1. Run `./bin/build $VERSION` where `$VERSION` is the version to build (`nightly`, `latest`, or [<span title='Semantic Versioning'>semver</span>](https://semver.org/) for production, but this string can be anything you want locally). 
- SVGs exported from Lucidchart have scaling coded inin`width` and `height` XML attributes. Add the XML attributes `preserveAspectRatio="xMinYMin meet"` and `viewBox` to the SVG element in the actual SVG files:
@@ -64,6 +119,7 @@ where `{width}` and `{height}` are the values already present in the existing `w
[sphinxcontrib-bibtex](https://sphinxcontrib-bibtex.readthedocs.io/) is installed and configured. This extension creates links between the citations and the reference in the reference list and formats citations in referenced BibTeX files using built-in or [custom styles](https://github.com/FCP-INDI/fcp-indi.github.com/blob/source/docs/_sources/references/style.py). To use this Sphinx extension,
@@ -114,6 +170,7 @@ The rendered file should look something like
114
170
>
115
171
><a name="ref1" href="#backref1">[1]</a> Craddock, C., Sikka, S., Cheung, B., Khanuja, R., Ghosh, S. S., Yan, C., Li, Q., Lurie, D., Vogelstein, J., Burns, R., Colcombe, S., Mennes, M., Kelly, C., Di Martino, A., Castellanos, F. X., and Milham, M. 2013. [Towards automated analysis of connectomes: the Configurable Pipeline forthe Analysis of Connectomes (C-PAC).](http://www.frontiersin.org/neuroinformatics/10.3389/conf.fninf.2013.09.00042/full) *Frontiersin neuroinformatics* 42. doi:[10.3389/conf.fninf.2013.09.00042](https://dx.doi.org/10.3389/conf.fninf.2013.09.00042)
* Because [C-PAC](https://github.com/FCP-INDI/C-PAC.git) and [cpac](https://github.com/FCP-INDI/cpac.git) have conflicting commandline commands, we first run any `cpac` commands in a virtual environment and spoof the `command-output` directive with `code-block` like
0 commit comments