Skip to content

Commit 9430cf4

Browse files
committed
initialized lesson
1 parent 3ce8d05 commit 9430cf4

14 files changed

+495
-0
lines changed

.travis.yml

+57
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
# Travis CI is only used to check the lesson and is not involved in its deployment
2+
dist: bionic
3+
language: ruby
4+
rvm:
5+
- 2.7.1
6+
7+
branches:
8+
only:
9+
- gh-pages
10+
- /.*/
11+
12+
cache:
13+
apt: true
14+
bundler: true
15+
directories:
16+
- /home/travis/.rvm/
17+
- $R_LIBS_USER
18+
- $HOME/.cache/pip
19+
20+
env:
21+
global:
22+
- NOKOGIRI_USE_SYSTEM_LIBRARIES=true # speeds up installation of html-proofer
23+
- R_LIBS_USER=~/R/Library
24+
- R_LIBS_SITE=/usr/local/lib/R/site-library:/usr/lib/R/site-library
25+
- R_VERSION=4.0.2
26+
27+
before_install:
28+
## Install R + pandoc + dependencies
29+
- sudo add-apt-repository -y "ppa:marutter/rrutter4.0"
30+
- sudo add-apt-repository -y "ppa:c2d4u.team/c2d4u4.0+"
31+
- sudo add-apt-repository -y "ppa:ubuntugis/ppa"
32+
- sudo add-apt-repository -y "ppa:cran/travis"
33+
- travis_apt_get_update
34+
- sudo apt-get install -y --no-install-recommends build-essential gcc g++ libblas-dev liblapack-dev libncurses5-dev libreadline-dev libjpeg-dev libpcre3-dev libpng-dev zlib1g-dev libbz2-dev liblzma-dev libicu-dev cdbs qpdf texinfo libssh2-1-dev gfortran jq python3.5 python3-pip r-base
35+
- export PATH=${TRAVIS_HOME}/R-bin/bin:$PATH
36+
- export LD_LIBRARY_PATH=${TRAVIS_HOME}/R-bin/lib:$LD_LIBRARY_PATH
37+
- sudo mkdir -p /usr/local/lib/R/site-library $R_LIBS_USER
38+
- sudo chmod 2777 /usr/local/lib/R /usr/local/lib/R/site-library $R_LIBS_USER
39+
- echo 'options(repos = c(CRAN = "https://packagemanager.rstudio.com/all/__linux__/bionic/latest"))' > ~/.Rprofile.site
40+
- export R_PROFILE=~/.Rprofile.site
41+
- curl -fLo /tmp/texlive.tar.gz https://github.com/jimhester/ubuntu-bin/releases/download/latest/texlive.tar.gz
42+
- tar xzf /tmp/texlive.tar.gz -C ~
43+
- export PATH=${TRAVIS_HOME}/texlive/bin/x86_64-linux:$PATH
44+
- tlmgr update --self
45+
- curl -fLo /tmp/pandoc-2.2-1-amd64.deb https://github.com/jgm/pandoc/releases/download/2.2/pandoc-2.2-1-amd64.deb
46+
- sudo dpkg -i /tmp/pandoc-2.2-1-amd64.deb
47+
- sudo apt-get install -f
48+
- rm /tmp/pandoc-2.2-1-amd64.deb
49+
- Rscript -e "install.packages(setdiff(c('renv', 'rprojroot'), installed.packages()), loc = Sys.getenv('R_LIBS_USER')); update.packages(lib.loc = Sys.getenv('R_LIBS_USER'), ask = FALSE, checkBuilt = TRUE)"
50+
- Rscript -e 'sessionInfo()'
51+
## Install python and dependencies
52+
- python3 -m pip install --upgrade pip setuptools wheel
53+
- python3 -m pip install pyyaml
54+
55+
script:
56+
- make lesson-check-all
57+
- make --always-make site

AUTHORS

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
FIXME: list authors' names and email addresses.

CITATION

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
FIXME: describe how to cite this lesson.

CONTRIBUTING.md

+151
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,151 @@
1+
# Contributing
2+
3+
[The Carpentries][c-site] ([Software Carpentry][swc-site], [Data Carpentry][dc-site], and [Library Carpentry][lc-site]) are open source projects,
4+
and we welcome contributions of all kinds:
5+
new lessons,
6+
fixes to existing material,
7+
bug reports,
8+
and reviews of proposed changes are all welcome.
9+
10+
## Contributor Agreement
11+
12+
By contributing,
13+
you agree that we may redistribute your work under [our license](LICENSE.md).
14+
In exchange,
15+
we will address your issues and/or assess your change proposal as promptly as we can,
16+
and help you become a member of our community.
17+
Everyone involved in [The Carpentries][c-site]
18+
agrees to abide by our [code of conduct](CODE_OF_CONDUCT.md).
19+
20+
## How to Contribute
21+
22+
The easiest way to get started is to file an issue
23+
to tell us about a spelling mistake,
24+
some awkward wording,
25+
or a factual error.
26+
This is a good way to introduce yourself
27+
and to meet some of our community members.
28+
29+
1. If you do not have a [GitHub][github] account,
30+
you can [send us comments by email][email].
31+
However,
32+
we will be able to respond more quickly if you use one of the other methods described below.
33+
34+
2. If you have a [GitHub][github] account,
35+
or are willing to [create one][github-join],
36+
but do not know how to use Git,
37+
you can report problems or suggest improvements by [creating an issue][issues].
38+
This allows us to assign the item to someone
39+
and to respond to it in a threaded discussion.
40+
41+
3. If you are comfortable with Git,
42+
and would like to add or change material,
43+
you can submit a pull request (PR).
44+
Instructions for doing this are [included below](#using-github).
45+
46+
## Where to Contribute
47+
48+
1. If you wish to change this lesson,
49+
please work in <https://github.com/swcarpentry/FIXME>,
50+
which can be viewed at <https://swcarpentry.github.io/FIXME>.
51+
52+
2. If you wish to change the example lesson,
53+
please work in <https://github.com/carpentries/lesson-example>,
54+
which documents the format of our lessons
55+
and can be viewed at <https://carpentries.github.io/lesson-example>.
56+
57+
3. If you wish to change the template used for workshop websites,
58+
please work in <https://github.com/carpentries/workshop-template>.
59+
The home page of that repository explains how to set up workshop websites,
60+
while the extra pages in <https://carpentries.github.io/workshop-template>
61+
provide more background on our design choices.
62+
63+
4. If you wish to change CSS style files, tools,
64+
or HTML boilerplate for lessons or workshops stored in `_includes` or `_layouts`,
65+
please work in <https://github.com/carpentries/styles>.
66+
67+
## What to Contribute
68+
69+
There are many ways to contribute,
70+
from writing new exercises and improving existing ones
71+
to updating or filling in the documentation
72+
and submitting [bug reports][issues]
73+
about things that do not work, aren not clear, or are missing.
74+
If you are looking for ideas, please see the 'Issues' tab for
75+
a list of issues associated with this repository,
76+
or you may also look at the issues for [Data Carpentry][dc-issues],
77+
[Software Carpentry][swc-issues], and [Library Carpentry][lc-issues] projects.
78+
79+
Comments on issues and reviews of pull requests are just as welcome:
80+
we are smarter together than we are on our own.
81+
Reviews from novices and newcomers are particularly valuable:
82+
it is easy for people who have been using these lessons for a while
83+
to forget how impenetrable some of this material can be,
84+
so fresh eyes are always welcome.
85+
86+
## What *Not* to Contribute
87+
88+
Our lessons already contain more material than we can cover in a typical workshop,
89+
so we are usually *not* looking for more concepts or tools to add to them.
90+
As a rule,
91+
if you want to introduce a new idea,
92+
you must (a) estimate how long it will take to teach
93+
and (b) explain what you would take out to make room for it.
94+
The first encourages contributors to be honest about requirements;
95+
the second, to think hard about priorities.
96+
97+
We are also not looking for exercises or other material that only run on one platform.
98+
Our workshops typically contain a mixture of Windows, macOS, and Linux users;
99+
in order to be usable,
100+
our lessons must run equally well on all three.
101+
102+
## Using GitHub
103+
104+
If you choose to contribute via GitHub, you may want to look at
105+
[How to Contribute to an Open Source Project on GitHub][how-contribute].
106+
To manage changes, we follow [GitHub flow][github-flow].
107+
Each lesson has two maintainers who review issues and pull requests or encourage others to do so.
108+
The maintainers are community volunteers and have final say over what gets merged into the lesson.
109+
To use the web interface for contributing to a lesson:
110+
111+
1. Fork the originating repository to your GitHub profile.
112+
2. Within your version of the forked repository, move to the `gh-pages` branch and
113+
create a new branch for each significant change being made.
114+
3. Navigate to the file(s) you wish to change within the new branches and make revisions as required.
115+
4. Commit all changed files within the appropriate branches.
116+
5. Create individual pull requests from each of your changed branches
117+
to the `gh-pages` branch within the originating repository.
118+
6. If you receive feedback, make changes using your issue-specific branches of the forked
119+
repository and the pull requests will update automatically.
120+
7. Repeat as needed until all feedback has been addressed.
121+
122+
When starting work, please make sure your clone of the originating `gh-pages` branch is up-to-date
123+
before creating your own revision-specific branch(es) from there.
124+
Additionally, please only work from your newly-created branch(es) and *not*
125+
your clone of the originating `gh-pages` branch.
126+
Lastly, published copies of all the lessons are available in the `gh-pages` branch of the originating
127+
repository for reference while revising.
128+
129+
## Other Resources
130+
131+
General discussion of [Software Carpentry][swc-site] and [Data Carpentry][dc-site]
132+
happens on the [discussion mailing list][discuss-list],
133+
which everyone is welcome to join.
134+
You can also [reach us by email][email].
135+
136+
[email]: mailto:admin@software-carpentry.org
137+
[dc-issues]: https://github.com/issues?q=user%3Adatacarpentry
138+
[dc-lessons]: http://datacarpentry.org/lessons/
139+
[dc-site]: http://datacarpentry.org/
140+
[discuss-list]: https://carpentries.topicbox.com/groups/discuss
141+
[github]: https://github.com
142+
[github-flow]: https://guides.github.com/introduction/flow/
143+
[github-join]: https://github.com/join
144+
[how-contribute]: https://egghead.io/series/how-to-contribute-to-an-open-source-project-on-github
145+
[issues]: https://guides.github.com/features/issues/
146+
[swc-issues]: https://github.com/issues?q=user%3Aswcarpentry
147+
[swc-lessons]: https://software-carpentry.org/lessons/
148+
[swc-site]: https://software-carpentry.org/
149+
[c-site]: https://carpentries.org/
150+
[lc-site]: https://librarycarpentry.org/
151+
[lc-issues]: https://github.com/issues?q=user%3Alibrarycarpentry

README.md

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# FIXME Lesson title
2+
3+
[![Create a Slack Account with us](https://img.shields.io/badge/Create_Slack_Account-The_Carpentries-071159.svg)](https://swc-slack-invite.herokuapp.com/)
4+
5+
This repository generates the corresponding lesson website from [The Carpentries](https://carpentries.org/) repertoire of lessons.
6+
7+
## Contributing
8+
9+
We welcome all contributions to improve the lesson! Maintainers will do their best to help you if you have any
10+
questions, concerns, or experience any difficulties along the way.
11+
12+
We'd like to ask you to familiarize yourself with our [Contribution Guide](CONTRIBUTING.md) and have a look at
13+
the [more detailed guidelines][lesson-example] on proper formatting, ways to render the lesson locally, and even
14+
how to write new episodes.
15+
16+
Please see the current list of [issues][FIXME] for ideas for contributing to this
17+
repository. For making your contribution, we use the GitHub flow, which is
18+
nicely explained in the chapter [Contributing to a Project](http://git-scm.com/book/en/v2/GitHub-Contributing-to-a-Project) in Pro Git
19+
by Scott Chacon.
20+
Look for the tag ![good_first_issue](https://img.shields.io/badge/-good%20first%20issue-gold.svg). This indicates that the maintainers will welcome a pull request fixing this issue.
21+
22+
23+
## Maintainer(s)
24+
25+
Current maintainers of this lesson are
26+
27+
* FIXME
28+
* FIXME
29+
* FIXME
30+
31+
32+
## Authors
33+
34+
A list of contributors to the lesson can be found in [AUTHORS](AUTHORS)
35+
36+
## Citation
37+
38+
To cite this lesson, please consult with [CITATION](CITATION)
39+
40+
[lesson-example]: https://carpentries.github.io/lesson-example

_config.yml

+101
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,101 @@
1+
#------------------------------------------------------------
2+
# Values for this lesson.
3+
#------------------------------------------------------------
4+
5+
# Which carpentry is this ("swc", "dc", "lc", or "cp")?
6+
# swc: Software Carpentry
7+
# dc: Data Carpentry
8+
# lc: Library Carpentry
9+
# cp: Carpentries (to use for instructor traning for instance)
10+
# incubator: Carpentries Incubator
11+
carpentry: "swc"
12+
13+
# Overall title for pages.
14+
title: "Lesson Title"
15+
16+
# Life cycle stage of the lesson
17+
# See this page for more details: https://cdh.carpentries.org/the-lesson-life-cycle.html
18+
# Possible values: "pre-alpha", "alpha", "beta", "stable"
19+
life_cycle: "pre-alpha"
20+
21+
#------------------------------------------------------------
22+
# Generic settings (should not need to change).
23+
#------------------------------------------------------------
24+
25+
# What kind of thing is this ("workshop" or "lesson")?
26+
kind: "lesson"
27+
28+
# Magic to make URLs resolve both locally and on GitHub.
29+
# See https://help.github.com/articles/repository-metadata-on-github-pages/.
30+
# Please don't change it: <USERNAME>/<PROJECT> is correct.
31+
repository: <USERNAME>/<PROJECT>
32+
33+
# Email address, no mailto:
34+
email: "team@carpentries.org"
35+
36+
# Sites.
37+
amy_site: "https://amy.carpentries.org/"
38+
carpentries_github: "https://github.com/carpentries"
39+
carpentries_pages: "https://carpentries.github.io"
40+
carpentries_site: "https://carpentries.org/"
41+
dc_site: "https://datacarpentry.org"
42+
example_repo: "https://github.com/carpentries/lesson-example"
43+
example_site: "https://carpentries.github.io/lesson-example"
44+
lc_site: "https://librarycarpentry.org/"
45+
swc_github: "https://github.com/swcarpentry"
46+
swc_pages: "https://swcarpentry.github.io"
47+
swc_site: "https://software-carpentry.org"
48+
template_repo: "https://github.com/carpentries/styles"
49+
training_site: "https://carpentries.github.io/instructor-training"
50+
workshop_repo: "https://github.com/carpentries/workshop-template"
51+
workshop_site: "https://carpentries.github.io/workshop-template"
52+
cc_by_human: "https://creativecommons.org/licenses/by/4.0/"
53+
54+
# Surveys.
55+
pre_survey: "https://carpentries.typeform.com/to/wi32rS?slug="
56+
post_survey: "https://carpentries.typeform.com/to/UgVdRQ?slug="
57+
instructor_pre_survey: "https://www.surveymonkey.com/r/instructor_training_pre_survey?workshop_id="
58+
instructor_post_survey: "https://www.surveymonkey.com/r/instructor_training_post_survey?workshop_id="
59+
60+
61+
# Start time in minutes (0 to be clock-independent, 540 to show a start at 09:00 am).
62+
start_time: 0
63+
64+
# Specify that things in the episodes collection should be output.
65+
collections:
66+
episodes:
67+
output: true
68+
permalink: /:path/index.html
69+
extras:
70+
output: true
71+
permalink: /:path/index.html
72+
73+
# Set the default layout for things in the episodes collection.
74+
defaults:
75+
- values:
76+
root: .
77+
layout: page
78+
- scope:
79+
path: ""
80+
type: episodes
81+
values:
82+
root: ..
83+
layout: episode
84+
- scope:
85+
path: ""
86+
type: extras
87+
values:
88+
root: ..
89+
layout: page
90+
91+
# Files and directories that are not to be copied.
92+
exclude:
93+
- Makefile
94+
- bin/
95+
- .Rproj.user/
96+
- .vendor/
97+
- vendor/
98+
- .docker-vendor/
99+
100+
# Turn on built-in syntax highlighting.
101+
highlighter: rouge

_episodes/01-introduction.md

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
title: "Introduction"
3+
teaching: 0
4+
exercises: 0
5+
questions:
6+
- "Key question (FIXME)"
7+
objectives:
8+
- "First learning objective. (FIXME)"
9+
keypoints:
10+
- "First key point. Brief Answer to questions. (FIXME)"
11+
---
12+
FIXME
13+
14+
{% include links.md %}
15+

_extras/about.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
title: About
3+
---
4+
{% include carpentries.html %}
5+
{% include links.md %}

_extras/discuss.md

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
title: Discussion
3+
---
4+
FIXME
5+
6+
{% include links.md %}

0 commit comments

Comments
 (0)