forked from datacarpentry/sql-ecology-lesson
-
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
63 changed files
with
1,849 additions
and
1,024 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 |
---|---|---|
@@ -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 |
---|---|---|
@@ -1,9 +1,21 @@ | ||
Please delete the text below before submitting your contribution. | ||
<details> | ||
<summary><strong>Instructions</strong></summary> | ||
|
||
--- | ||
Thanks for contributing! :heart: | ||
|
||
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 contribution is for instructor training, please email the link to this contribution to | ||
[email protected] so we can record your progress. You've completed your contribution | ||
step for instructor checkout by submitting this contribution! | ||
|
||
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]). | ||
If this issue is about a specific episode within a lesson, please provide its link or filename. | ||
|
||
--- | ||
Keep in mind that **lesson maintainers are volunteers** and it may take them some time to | ||
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 The Carpentries Team at [email protected]. | ||
|
||
You may delete these instructions from your comment. | ||
|
||
\- The Carpentries | ||
</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 |
---|---|---|
@@ -1,9 +1,19 @@ | ||
Please delete the text below before submitting your contribution. | ||
<details> | ||
<summary><strong>Instructions</strong></summary> | ||
|
||
--- | ||
Thanks for contributing! :heart: | ||
|
||
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 contribution is for instructor training, please email the link to this contribution to | ||
[email protected] so we can record your progress. You've completed your contribution | ||
step for instructor checkout by submitting this contribution! | ||
|
||
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]). | ||
Keep in mind that **lesson maintainers are volunteers** and it may take them some time to | ||
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 The Carpentries Team at [email protected]. | ||
|
||
--- | ||
You may delete these instructions from your comment. | ||
|
||
\- The Carpentries | ||
</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
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,10 @@ | ||
# frozen_string_literal: true | ||
|
||
source 'https://rubygems.org' | ||
|
||
git_source(:github) {|repo_name| "https://github.com/#{repo_name}" } | ||
|
||
# Synchronize with https://pages.github.com/versions | ||
ruby '>=2.5.8' | ||
|
||
gem 'github-pages', group: :jekyll_plugins |
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,25 @@ | ||
{% comment %} | ||
As a maintainer, you don't need to edit this file. | ||
If you notice that something doesn't work, please | ||
open an issue: https://github.com/carpentries/styles/issues/new | ||
{% endcomment %} | ||
|
||
{% include manual_episode_order.html %} | ||
|
||
{% for lesson_episode in lesson_episodes %} | ||
|
||
{% if site.episode_order %} | ||
{% assign e = site.episodes | where: "slug", lesson_episode | first %} | ||
{% else %} | ||
{% assign e = lesson_episode %} | ||
{% endif %} | ||
|
||
<h1 id="{{ e.title | slugify }}" class="maintitle">{{ e.title }}</h1> | ||
|
||
{% include episode_overview.html teaching_time=e.teaching exercise_time=e.exercises episode_questions=e.questions episode_objectives=e.objectives %} | ||
|
||
{{ e.content }} | ||
|
||
{% include episode_keypoints.html episode_keypoints=e.keypoints %} | ||
<hr /> | ||
{% endfor %} |
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 %} |
Oops, something went wrong.