-
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
Showing
40 changed files
with
522 additions
and
182 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,25 @@ | ||
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! | ||
|
||
[*.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 |
---|---|---|
|
@@ -4,6 +4,8 @@ Please delete the text below before submitting your contribution. | |
|
||
Thanks for contributing! If this contribution is for instructor training, please send an email to [email protected] with a link to this contribution so we can record your progress. You’ve completed your contribution step for instructor checkout just by submitting this contribution. | ||
|
||
If this issue is about a specific episode within a lesson, please provide its link or filename. | ||
|
||
Please keep in mind that lesson maintainers are volunteers and it may be some time before they can respond to your contribution. Although not all contributions can be incorporated into the lesson materials, we appreciate your time and effort to improve the curriculum. If you have any questions about the lesson maintenance process or would like to volunteer your time as a contribution reviewer, please contact Kate Hertweck ([email protected]). | ||
|
||
--- |
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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{% comment %} | ||
This is adapted from: https://ricostacruz.com/til/relative-paths-in-jekyll | ||
|
||
`page.url` gives the URL of the current page with a leading /: | ||
|
||
- when the URL ends with the extension (e.g., /foo/bar.html) then we can get | ||
the depth by counting the number of / and remove - 1 | ||
- when the URL ends with a / (e.g. /foo/bar/) then the number / gives the depth | ||
directly | ||
{% endcomment %} | ||
|
||
{% assign relative_root_path = '' %} | ||
|
||
{% assign last_char = page.url | slice: -1 %} | ||
|
||
{% if last_char == "/"} | ||
{% assign offset = 0 %} | ||
{% else %} | ||
{% assign offset = 1 %} | ||
{% endif %} | ||
|
||
{% assign depth = page.url | split: '/' | size | minus: offset %} | ||
{% if depth <= 1 %}{% assign relative_root_path = '.' %} | ||
{% elsif depth == 2 %}{% assign relative_root_path = '..' %} | ||
{% elsif depth == 3 %}{% assign relative_root_path = '../..' %} | ||
{% elsif depth == 4 %}{% assign relative_root_path = '../../..' %} | ||
{% 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 |
---|---|---|
@@ -1,44 +1,70 @@ | ||
{% comment %} | ||
General description of Software and Data Carpentry. | ||
General description of Software, Data, and Library Carpentry. | ||
{% endcomment %} | ||
|
||
{% include base_path.html %} | ||
|
||
<div class="row"> | ||
<div class="col-md-2" align="center"> | ||
<a href="{{ site.swc_site }}"><img src="{{ page.root }}/assets/img/swc-icon-blue.svg" alt="Software Carpentry logo" /></a> | ||
<a href="{{ site.carpentries_site }}"><img src="{{ relative_root_path }}/assets/img/cp-logo-blue.svg" alt="The Carpentries logo" /></a> | ||
</div> | ||
<div class="col-md-8"> | ||
Since 1998, | ||
<a href="{{ site.swc_site }}">Software Carpentry</a> | ||
has been teaching researchers in science, engineering, medicine, and related disciplines | ||
the computing skills they need to get more done in less time and with less pain. | ||
Its volunteer instructors have run hundreds of events | ||
for thousands of learners in the past two and a half years. | ||
<p><a href="{{ site.carpentries_site }}">The Carpentries</a> comprises | ||
Software Carpentry, Data Carpentry, and Library Carpentry communities of Instructors, Trainers, | ||
Maintainers, helpers, and supporters who share a mission to teach | ||
foundational coding and data science skills to researchers and people | ||
working in library- and information-related roles. In January, | ||
2018, The Carpentries was formed by the merger of Software Carpentry and | ||
Data Carpentry. Library Carpentry became an official Carpentries Lesson Program in November 2018.</p> | ||
|
||
<p>While individual lessons and workshops continue to be run under each | ||
lesson project, The Carpentries provide overall staffing and governance, as | ||
well as support for assessment, instructor training and mentoring. | ||
Memberships are joint, and the Carpentries project maintains a shared Code | ||
of Conduct. The Carpentries is a fiscally sponsored project of Community | ||
Initiatives, a registered 501(c)3 non-profit based in California, USA.</p> | ||
</div> | ||
</div> | ||
<div class="row"> | ||
<div class="col-md-2" align="center"> | ||
<a href="{{ site.swc_site }}"><img src="{{ relative_root_path }}/assets/img/swc-icon-blue.svg" alt="Software Carpentry logo" /></a> | ||
</div> | ||
<div class="col-md-8"> | ||
<p>Since 1998, <a href="{{ site.swc_site }}">Software Carpentry</a> has | ||
been teaching researchers across all disciplines the foundational coding | ||
skills they need to get more done in less time and with less pain. Its | ||
volunteer instructors have run hundreds of events for thousands of learners | ||
around the world. Now that all research involves some degree of | ||
computational work, whether with big data, cloud computing, or simple task | ||
automation, these skills are needed more than ever.</p> | ||
</div> | ||
</div> | ||
<br/> | ||
<div class="row"> | ||
<div class="col-md-2" align="center"> | ||
<a href="{{ site.dc_site }}"><img src="{{ page.root }}/assets/img/dc-icon-black.svg" alt="Data Carpentry logo" /></a> | ||
<a href="{{ site.dc_site }}"><img src="{{ relative_root_path }}/assets/img/dc-icon-black.svg" alt="Data Carpentry logo" /></a> | ||
</div> | ||
<div class="col-md-8"> | ||
<a href="{{ site.dc_site }}">Data Carpentry</a> develops and teaches workshops on the fundamental data skills needed to conduct research. | ||
Its target audience is researchers who have little to no prior computational experience, | ||
and its lessons are domain specific, | ||
building on learners' existing knowledge to enable them to quickly apply skills learned to their own research. | ||
<p><a href="{{ site.dc_site }}">Data Carpentry</a> develops and teaches | ||
workshops on the fundamental data skills needed to conduct research. Its | ||
target audience is researchers who have little to no prior computational | ||
experience, and its lessons are domain specific, building on learners' | ||
existing knowledge to enable them to quickly apply skills learned to their | ||
own research. Data Carpentry workshops take researchers through the entire | ||
data life cycle.</p> | ||
</div> | ||
</div> | ||
<br/> | ||
<div class="row"> | ||
<div class="col-md-2" align="center"> | ||
<a href="{{ site.lc_site }}"><img src="{{ page.root }}/assets/img/lc-icon-black.png" alt="Library Carpentry logo" /></a> | ||
<a href="{{ site.lc_site }}"><img src="{{ relative_root_path }}/assets/img/lc-icon-black.png" alt="Library Carpentry logo" /></a> | ||
</div> | ||
<div class="col-md-8"> | ||
<a href="{{ site.lc_site }}">Library Carpentry</a> is made by librarians to help librarians | ||
automate repetitive, boring, error-prone tasks; | ||
create, maintain and analyse sustainable and reusable data; | ||
work effectively with IT and systems colleagues; | ||
better understand the use of software in research; | ||
and much more. | ||
Library Carpentry was the winner of the 2016 | ||
<a href="http://labs.bl.uk/British+Library+Labs+Awards">British Library Labs Teaching and Learning Award</a>. | ||
<p><a href="{{ site.lc_site }}">Library Carpentry</a> develops lessons and | ||
teaches workshops for and with people working in library- and | ||
information-related roles. Its goal is to create an on-ramp to empower this | ||
community to use software and data in their own work, as well as be | ||
advocates for and train others in efficient, effective and reproducible data | ||
and software practices.</p> | ||
</div> | ||
</div> |
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 |
---|---|---|
@@ -0,0 +1,45 @@ | ||
{% comment %} | ||
When rendering websites locally, `site.github.url` doesn't get resolved properly | ||
unless a GitHub Personal Access Token is set up and available in the | ||
environment. This leads to warnings and errors when trying to serve the site | ||
locally. To work around this, we use the `jekyll.environment` variable which is | ||
set to `development` when rendering the site locally, and set to `production` on | ||
GitHub where `site.github.url` is defined. | ||
{% endcomment %} | ||
|
||
{% if jekyll.environment == "production" %} | ||
|
||
{% comment %} | ||
First, get the name of the repository | ||
{% endcomment %} | ||
{% assign repo_name = site.github.repository_name %} | ||
|
||
{% comment %} | ||
`site.github.public_repositories` contains comprehensive information for all public repositories for the organization. We use `where` to extract the part | ||
of the metadata that is relevant to the present repository. | ||
{% endcomment %} | ||
{% assign repo_info = site.github.public_repositories | where: "name", repo_name %} | ||
|
||
{% comment %} | ||
Now, we can extract the default branch for the repo | ||
{% endcomment %} | ||
{% assign default_branch = repo_info[0].default_branch %} | ||
|
||
{% comment %} | ||
Other variables requested by the template | ||
{% endcomment %} | ||
{% assign repo_url = site.github.repository_url %} | ||
{% assign search_domain_url = site.github.url %} | ||
{% assign project_title = site.github.project_title %} | ||
{% assign source_branch = site.github.source.branch %} | ||
|
||
{% elsif jekyll.environment == "development" %} | ||
|
||
{% assign repo_name = "" %} | ||
{% assign repo_url = "" %} | ||
{% assign default_branch = "" %} | ||
{% assign search_domain_url = "" %} | ||
{% assign project_title = "" %} | ||
{% assign source_branch = "" %} | ||
|
||
{% 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
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.