generated from esciencecenter-digital-skills/workshop-template
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit ed51451
Showing
262 changed files
with
17,331 additions
and
0 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,26 @@ | ||
root = true | ||
|
||
[*] | ||
charset = utf-8 | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true | ||
|
||
[*.md] | ||
indent_size = 2 | ||
indent_style = space | ||
max_line_length = 100 # Please keep this in sync with bin/lesson_check.py! | ||
trim_trailing_whitespace = false # keep trailing spaces in markdown - 2+ spaces are translated to a hard break (<br/>) | ||
|
||
[*.r] | ||
max_line_length = 80 | ||
|
||
[*.py] | ||
indent_size = 4 | ||
indent_style = space | ||
max_line_length = 79 | ||
|
||
[*.sh] | ||
end_of_line = lf | ||
|
||
[Makefile] | ||
indent_style = tab |
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 @@ | ||
github: [carpentries, swcarpentry, datacarpentry, librarycarpentry] | ||
custom: ["https://carpentries.wedid.it"] |
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,40 @@ | ||
--- | ||
name: Bug report | ||
about: Create a report to help us improve | ||
title: '' | ||
labels: bug | ||
assignees: '' | ||
|
||
--- | ||
|
||
Thanks for contributing! ❤️ | ||
|
||
**Describe the bug** | ||
A clear and concise description of what the bug is. | ||
|
||
**To Reproduce** | ||
Steps to reproduce the behavior: | ||
1. Go to '...' | ||
2. Click on '....' | ||
3. Scroll down to '....' | ||
4. See error | ||
|
||
**Expected behavior** | ||
A clear and concise description of what you expected to happen. | ||
|
||
**Screenshots** | ||
If applicable, add screenshots to help explain your problem. | ||
|
||
**Desktop (please complete the following information):** | ||
- OS: [e.g. iOS] | ||
- Browser [e.g. chrome, safari] | ||
- Version [e.g. 22] | ||
|
||
**Smartphone (please complete the following information):** | ||
- Device: [e.g. iPhone6] | ||
- OS: [e.g. iOS8.1] | ||
- Browser [e.g. stock browser, safari] | ||
- Version [e.g. 22] | ||
|
||
**Additional context** | ||
Add any other context about the problem here. |
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 @@ | ||
--- | ||
name: Feature request | ||
about: Suggest an idea for this project | ||
title: '' | ||
labels: 'RFE' | ||
assignees: '' | ||
|
||
--- | ||
|
||
Thanks for contributing! ❤️ | ||
|
||
**Is your feature request related to a problem? Please describe.** | ||
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] | ||
|
||
**Describe the solution you'd like** | ||
A clear and concise description of what you want to happen. | ||
|
||
**Describe alternatives you've considered** | ||
A clear and concise description of any alternative solutions or features you've considered. | ||
|
||
**Additional context** | ||
Add any other context or screenshots about the feature request here. |
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,12 @@ | ||
<details> | ||
<summary><strong>Instructions</strong></summary> | ||
|
||
Thanks for contributing! :heart: | ||
Before submitting this PR, please make sure: | ||
|
||
- [ ] Your code builds clean without any errors or warnings | ||
|
||
You may delete these instructions from your comment. | ||
|
||
\- Escience Center Digital Skills | ||
</details> |
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,36 @@ | ||
name: Extract exercises | ||
on: workflow_dispatch | ||
jobs: | ||
extract: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Setup Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.9 | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install caex2 | ||
- name: Fetch the url for the lesson content github repository from metadata | ||
uses: jannekem/run-python-script-action@v1 | ||
with: | ||
script: | | ||
import csv | ||
from urllib.request import urlretrieve | ||
with open('_data/data.csv', newline='') as csvfile: | ||
reader = csv.DictReader(csvfile) | ||
for row in reader: | ||
curriculum = row['curriculum'] | ||
link = f"https://raw.githubusercontent.com/esciencecenter-digital-skills/workshop-metadata/main/{curriculum}/lesson-url.md" | ||
urlretrieve(link, "lesson-url.txt") | ||
- name: Run Carpentries Exercises Extractor | ||
run: caex2 "$(cat lesson-url.txt)" --output files/exercises-document.md | ||
shell: sh | ||
- name: Commit exercises document | ||
uses: stefanzweifel/git-auto-commit-action@v4 | ||
with: | ||
commit_message: Automatically add exercises document | ||
file_pattern: files/exercises-document.md |
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,44 @@ | ||
name: Build and Deploy to Github Pages | ||
|
||
on: | ||
workflow_dispatch: | ||
release: | ||
types: | ||
- published | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
build_and_deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
# Use GitHub Actions' cache to cache dependencies on servers | ||
- uses: actions/cache@v4 | ||
with: | ||
path: | | ||
.asdf/** | ||
vendor/bundle | ||
key: ${{ runner.os }}-cache-${{ hashFiles('**/cache.key') }} | ||
restore-keys: | | ||
${{ runner.os }}-cache- | ||
# Use GitHub Deploy Action to build and deploy to Github | ||
# For latest version: `jeffreytse/jekyll-deploy-action@master` | ||
- uses: jeffreytse/[email protected] | ||
with: | ||
provider: 'github' # Default is github | ||
token: ${{ secrets.GITHUB_TOKEN }} # It's your Personal Access Token(PAT) | ||
ssh_private_key: '' # It's your SSH private key (SSH approach) | ||
repository: '' # Default is current repository | ||
branch: 'gh-pages' # Default is gh-pages for github provider | ||
jekyll_src: './' # Default is root directory | ||
jekyll_cfg: '_config.yml' # Default is _config.yml | ||
jekyll_baseurl: '' # Default is according to _config.yml | ||
ruby_ver: '' # Default is 3.2.0 version | ||
bundler_ver: '' # Default is compatible bundler version (~>2.5.0) | ||
cname: '' # Default is to not use a cname | ||
actor: '' # Default is the GITHUB_ACTOR | ||
pre_build_commands: '' # Installing additional dependencies (Arch Linux) |
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,19 @@ | ||
*.pyc | ||
*~ | ||
.*.swp | ||
.DS_Store | ||
.ipynb_checkpoints | ||
.sass-cache | ||
.jekyll-cache/ | ||
.jekyll-metadata | ||
__pycache__ | ||
_site | ||
.Rproj.user | ||
.Rhistory | ||
.RData | ||
.bundle/ | ||
.vendor/ | ||
vendor/ | ||
.docker-vendor/ | ||
Gemfile.lock | ||
.*history |
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,18 @@ | ||
language: python | ||
python: | ||
- "3.6" | ||
# Remember that the code is running on a 14.04 machine. | ||
# - "3.4" | ||
# command to install dependencies | ||
install: | ||
- pip install -r requirements.txt | ||
# as per https://docs.travis-ci.com/user/installing-dependencies/ | ||
# command to run tests | ||
before_script: | ||
- "python bin/_travis.py" | ||
script: | ||
- python bin/workshop_check.py . | ||
- python -m unittest bin/_test/bs4test.py | ||
branches: | ||
only: | ||
- gh-pages |
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,28 @@ | ||
--- | ||
layout: base | ||
root: . | ||
permalink: 404.html | ||
title: "Page not found" | ||
--- | ||
{% comment %} | ||
Assign first row in data file as info to access workshop data | ||
{% endcomment %} | ||
{% assign info = site.data.data[0] %} | ||
# Oops! We can't find that page. | ||
{: style="text-align: center;"} | ||
|
||
> ## Our apologies! | ||
> | ||
> We can't seem to find the page you're looking for. | ||
> Try going back to the <a href="javascript:history.back()">previous page</a> or | ||
> navigate to any other page using the navigation bar above | ||
> {%- if site.kind == "lesson" -%} or the schedule below {%- endif -%}. | ||
> If you got here by clicking on a link in the | ||
> {%- if site.kind == "lesson" -%} lesson {%- else -%} workshop {%- endif -%}, | ||
> please report this link to the | ||
> {%- if site.kind == "lesson" -%} lesson developers {%- else -%} workshop organizers {%- endif -%}. | ||
{: .caution} | ||
|
||
{% if site.kind == "lesson" %} | ||
{% include syllabus.html %} | ||
{% endif%} |
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,67 @@ | ||
Aron Ahmadia | ||
Phillip Alderman | ||
James Allen | ||
Piotr Banaszkiewicz | ||
Pauline Barmby | ||
Radovan Bast | ||
John Blischak | ||
Olga Botvinnik | ||
Andy Boughton | ||
Erik M. Bray | ||
Amy Brown | ||
C. Titus Brown | ||
Greg Caporaso | ||
Sarah Clayton | ||
Matt Davis | ||
Neal Davis | ||
Jonah Duckles | ||
Marianna Foos | ||
Yashasvi Girdhar | ||
Ivan Gonzalez | ||
John Gosset | ||
Alistair Grant | ||
Thomas Guignard | ||
Konrad Hinsen | ||
Xavier Ho | ||
Damien Irving | ||
Mike Jackson | ||
Ben Jolly | ||
Jan T. Kim | ||
W. Trevor King | ||
David LeBauer | ||
Joona Lehtomäki | ||
Kunal Marwaha | ||
Sheldon McKay | ||
Lauren Michael | ||
François Michonneau | ||
Lex Nederbragt | ||
Aleksandra Nenadic | ||
Jeramia Ory | ||
Fernando Perez | ||
Leighton Pritchard | ||
Andrey Prokopenko | ||
Scott Ritchie | ||
Maneesha Sane | ||
Raniere Silva | ||
Arfon Smith | ||
Ashwin Srinath | ||
Sarah Stevens | ||
Julia Stewart Lowndes | ||
Tracy Teal | ||
Stefan Topfstedt | ||
Olav Vahtras | ||
Philipp Von Bieberstein | ||
Andrew Walker | ||
Ben Waugh | ||
Lukas Weber | ||
Ethan White | ||
Jason Williams | ||
Carol Willing | ||
Greg Wilson | ||
Tom Wright | ||
Andrea Zonca | ||
Alex Thompson | ||
Jonathan Cooper | ||
Marcel Stimberg | ||
Mark A. Matienzo | ||
Steve Moss |
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 @@ | ||
Please cite as: | ||
|
||
Greg Wilson (ed): "Software Carpentry: Workshop Template." Version | ||
2016.06, June 2016, https://github.com/carpentries/workshop-template, | ||
10.5281/zenodo.58156. |
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,11 @@ | ||
--- | ||
layout: page | ||
title: "Contributor Code of Conduct" | ||
--- | ||
As contributors and maintainers of this project, | ||
we pledge to follow the [Carpentry Code of Conduct][coc]. | ||
|
||
Instances of abusive, harassing, or otherwise unacceptable behavior | ||
may be reported by following our [reporting guidelines][coc-reporting]. | ||
|
||
{% include links.md %} |
Oops, something went wrong.