Skip to content

Commit 2bd93d7

Browse files
committed
add guides for developing lessons
1 parent f607be1 commit 2bd93d7

File tree

1 file changed

+19
-45
lines changed

1 file changed

+19
-45
lines changed

CONTRIBUTING.md

Lines changed: 19 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
# Contributing to ESMValTool tutorial
22

3-
[ESMValTool](https://www.esmvaltool.org/) tutorial is an open-source project 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] by choosing the ``new feature`` template.
3+
[ESMValTool](https://www.esmvaltool.org/) tutorial is an open-source project 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] by choosing the ``New feature`` template in the ``issues`` tab of this repository.
44

55
## Acknowledgement
66

7+
The [eScience academy][ea-site] initiated this tutorial.
78
The format of this tutorial is based on the [Software Carpentry][swc-site], which is an open-source project.
8-
TODO escience academy
99

1010
## Agreement
1111

@@ -17,27 +17,16 @@ Everyone involved in this [tutorial](site) agrees to abide by our [code of condu
1717

1818
There are many ways to contribute:
1919

20-
If you wish to change this tutorial,
21-
please work in <https://github.com/esmvalgroup/tutorial>,
22-
which can be viewed at <https://esmvalgroup.github.io/tutorial>.
23-
There are many ways to contribute,
24-
from writing new exercises and improving existing ones
25-
to updating or filling in the documentation
26-
and submitting [bug reports][issues]
27-
about things that don't work, aren't clear, or are missing.
28-
If you are looking for ideas, please see the 'Issues' tab for
29-
a list of issues associated with this repository,
30-
31-
32-
3320
* If you do not have a [GitHub][github] account,
3421
you can [send us comments by email][email].
3522
However,
3623
we will be able to respond more quickly if you use one of the other methods described below.
3724

3825
* If you have a [GitHub][github] account,
3926
or are willing to [create one][github-join],
40-
you can report problems or suggest improvements by [creating an issue][issues].
27+
please work in this [repository][site],
28+
which can be viewed at <https://esmvalgroup.github.io/tutorial>.
29+
You can report problems or suggest improvements by [creating an issue][issues].
4130
This is the easiest way to tell us about your ideas,
4231
and a good way to introduce yourself
4332
and to meet some of our community members.
@@ -51,72 +40,54 @@ There are three templates to make an issue:
5140
* If you would like to add what is already discussed in an issue,
5241
you can submit a [pull request][PR].
5342
To do so, you can make use of the [pull request checklist][PR].
54-
The reviewers are community volunteers to provide feedback.
43+
The reviewers are community volunteers who provide feedback.
5544
The maintainers have final say over what gets merged into the tutorial.
5645

5746
## Lesson development guides
5847

48+
This tutorial is developed based on the [Carpentries Curriculum Development Handbook][swc-handbook].
49+
5950
### Lesson development
6051

6152
### Lesson organization
6253

6354
### Lesson formatting
6455

65-
### Preview your changes locally
66-
67-
68-
69-
## Using GitHub
70-
71-
If you choose to contribute via GitHub, you may want to look at
72-
[How to Contribute to an Open Source Project on GitHub][how-contribute].
73-
To manage changes, we follow [GitHub flow][github-flow].
74-
75-
76-
1. Fork the originating repository to your GitHub profile.
77-
2. Within your version of the forked repository, move to the `gh-pages` branch and
78-
create a new branch for each significant change being made.
79-
3. Navigate to the file(s) you wish to change within the new branches and make revisions as required.
80-
4. Commit all changed files within the appropriate branches.
81-
5. Create individual pull requests from each of your changed branches
82-
to the `gh-pages` branch within the originating repository.
83-
84-
85-
When starting work, please make sure your clone of the originating `gh-pages` branch is up-to-date
86-
before creating your own revision-specific branch(es) from there.
87-
Additionally, please only work from your newly-created branch(es) and *not*
88-
your clone of the originating `gh-pages` branch.
89-
Lastly, published copies of all the lessons are available in the `gh-pages` branch of the originating
90-
repository for reference while revising.
91-
9256
## Previewing your changes locally
9357

9458
Extensive instructions for building and viewing the pages locally can be found [here](https://carpentries.github.io/lesson-example/setup.html). To get started quickly, run
59+
9560
```bash
9661
# apt (Ubuntu/Devian)
9762
sudo apt install ruby-dev ruby-bundler
9863
```
64+
9965
or
66+
10067
```bash
10168
# dnf (Fedora/Redhat)
10269
sudo dnf install rubygem-bundler ruby-devel
10370
```
10471

10572
Alternatively, there's an environment file available which can be installed in conda with:
73+
10674
```bash
10775
conda env create -f environment.yml -n esmvaltool_tutorial
10876
```
10977

11078
To install the required ruby packages, run the following command in the tutorial's
11179
main directory to build and serve the website locally:
80+
11281
```bash
11382
make serve
11483
```
11584

11685
The output on the terminal will contain a line similar to:
117-
```
86+
87+
```bash
11888
Server address: http://127.0.0.1:4000
11989
```
90+
12091
This address can be opened in your browser to preview the website.
12192

12293

@@ -135,9 +106,12 @@ You can also [reach us by email][email].
135106
[github-join]: https://github.com/join
136107
[how-contribute]: https://egghead.io/series/how-to-contribute-to-an-open-source-project-on-github
137108
[issues]: https://github.com/ESMValGroup/tutorial/issues
109+
[PR]: https://github.com/ESMValGroup/tutorial/pulls
138110
[swc-issues]: https://github.com/issues?q=user%3Aswcarpentry
139111
[swc-lessons]: https://software-carpentry.org/lessons/
140112
[swc-site]: https://software-carpentry.org/
113+
[swc-handbook]: https://carpentries.github.io/curriculum-development/
114+
[ea-site]: https://github.com/escience-academy
141115
[c-site]: https://carpentries.org/
142116
[lc-site]: https://librarycarpentry.org/
143117
[lc-issues]: https://github.com/issues?q=user%3Alibrarycarpentry

0 commit comments

Comments
 (0)