Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
svenvanderburg authored Jul 23, 2024
0 parents commit ed51451
Show file tree
Hide file tree
Showing 262 changed files with 17,331 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .editorconfig
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
2 changes: 2 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
github: [carpentries, swcarpentry, datacarpentry, librarycarpentry]
custom: ["https://carpentries.wedid.it"]
40 changes: 40 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
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.
22 changes: 22 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
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.
12 changes: 12 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
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>
36 changes: 36 additions & 0 deletions .github/workflows/extract-exercises.yml
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
44 changes: 44 additions & 0 deletions .github/workflows/jekyll.yml
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)
19 changes: 19 additions & 0 deletions .gitignore
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
31 changes: 31 additions & 0 deletions .mailmap
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
Abigail Cabunoc Mayes <[email protected]>
Abigail Cabunoc Mayes <[email protected]> <[email protected]>
Amy Brown <[email protected]> <[email protected]>
Andrew Walker <[email protected]> <[email protected]>
Andy Boughton <[email protected]> <[email protected]>
Ben Jolly <[email protected]>
Erin Becker <[email protected]>
Evan P. Williamson <[email protected]>
François Michonneau <[email protected]>
François Michonneau <[email protected]> <[email protected]>
Greg Wilson <[email protected]> <[email protected]>
James Allen <[email protected]> <[email protected]>
Jonah Duckles <[email protected]> <[email protected]>
Jonathan Cooper <[email protected]> <[email protected]>
Lauren Michael <[email protected]>
Leighton Pritchard <[email protected]>
Lex Nederbragt <[email protected]> <[email protected]>
Maneesha Sane <[email protected]>
Marianna Foos <[email protected]>
Maxim Belkin <[email protected]> <[email protected]>
Mike Jackson <[email protected]> <[email protected]>
Neal Davis <[email protected]> <[email protected]>
Pauline Barmby <[email protected]>
Philipp Von Bieberstein <[email protected]>
Raniere Silva <[email protected]> <[email protected]>
Raniere Silva <[email protected]> <[email protected]>
Rémi Emonet <[email protected]> <[email protected]>
Rémi Emonet <[email protected]> <[email protected]>
Sarah Stevens <[email protected]> <[email protected]>
Timothée Poisot <[email protected]> <[email protected]>
Yashasvi Girdhar <[email protected]>
18 changes: 18 additions & 0 deletions .travis.yml
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
28 changes: 28 additions & 0 deletions 404.md
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%}
67 changes: 67 additions & 0 deletions AUTHORS
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
5 changes: 5 additions & 0 deletions CITATION
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.
11 changes: 11 additions & 0 deletions CODE_OF_CONDUCT.md
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 %}
Loading

0 comments on commit ed51451

Please sign in to comment.