Skip to content

Commit 3c7d52a

Browse files
committed
Merge remote-tracking branch 'origin/master' into setup_md
2 parents af9dbd0 + 15e8d88 commit 3c7d52a

22 files changed

+1720
-479
lines changed

.github/workflows/ci.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Jekyll site CI
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-20.04
10+
steps:
11+
- uses: actions/checkout@v2
12+
- name: Setup Ruby
13+
uses: ruby/[email protected]
14+
with:
15+
ruby-version: 2.7
16+
- name: Cache Ruby deps
17+
uses: actions/cache@v2
18+
with:
19+
path: vendor/bundle
20+
key: ruby-deps-${{ hashFiles('**/Gemfile.lock') }}
21+
restore-keys: |
22+
ruby-deps-
23+
- name: Ruby deps
24+
run: gem install json kramdown jekyll bundler
25+
- name: Setup Python
26+
uses: actions/setup-python@v2
27+
with:
28+
python-version: '3.x'
29+
- name: Python deps
30+
run: pip install pyyaml
31+
- name: Nokogiri deps
32+
run: sudo apt install -y pkg-config libxml2-dev libxslt-dev
33+
- name: Site deps
34+
run: bundle install
35+
- name: Build site
36+
run: bundle exec jekyll build
37+
- name: Check all lessons
38+
run: make lesson-check-all

CONTRIBUTING.md

Lines changed: 69 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,68 +1,94 @@
11
# Contributing to ESMValTool tutorial
22

3-
[ESMValTool][tutorial-site] tutorial is an open-source project in [ESMValGroup][ESMValTool-site] and we greatly value contributions of all kinds: fixes to this tutorial, bug reports, reviews of pull requests, infrastructure improvements, community help, and outreach. We value the time you invest in contributing and strive to make the process as easy as possible. If you have suggestions for improving the process of contributing, please open an [issue][issues]. To do so, click on `New issue` in the `issues` tab of this repository and choose the `Suggestion` template.
3+
[ESMValTool][tutorial-site] tutorial is an open-source project in
4+
[ESMValGroup][ESMValTool-site] and we greatly value contributions of all kinds:
5+
fixes to this tutorial, bug reports, reviews of pull requests, infrastructure
6+
improvements, community help, and outreach. We value the time you invest in
7+
contributing and strive to make the process as easy as possible. If you have
8+
suggestions for improving the process of contributing, please open an
9+
[issue][issues]. To do so, click on `New issue` in the `issues` tab of this
10+
repository and choose the `Suggestion` template.
411

512
## Acknowledgement
613

7-
The format of this tutorial is based on the [Software Carpentry][swc-site], which is an open-source project.
14+
The format of this tutorial is based on the [Software Carpentry][swc-site],
15+
which is an open-source project.
816

917
## Agreement
1018

11-
By contributing, you agree that we may redistribute your work under [our license](LICENSE.md).
12-
In exchange, we will address your issues and/or assess your change proposal as promptly as we can, and help you become a member of our community.
13-
Everyone involved in this [tutorial](tutorial-repo) agrees to abide by our [code of conduct](CODE_OF_CONDUCT.md).
19+
By contributing, you agree that we may redistribute your work under [our
20+
license](LICENSE.md). In exchange, we will address your issues and/or assess
21+
your change proposal as promptly as we can, and help you become a member of our
22+
community. Everyone involved in this [tutorial](tutorial-repo) agrees to abide
23+
by our [code of conduct](CODE_OF_CONDUCT.md).
1424

1525
## How to Contribute
1626

1727
There are many ways to contribute:
1828

19-
* If you do not have a [GitHub][github] account,
20-
you can send us comments by [email][email].
21-
However,
22-
we will be able to respond more quickly when you use one of the other methods described below.
23-
24-
* If you have a [GitHub][github] account, work in this [repository][tutorial-repo],
25-
which can be viewed at the tutorial [site][tutorial-site].
26-
You can ask your questions, report problems or suggest improvements by [creating an issue][issues].
27-
This is the easiest way to tell us about your ideas, and a good way to introduce yourself
28-
and to meet some of our community members.
29-
This allows us to assign the item to someone and to respond to it in a threaded discussion.
30-
To open an issue, click on `New issue` in the `issues` tab of this repository and choose a template from the [list](https://github.com/ESMValGroup/tutorial/issues/new/choose) as described below:
29+
* If you do not have a [GitHub][github] account, you can send us comments by
30+
[email][email]. However, we will be able to respond more quickly when you use
31+
one of the other methods described below.
32+
33+
* If you have a [GitHub][github] account, work in this
34+
[repository][tutorial-repo], which can be viewed at the tutorial
35+
[site][tutorial-site]. You can ask your questions, report problems or suggest
36+
improvements by [creating an issue][issues]. This is the easiest way to tell
37+
us about your ideas, and a good way to introduce yourself and to meet some of
38+
our community members. This allows us to assign the item to someone and to
39+
respond to it in a threaded discussion. To open an issue, click on `New issue`
40+
in the `issues` tab of this repository and choose a template from the
41+
[list](https://github.com/ESMValGroup/tutorial/issues/new/choose) as described
42+
below:
3143
* for asking a question, please use `Question and answer`.
3244
* for reporting a bug, please use `Bug reports`.
3345
* for developing lesson material, please use `New lesson material`.
3446
* for adding a feature to the repository, please use `Suggestion`.
3547

36-
* If you would like to add what is already discussed in an issue,
37-
you can submit a [pull request][PR] and make use of the `pull request checklist`.
38-
Each pull request is reviewed at least by one reviewer who is a community volunteer.
39-
The [maintainers][tutorial-maintainers] have final say over what gets merged into the tutorial.
48+
* If you would like to add what is already discussed in an issue, you can submit
49+
a [pull request][PR] and make use of the `pull request checklist`. Each pull
50+
request is reviewed at least by one reviewer who is a community volunteer. The
51+
[maintainers][tutorial-maintainers] have final say over what gets merged into
52+
the tutorial.
4053

4154
## Tutorial guidelines
4255

43-
This section demonstrates all the instructions for developing a lesson in the [ESMValTool tutorial][tutorial-site].
44-
The tutorial is a set of lessons (or episodes) that together teach **basic** skills needed to work with [ESMValTool][ESMValTool-doc] in climate-related domains.
56+
This section demonstrates all the instructions for developing a lesson in the
57+
[ESMValTool tutorial][tutorial-site]. The tutorial is a set of lessons (or
58+
episodes) that together teach **basic** skills needed to work with
59+
[ESMValTool][ESMValTool-doc] in climate-related domains.
4560

4661
### Lesson development
4762

48-
The content of this tutorial is mainly developed based on the [Carpentries Curriculum Development Handbook][swc-handbook]. The handbook explains why we teach the way we do, and why our lessons are designed the way they are.
49-
If you are contributing to existing lesson materials, please make sure the content conforms to the concepts provided in the handbook.
63+
The content of this tutorial is mainly developed based on the [Carpentries
64+
Curriculum Development Handbook][swc-handbook]. The handbook explains why we
65+
teach the way we do, and why our lessons are designed the way they are. If you
66+
are contributing to existing lesson materials, please make sure the content
67+
conforms to the concepts provided in the handbook.
5068

51-
We recommend using software to check spelling or grammatical errors.
52-
The following link will guide you through a list of tools for several editors:
69+
We recommend using software to check spelling or grammatical errors. The
70+
following link will guide you through a list of tools for several editors:
5371
<http://wiki.languagetool.org/software-that-supports-languagetool-as-a-plug-in-or-add-on>
5472

5573
### Lesson organization
5674

57-
Each lesson is made up of episodes, which are focused on a particular topic and include time for both teaching and exercises. If you are making a new episode, please make sure the content conforms to the [Carpentries lesson organization][swc-lesson-organization].
75+
Each lesson is made up of episodes, which are focused on a particular topic and
76+
include time for both teaching and exercises. If you are making a new episode,
77+
please make sure the content conforms to the [Carpentries lesson
78+
organization][swc-lesson-organization].
5879

5980
### Lesson formatting
6081

61-
Episodes are [Markdown](https://en.wikipedia.org/wiki/Markdown) files. If you are making a new episode or contributing to existing ones, please make sure the content conforms to the [Carpentries lesson formatting][swc-lesson-formatting].
82+
Episodes are [Markdown](https://en.wikipedia.org/wiki/Markdown) files. If you
83+
are making a new episode or contributing to existing ones, please make sure the
84+
content conforms to the [Carpentries lesson formatting][swc-lesson-formatting].
6285

63-
We also, recommend using a linter to check errors in Markdown files.
64-
For example, a [markdownlint](https://marketplace.visualstudio.com/items?itemName=DavidAnson.vscode-markdownlint) can be installed as an extension in [Visual Studio Code](https://code.visualstudio.com/).
65-
Alternatively, a linter can be installed with:
86+
We also, recommend using a linter to check errors in Markdown files. For
87+
example, a
88+
[markdownlint](https://marketplace.visualstudio.com/items?itemName=DavidAnson.vscode-markdownlint)
89+
can be installed as an extension in [Visual Studio
90+
Code](https://code.visualstudio.com/). Alternatively, a linter can be installed
91+
with:
6692

6793
```bash
6894
gem install mdl
@@ -74,7 +100,10 @@ and can be used as:
74100
mdl your_markdown_filename
75101
```
76102

77-
We use [Codacy](https://app.codacy.com/gh/ESMValGroup/tutorial) as an automated code analysis services. To run the analyis [locally](https://github.com/codacy/codacy-analysis-cli) on Markdown files with Docker use
103+
We use [Codacy](https://app.codacy.com/gh/ESMValGroup/tutorial) as an automated
104+
code analysis services. To run the analyis
105+
[locally](https://github.com/codacy/codacy-analysis-cli) on Markdown files with
106+
Docker use
78107

79108
```bash
80109
docker run \
@@ -89,9 +118,9 @@ docker run \
89118

90119
### Previewing your changes locally
91120

92-
If you are making a new episode or contributing to existing ones,
93-
please preview changes on your machine before submitting a [pull request][PR].
94-
To do so, you need to install the software described below:
121+
If you are making a new episode or contributing to existing ones, please preview
122+
changes on your machine before submitting a [pull request][PR]. To do so, you
123+
need to install the software described below:
95124

96125
```bash
97126
# apt (Ubuntu/Devian)
@@ -105,14 +134,15 @@ or
105134
sudo dnf install rubygem-bundler ruby-devel
106135
```
107136

108-
Alternatively, there is an environment file available which can be installed with:
137+
Alternatively, there is an environment file available which can be installed
138+
with:
109139

110140
```bash
111141
conda env create -f environment.yml -n esmvaltool_tutorial
112142
```
113143

114-
To install the required ruby packages, run the following command in the tutorial's
115-
main directory to build and serve the website locally:
144+
To install the required ruby packages, run the following command in the
145+
tutorial's main directory to build and serve the website locally:
116146

117147
```bash
118148
make serve

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ lesson-check : lesson-fixme
132132

133133
## * lesson-check-all : validate lesson Markdown, checking line lengths and trailing whitespace
134134
lesson-check-all :
135-
@${PYTHON} bin/lesson_check.py -s . -p ${PARSER} -r _includes/links.md -l -w --permissive
135+
@${PYTHON} bin/lesson_check.py -s . -p ${PARSER} -r _includes/links.md -l -w
136136

137137
## * unittest : run unit tests on checking tools
138138
unittest :

README.md

Lines changed: 24 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,39 @@
11
# FIXME Lesson title
22

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/) [![Join the chat at https://gitter.im/ESMValGroup/Tutorial](https://badges.gitter.im/ESMValGroup/Tutorial.svg)](https://gitter.im/ESMValGroup/Tutorial?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
3+
[![Create a Slack Account with
4+
us](https://img.shields.io/badge/Create_Slack_Account-The_Carpentries-071159.svg)](https://swc-slack-invite.herokuapp.com/)
5+
[![Join the chat at
6+
https://gitter.im/ESMValGroup/Tutorial](https://badges.gitter.im/ESMValGroup/Tutorial.svg)](https://gitter.im/ESMValGroup/Tutorial?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
47

5-
This repository generates the corresponding lesson website from [The Carpentries](https://carpentries.org/) repertoire of lessons.
8+
This repository generates the corresponding lesson website from [The
9+
Carpentries](https://carpentries.org/) repertoire of lessons.
610

711
## Contributing
812

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.
13+
We welcome all contributions to improve the lesson! Maintainers will do their
14+
best to help you if you have any questions, concerns, or experience any
15+
difficulties along the way.
1116

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. Note that the content of the web page is located in the directory [_episodes](https://github.com/ESMValGroup/tutorial/tree/master/_episodes).
17+
We'd like to ask you to familiarize yourself with our [Contribution
18+
Guide](CONTRIBUTING.md) and have a look at the [more detailed
19+
guidelines][lesson-example] on proper formatting, ways to render the lesson
20+
locally, and even how to write new episodes. Note that the content of the web
21+
page is located in the directory
22+
[_episodes](https://github.com/ESMValGroup/tutorial/tree/master/_episodes).
1523

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.
24+
Please see the current list of [issues][FIXME] for ideas for contributing to
25+
this repository. For making your contribution, we use the GitHub flow, which is
26+
nicely explained in the chapter [Contributing to a
27+
Project](http://git-scm.com/book/en/v2/GitHub-Contributing-to-a-Project) in Pro
28+
Git by Scott Chacon. Look for the tag
29+
![good_first_issue](https://img.shields.io/badge/-good%20first%20issue-gold.svg).
30+
This indicates that the maintainers will welcome a pull request fixing this
31+
issue.
2132

2233

2334
## Maintainer(s)
2435

25-
Current maintainers of this lesson are
36+
Current maintainers of this lesson are
2637

2738
* FIXME
2839
* FIXME

_config.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,21 @@
22
# Values for this lesson.
33
#------------------------------------------------------------
44

5-
# Which carpentry is this ("swc", "dc", "lc", or "cp")?
5+
# Which carpentry is this ("swc", "dc", "lc", "cp")?
66
# swc: Software Carpentry
77
# dc: Data Carpentry
88
# lc: Library Carpentry
99
# cp: Carpentries (to use for instructor traning for instance)
10-
# ea: eScience Academy
11-
carpentry: "ea"
10+
# ea: eScience Academy (not implemented)
11+
# et: ESMValTool Tutorial (to be implemented)
12+
carpentry: "et"
1213

1314
# Overall title for pages.
14-
title: "ESMValTool Introduction"
15+
title: "ESMValTool Tutorial"
1516

1617
# Life cycle stage of the lesson
1718
# possible values: "pre-alpha", "alpha", "beta", "stable"
18-
life_cycle: "pre-alpha"
19+
life_cycle: "alpha"
1920

2021
#------------------------------------------------------------
2122
# Generic settings (should not need to change).

0 commit comments

Comments
 (0)