-
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🔀 Merge
source
into doc/apply-filter-more-broadly
- Loading branch information
Showing
16 changed files
with
129 additions
and
68 deletions.
There are no files selected for viewing
This file contains 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 |
---|---|---|
|
@@ -5,8 +5,8 @@ commands: | |
- run: | ||
name: 👽️ Getting user tutorials | ||
command: | | ||
sudo apt-get update | ||
sudo apt-get -y install git pandoc | ||
apt-get update | ||
apt-get -y install git pandoc | ||
git clone --depth 1 https://github.com/FCP-INDI/C-PAC_tutorials.git docs/_sources/user/tutorials | ||
get-version: | ||
steps: | ||
|
@@ -22,18 +22,21 @@ commands: | |
name: ↑ Installing build dependencies | ||
# setuptools≤57.5.0 until traits>4.6.0 in C-PAC | ||
command: | | ||
sudo apt-get update && sudo apt-get -y install git python3-dev graphviz graphviz-dev libgraphviz-dev pkg-config python3-sphinx | ||
apt-get update && apt-get -y install git python3-dev graphviz graphviz-dev libgraphviz-dev pkg-config python3-sphinx | ||
python -m venv /home/circleci/docs_env | ||
source /home/circleci/docs_env/bin/activate | ||
pip install "setuptools<=57.5.0" | ||
pip install --user -r requirements.txt | ||
pip install --user -r https://raw.githubusercontent.com/${CIRCLE_PROJECT_USERNAME}/C-PAC/<< parameters.version >>/requirements.txt | ||
pip install --user git+https://github.com/${CIRCLE_PROJECT_USERNAME}/C-PAC.git@<< parameters.version >> | ||
pip install -r requirements.txt | ||
pip install -r https://raw.githubusercontent.com/${CIRCLE_PROJECT_USERNAME}/C-PAC/<< parameters.version >>/requirements.txt | ||
pip install git+https://github.com/${CIRCLE_PROJECT_USERNAME}/C-PAC.git@<< parameters.version >> | ||
git clone https://github.com/${CIRCLE_PROJECT_USERNAME}/C-PAC.git /home/circleci/build/C-PAC | ||
cd /home/circleci/build/C-PAC | ||
git checkout << parameters.version >> | ||
cd /home/circleci/build | ||
python -m venv ~/simple | ||
source ~/simple/bin/activate | ||
pip install git+https://github.com/FCP-INDI/cpac.git@aa73ce266d3e599b6d9a1ad9721959c69dd0c4d3 semver | ||
deactivate | ||
python -m venv /home/circleci/simple | ||
source /home/circleci/simple/bin/activate | ||
pip install cpac semver | ||
deactivate | ||
run-cpac-commands: | ||
|
@@ -42,7 +45,7 @@ commands: | |
- run: | ||
name: 👊 Running cpac commands | ||
command: | | ||
source ~/simple/bin/activate | ||
source /home/circleci/simple/bin/activate | ||
cpac pull | ||
mkdir -p docs/_sources/user/cpac | ||
printf ".. code-block:: console\n\n $ cpac --help\n\n" > docs/_sources/user/cpac/help.rst | ||
|
@@ -53,6 +56,9 @@ commands: | |
mkdir -p docs/_sources/user/utils | ||
printf "Usage: cpac utils\n\`\`\`\`\`\`\`\`\`\`\`\`\`\`\`\`\`\n.. code-block:: console\n\n $ cpac utils --help\n\n" > docs/_sources/user/utils/help.rst | ||
cpac utils --help | sed -e "s/.*/ &/" >> docs/_sources/user/utils/help.rst | ||
mkdir -p docs/_sources/user/group/feat/load-preset/unpaired-two | ||
printf ".. code-block:: console\n\n $ cpac group feat load-preset unpaired-two --help\n\n" > docs/_sources/user/group/feat/load-preset/unpaired-two/help.rst | ||
cpac group feat load-preset unpaired-two --help | sed -e "s/.*/ &/" >> docs/_sources/user/group/feat/load-preset/unpaired-two/help.rst | ||
deactivate | ||
prep-deploy: | ||
steps: | ||
|
@@ -64,6 +70,9 @@ commands: | |
command: | | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "ChildMindInstituteCNL" | ||
mkdir -p /home/circleci/.ssh/ | ||
touch /home/circleci/.ssh/known_hosts | ||
ssh-keyscan github.com >> /home/circleci/.ssh/known_hosts | ||
- run: | ||
name: 🔀 Combining new docs with existing docs | ||
command: | | ||
|
@@ -115,7 +124,8 @@ jobs: | |
build-nightly: | ||
working_directory: /home/circleci/build | ||
docker: | ||
- image: cimg/python:3.10 | ||
- image: ghcr.io/fcp-indi/c-pac:nightly | ||
user: root | ||
steps: | ||
- checkout: | ||
path: /home/circleci/build | ||
|
@@ -125,13 +135,14 @@ jobs: | |
- get-tutorials | ||
- run: | ||
name: 🏗️ Building nightly branch docs | ||
command: ./bin/build nightly | ||
command: source /home/circleci/docs_env/bin/activate && ./bin/build nightly | ||
- store-commit-message | ||
- persist-new-build | ||
build-version: | ||
working_directory: /home/circleci/build | ||
docker: | ||
- image: cimg/python:3.10 | ||
- image: ghcr.io/fcp-indi/c-pac:nightly | ||
user: root | ||
steps: | ||
- checkout: | ||
path: /home/circleci/build | ||
|
@@ -142,7 +153,7 @@ jobs: | |
- get-tutorials | ||
- run: | ||
name: 🏗️ Building version branch docs | ||
command: ./bin/build ${BUILD_VERSION} | ||
command: source /home/circleci/docs_env/bin/activate && ./bin/build ${BUILD_VERSION} | ||
- store-commit-message | ||
- persist-new-build | ||
deploy-nightly: | ||
|
This file contains 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 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,9 @@ | ||
/* Hide highlight containers only empty spans */ | ||
document.addEventListener("DOMContentLoaded", function() { | ||
const highlightDivs = document.querySelectorAll('div[class^="highlight"], div[class*=" highlight"]'); | ||
highlightDivs.forEach(function(highlightDiv) { | ||
if (highlightDiv.textContent.trim() === '') { | ||
highlightDiv.classList.add('hidden'); | ||
} | ||
}); | ||
}); |
This file contains 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 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 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 |
---|---|---|
@@ -1,5 +1,20 @@ | ||
Network Centrality | ||
================== | ||
|
||
.. automodule:: CPAC.network_centrality | ||
:members: | ||
.. automodule:: CPAC.network_centrality.network_centrality | ||
:special-members: __init__ | ||
:members: | ||
:private-members: | ||
:undoc-members: | ||
|
||
.. automodule:: CPAC.network_centrality.pipeline | ||
:special-members: __init__ | ||
:members: | ||
:private-members: | ||
:undoc-members: | ||
|
||
.. automodule:: CPAC.network_centrality.utils | ||
:special-members: __init__ | ||
:members: | ||
:private-members: | ||
:undoc-members: |
This file contains 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 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
Oops, something went wrong.