|
1 | 1 | # Contributing |
2 | 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, |
| 3 | +The format of this tutorial is based on the [The Carpentries][c-site] ([Software Carpentry][swc-site], [Data Carpentry][dc-site], and [Library Carpentry][lc-site]), which are open source projects. We welcome contributions of all kinds: |
| 4 | +fixes to this tutorial, |
7 | 5 | bug reports, |
8 | 6 | and reviews of proposed changes are all welcome. |
9 | 7 |
|
@@ -45,18 +43,18 @@ and to meet some of our community members. |
45 | 43 |
|
46 | 44 | ## Where to Contribute |
47 | 45 |
|
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>. |
| 46 | +1. If you wish to change this tutorial, |
| 47 | + please work in <https://github.com/esmvalgroup/tutorial>, |
| 48 | + which can be viewed at <https://esmvalgroup.github.io/tutorial>. |
51 | 49 |
|
52 | | -2. If you wish to change the example lesson, |
| 50 | +2. If you wish to change the Carpentries example lesson, |
53 | 51 | please work in <https://github.com/carpentries/lesson-example>, |
54 | | - which documents the format of our lessons |
| 52 | + which documents the format of the Carpentry lessons |
55 | 53 | and can be viewed at <https://carpentries.github.io/lesson-example>. |
56 | 54 |
|
57 | | -3. If you wish to change the template used for workshop websites, |
| 55 | +3. If you wish to change the template used for Carpentry workshop websites, |
58 | 56 | please work in <https://github.com/carpentries/workshop-template>. |
59 | | - The home page of that repository explains how to set up workshop websites, |
| 57 | + The home page of that repository explains how to set up Carpentry workshop websites, |
60 | 58 | while the extra pages in <https://carpentries.github.io/workshop-template> |
61 | 59 | provide more background on our design choices. |
62 | 60 |
|
@@ -126,6 +124,24 @@ your clone of the originating `gh-pages` branch. |
126 | 124 | Lastly, published copies of all the lessons are available in the `gh-pages` branch of the originating |
127 | 125 | repository for reference while revising. |
128 | 126 |
|
| 127 | +## Previewing your changes locally |
| 128 | + |
| 129 | +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 |
| 130 | +```bash |
| 131 | +# apt (Ubuntu/Devian) |
| 132 | +sudo apt install ruby-dev ruby-bundler |
| 133 | +# dnf (Fedora/Redhat) |
| 134 | +sudo dnf install rubygem-bundler ruby-devel |
| 135 | +to install the required ruby packages and |
| 136 | +```bash |
| 137 | +make serve |
| 138 | +``` |
| 139 | +to build and serve the website locally. The output on the terminal will contain a line similar to |
| 140 | +``` |
| 141 | +Server address: http://127.0.0.1:4000 |
| 142 | +``` |
| 143 | +open the address in your browser to preview the website. |
| 144 | +
|
129 | 145 | ## Other Resources |
130 | 146 |
|
131 | 147 | General discussion of [Software Carpentry][swc-site] and [Data Carpentry][dc-site] |
|
0 commit comments