-
Notifications
You must be signed in to change notification settings - Fork 135
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'development' into feature/netpyne-105
- Loading branch information
Showing
138 changed files
with
5,367 additions
and
3,035 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,33 @@ | ||
name: Mirror to Ebrains | ||
|
||
# Configure the events that are going to trigger tha automated update of the mirror | ||
on: | ||
push: | ||
branches: [ master ] | ||
|
||
# Configure what will be updated | ||
jobs: | ||
# set the job name | ||
to_ebrains: | ||
runs-on: ubuntu-latest | ||
steps: | ||
# this task will push the master branch of the source_repo (github) to the | ||
# destination_repo (ebrains gitlab) | ||
- name: syncmaster | ||
uses: wei/git-sync@v3 | ||
# component owners need to set their own variables | ||
# the destination_repo format is | ||
# https://gitlab_service_account_name:${{ secrets.EBRAINS_GITLAB_ACCESS_TOKEN }}@gitlab.ebrains.eu/name_of_mirror.git | ||
with: | ||
source_repo: "suny-downstate-medical-center/netpyne" | ||
source_branch: "master" | ||
destination_repo: "https://github-pusher:${{ secrets.EBRAINS_GITLAB_ACCESS_TOKEN }}@gitlab.ebrains.eu/vbragin/netpyne.git" | ||
destination_branch: "master" | ||
# this task will push all tags from the source_repo to the destination_repo | ||
- name: synctags | ||
uses: wei/git-sync@v3 | ||
with: | ||
source_repo: "suny-downstate-medical-center/netpyne" | ||
source_branch: "refs/tags/*" | ||
destination_repo: "https://github-pusher:${{ secrets.EBRAINS_GITLAB_ACCESS_TOKEN }}@gitlab.ebrains.eu/vbragin/netpyne.git" | ||
destination_branch: "refs/tags/*" |
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
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 |
---|---|---|
|
@@ -43,7 +43,9 @@ | |
10e) It will build the html files | ||
11) Post the documentation | ||
11a) ssh [email protected] "rm -r ~/public_html" | ||
NOTE: it may give the error "... no matching host key type found ...". In this case, try using the "-oHostKeyAlgorithms=+ssh-rsa" argument in ssh command and in scp command below (as well as in 11c) | ||
11b) scp -r build [email protected]:///home/gkaue9v7ctjf/public_html | ||
NOTE: it may give the error "path canonocalization failed", then use the argument "-O" in scp call - it rolls back to legacy mode (see also NOTE in 11a) | ||
11c) ssh [email protected] "cp -r ~/redirect_html/. ~/public_html/" | ||
12) Update PYPI (pip) with the latest release | ||
12a) cd netpyne | ||
|
@@ -72,7 +74,7 @@ | |
shutil.rmtree('build', ignore_errors=True) | ||
|
||
# All .rst files but those listed here will be deleted during this process | ||
keep = ['about.rst', 'advanced.rst', 'index.rst', 'install.rst', 'reference.rst', 'tutorial.rst', 'contrib.rst', 'modeling-specification-v1.0.rst'] | ||
keep = ['about.rst', 'index.rst', 'install.rst', 'user_documentation.rst', 'tutorial.rst', 'contrib.rst', 'modeling-specification-v1.0.rst'] | ||
|
||
print('Deleting old .rst files.') | ||
for file in os.listdir('source'): | ||
|
@@ -92,12 +94,12 @@ | |
|
||
# sphinx-apidoc produces a file called "netpyne" that we want to call "Package Index" | ||
print('Fixing Package Index file.') | ||
os.system('mv source/netpyne.rst source/package_index.rst') | ||
with open('source/package_index.rst') as f: | ||
os.system('mv source/netpyne.rst source/package_reference.rst') | ||
with open('source/package_reference.rst') as f: | ||
lines = f.readlines() | ||
lines[0] = 'Package Index\n' | ||
lines[0] = 'Package Reference\n' | ||
lines[1] = '=============\n' | ||
with open('source/package_index.rst', 'w') as f: | ||
with open('source/package_reference.rst', 'w') as f: | ||
f.writelines(lines) | ||
|
||
# Generate the html files | ||
|
Oops, something went wrong.