-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Copy files from other working repository, rf-shimming-7t-neurolibre
- Loading branch information
1 parent
575130d
commit 952acb3
Showing
16 changed files
with
1,553 additions
and
41 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 |
---|---|---|
@@ -0,0 +1,48 @@ | ||
name: deploy-book | ||
|
||
# Only run this when the v2 branch changes | ||
on: | ||
push: | ||
branches: | ||
- main | ||
# If your git repository has the Jupyter Book within some-subfolder next to | ||
# unrelated files, you can make this run only if a file within that specific | ||
# folder has been modified. | ||
# paths: | ||
# - source/** | ||
|
||
# This job installs dependencies, build the book, and pushes it to `gh-pages` | ||
jobs: | ||
deploy-book: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
# Install dependencies | ||
- name: Set up Python 3.8 | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: 3.8 | ||
|
||
- name: Install dependencies | ||
run: | | ||
pip install -r binder/requirements.txt | ||
- name: Download data | ||
run: | | ||
cd content | ||
repo2data -r ../binder/data_requirement.json | ||
cd .. | ||
- name: Postbuild | ||
run: | | ||
chmod +xxx binder/postBuild | ||
binder/postBuild | ||
# Build the book | ||
- name: Build the book | ||
run: | | ||
jupyter-book build content/index.ipynb --builder singlehtml | ||
# Push the book's HTML to github-pages | ||
- name: GitHub Pages action | ||
uses: peaceiris/[email protected] | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
publish_dir: ./content/_build/_page/index/singlehtml |
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,5 @@ | ||
{ | ||
"src": "https://drive.google.com/uc?id=1-8-EsLKDpV2LqcQmhzPguiyUb1xJyM4j", | ||
"dst": "../data", | ||
"projectName": "rf-shimming-7t-colab" | ||
} |
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,5 @@ | ||
{ | ||
"src": "https://drive.google.com/uc?id=1OY-lEDIqcSJY_Mymo6Fd8vfhY5L7phXr", | ||
"dst": "../data", | ||
"projectName": "rf-shimming-7t" | ||
} |
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,26 @@ | ||
name: notebook | ||
|
||
channels: | ||
- default | ||
- conda-forge | ||
|
||
dependencies: | ||
- pip | ||
- matplotlib | ||
- nibabel | ||
- numpy | ||
- pandas | ||
- scipy | ||
- statsmodels | ||
- plotly | ||
- pandas | ||
- markdown | ||
- wget | ||
- jupyterlab-mathjax3 | ||
- osfclient | ||
- pip: | ||
- jupyter-book==0.13.0 | ||
- repo2data | ||
- datalad-installer | ||
- pybids | ||
- yes |
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,22 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
touch ~/.bashrc | ||
cd content | ||
repo2data -r ../binder/data_requirement.json | ||
cd .. | ||
git clone https://github.com/spinalcordtoolbox/spinalcordtoolbox ~/content/sct | ||
cd ~/content/sct | ||
yes | ./install_sct | ||
echo 'export PATH=~/content/sct/bin:$PATH' >> ~/.bashrc | ||
echo 'export MPLBACKEND='Agg'' >> ~/.bashrc | ||
|
||
echo 'export PATH=~/content/sct/bin:$PATH' >> ~/.bash_profile | ||
echo 'export MPLBACKEND='Agg'' >> ~/.bash_profile | ||
|
||
echo 'export PATH=~/content/sct/bin:$PATH' >> ~/.bash_login | ||
echo 'export MPLBACKEND='Agg'' >> ~/.bash_login | ||
|
||
echo 'export PATH=~/content/sct/bin:$PATH' >> ~/.profile | ||
echo 'export MPLBACKEND='Agg'' >> ~/.profile | ||
cd ~/ |
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 @@ | ||
python-3.8 |
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,37 @@ | ||
# Book settings | ||
# Learn more at https://jupyterbook.org/customize/config.html | ||
|
||
title: RF Shimming 7T | ||
logo: logo.png | ||
|
||
# Force re-execution of notebooks on each build. | ||
# See https://jupyterbook.org/content/execute.html | ||
execute: | ||
execute_notebooks: force | ||
|
||
launch_buttons: | ||
notebook_interface: "jupyterlab" | ||
|
||
# Information about where the book exists on the web | ||
repository: | ||
url: https://github.com/shimming-toolbox/rf-shimming-7t-neurolibre # Online location of your book | ||
path_to_book: content # Optional path to your book, relative to the repository root | ||
branch: main # Which branch of the repository should be used when creating links (optional) | ||
|
||
only_build_toc_files: true | ||
|
||
execute: | ||
timeout: 600 | ||
|
||
sphinx: | ||
local_extensions : # A list of local extensions to load by sphinx specified by "name: path" items | ||
recursive_update : false # A boolean indicating whether to overwrite the Sphinx config (true) or recursively update | ||
config : # key-value pairs to directly over-ride the Sphinx configuration | ||
bibtex_reference_style: author_year | ||
bibtex_default_style: plain | ||
bibtex_tooltips: true | ||
html_static_path: ['_static'] | ||
html_css_files: ['custom.css'] | ||
|
||
bibtex_bibfiles: | ||
- ../paper.bib |
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,2 @@ | ||
book_layout: traditional | ||
single_page: index.ipynb |
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,52 @@ | ||
p { | ||
text-align: justify; | ||
} | ||
a { | ||
color: #870000!important; | ||
} | ||
a:hover { | ||
color: brick!important; | ||
} | ||
a:visited { | ||
color: #6f42c1!important; | ||
} | ||
body, h1, h2, h3, h4, h5 { | ||
font-family: 'STIX Two Text'; | ||
} | ||
h1 { | ||
color: #342727!important; | ||
} | ||
.caption { | ||
text-align:justify; | ||
line-height:1.25; | ||
font-size:80% | ||
} | ||
|
||
#site-navigation { | ||
display: none; | ||
} | ||
|
||
#main-content{ | ||
margin: 0 auto; | ||
} | ||
|
||
|
||
.fa, .far, .fas { | ||
color: red; | ||
} | ||
|
||
.header-article::after{ | ||
content: url('https://neurolibre.org/assets/joss2-b7ea8dd1f24ce2b0825db17e3495576253ba4c64df3384a66354713d76c40a75.svg'); | ||
width: 150px; | ||
height: 80px; | ||
position: relative; | ||
right: 10px; | ||
} | ||
|
||
.header-article::before{ | ||
content: url('https://raw.githubusercontent.com/neurolibre/brand/b5e10e051a0059824ca2f4204e1288927e551d49/svg/neurolibre_logo.svg'); | ||
width: 33px; | ||
height: 33px; | ||
position: absolute; | ||
left: 10px; | ||
} |
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,5 @@ | ||
# Table of contents | ||
# Learn more at https://jupyterbook.org/customize/toc.html | ||
|
||
format: jb-article | ||
root: paper |
Oops, something went wrong.