Skip to content

Commit cb4b483

Browse files
authored
πŸ“ Document "πŸ‘½οΈ Handle versions of 3dECM" (#308)
2 parents b448a26 + 59d0b74 commit cb4b483

File tree

2 files changed

+38
-15
lines changed

2 files changed

+38
-15
lines changed

β€Ž.circleci/config.ymlβ€Ž

Lines changed: 21 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ commands:
55
- run:
66
name: πŸ‘½οΈ Getting user tutorials
77
command: |
8-
sudo apt-get update
9-
sudo apt-get -y install git pandoc
8+
apt-get update
9+
apt-get -y install git pandoc
1010
git clone --depth 1 https://github.com/FCP-INDI/C-PAC_tutorials.git docs/_sources/user/tutorials
1111
get-version:
1212
steps:
@@ -22,17 +22,20 @@ commands:
2222
name: ↑ Installing build dependencies
2323
# setuptools≀57.5.0 until traits>4.6.0 in C-PAC
2424
command: |
25-
sudo apt-get update && sudo apt-get -y install git python3-dev graphviz graphviz-dev libgraphviz-dev pkg-config python3-sphinx
25+
apt-get update && apt-get -y install git python3-dev graphviz graphviz-dev libgraphviz-dev pkg-config python3-sphinx
26+
python -m venv /home/circleci/docs_env
27+
source /home/circleci/docs_env/bin/activate
2628
pip install "setuptools<=57.5.0"
27-
pip install --user -r requirements.txt
28-
pip install --user -r https://raw.githubusercontent.com/${CIRCLE_PROJECT_USERNAME}/C-PAC/<< parameters.version >>/requirements.txt
29-
pip install --user git+https://github.com/${CIRCLE_PROJECT_USERNAME}/C-PAC.git@<< parameters.version >>
29+
pip install -r requirements.txt
30+
pip install -r https://raw.githubusercontent.com/${CIRCLE_PROJECT_USERNAME}/C-PAC/<< parameters.version >>/requirements.txt
31+
pip install git+https://github.com/${CIRCLE_PROJECT_USERNAME}/C-PAC.git@<< parameters.version >>
3032
git clone https://github.com/${CIRCLE_PROJECT_USERNAME}/C-PAC.git /home/circleci/build/C-PAC
3133
cd /home/circleci/build/C-PAC
3234
git checkout << parameters.version >>
3335
cd /home/circleci/build
34-
python -m venv ~/simple
35-
source ~/simple/bin/activate
36+
deactivate
37+
python -m venv /home/circleci/simple
38+
source /home/circleci/simple/bin/activate
3639
pip install git+https://github.com/FCP-INDI/cpac.git@81c33b52d72478bef54ccfdce05577d52ebf714c semver
3740
deactivate
3841
@@ -42,7 +45,7 @@ commands:
4245
- run:
4346
name: πŸ‘Š Running cpac commands
4447
command: |
45-
source ~/simple/bin/activate
48+
source /home/circleci/simple/bin/activate
4649
cpac pull
4750
mkdir -p docs/_sources/user/cpac
4851
printf ".. code-block:: console\n\n $ cpac --help\n\n" > docs/_sources/user/cpac/help.rst
@@ -67,6 +70,9 @@ commands:
6770
command: |
6871
git config --global user.email "[email protected]"
6972
git config --global user.name "ChildMindInstituteCNL"
73+
mkdir -p /home/circleci/.ssh/
74+
touch /home/circleci/.ssh/known_hosts
75+
ssh-keyscan github.com >> /home/circleci/.ssh/known_hosts
7076
- run:
7177
name: πŸ”€ Combining new docs with existing docs
7278
command: |
@@ -118,7 +124,8 @@ jobs:
118124
build-nightly:
119125
working_directory: /home/circleci/build
120126
docker:
121-
- image: cimg/python:3.10
127+
- image: ghcr.io/fcp-indi/c-pac:nightly
128+
user: root
122129
steps:
123130
- checkout:
124131
path: /home/circleci/build
@@ -128,13 +135,14 @@ jobs:
128135
- get-tutorials
129136
- run:
130137
name: πŸ—οΈ Building nightly branch docs
131-
command: ./bin/build nightly
138+
command: source /home/circleci/docs_env/bin/activate && ./bin/build nightly
132139
- store-commit-message
133140
- persist-new-build
134141
build-version:
135142
working_directory: /home/circleci/build
136143
docker:
137-
- image: cimg/python:3.10
144+
- image: ghcr.io/fcp-indi/c-pac:nightly
145+
user: root
138146
steps:
139147
- checkout:
140148
path: /home/circleci/build
@@ -145,7 +153,7 @@ jobs:
145153
- get-tutorials
146154
- run:
147155
name: πŸ—οΈ Building version branch docs
148-
command: ./bin/build ${BUILD_VERSION}
156+
command: source /home/circleci/docs_env/bin/activate && ./bin/build ${BUILD_VERSION}
149157
- store-commit-message
150158
- persist-new-build
151159
deploy-nightly:
Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,20 @@
11
Network Centrality
22
==================
33

4-
.. automodule:: CPAC.network_centrality
5-
:members:
4+
.. automodule:: CPAC.network_centrality.network_centrality
5+
:special-members: __init__
6+
:members:
7+
:private-members:
8+
:undoc-members:
9+
10+
.. automodule:: CPAC.network_centrality.pipeline
11+
:special-members: __init__
12+
:members:
13+
:private-members:
14+
:undoc-members:
15+
16+
.. automodule:: CPAC.network_centrality.utils
17+
:special-members: __init__
18+
:members:
19+
:private-members:
20+
:undoc-members:

0 commit comments

Comments
Β (0)