Skip to content

Commit 522ccf2

Browse files
authored
Merge pull request #9 from ESMValGroup/local-build
Add instructions for locally building
2 parents 1790331 + 11b49f8 commit 522ccf2

File tree

1 file changed

+27
-11
lines changed

1 file changed

+27
-11
lines changed

CONTRIBUTING.md

Lines changed: 27 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
# Contributing
22

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,
75
bug reports,
86
and reviews of proposed changes are all welcome.
97

@@ -45,18 +43,18 @@ and to meet some of our community members.
4543

4644
## Where to Contribute
4745

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>.
5149

52-
2. If you wish to change the example lesson,
50+
2. If you wish to change the Carpentries example lesson,
5351
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
5553
and can be viewed at <https://carpentries.github.io/lesson-example>.
5654

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,
5856
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,
6058
while the extra pages in <https://carpentries.github.io/workshop-template>
6159
provide more background on our design choices.
6260

@@ -126,6 +124,24 @@ your clone of the originating `gh-pages` branch.
126124
Lastly, published copies of all the lessons are available in the `gh-pages` branch of the originating
127125
repository for reference while revising.
128126

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+
129145
## Other Resources
130146
131147
General discussion of [Software Carpentry][swc-site] and [Data Carpentry][dc-site]

0 commit comments

Comments
 (0)