You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: readme.md
+79-1
Original file line number
Diff line number
Diff line change
@@ -10,9 +10,87 @@ This repository makes use of [reveal.js](https://github.com/hakimel/reveal.js).
10
10
git submodule update --init
11
11
```
12
12
13
+
## I want to build the website locally. How do I do that?
14
+
- Ensure you have Ruby installed on your system and available from your system `$PATH`. Instructions will vary per environment but are available [here](https://www.ruby-lang.org/en/documentation/installation/).
- (Optional, only for those looking to contribute changes upstream) Ensure you have Git installed on your system and available from your system `$PATH`. Instructions will vary per environment but are available [here](https://git-scm.com/book/en/v2/Getting-Started-Installing-Git).
22
+
23
+
```
24
+
$> $ git --version
25
+
git version 2.17.1
26
+
```
27
+
28
+
- Install [Jekyll](https://jekyllrb.com/) through Ruby's [Gem](https://rubygems.org/) package management system. Jekyll is a dynamic website generator that allows Ruby code to be executed at build time. The result is a site of static pages.
29
+
30
+
```
31
+
$> gem install jekyll
32
+
Building native extensions. This could take a while...
33
+
...lots of output...
34
+
21 gems installed
35
+
```
36
+
37
+
- NOTE: When the Jekyll gem is installed it will rely on several native dependencies on your system, and you may have to go hunting to find these. For instance, on Fedora 27, you may need to install `gcc-c++`, `redhat-rpm-config`, and `ruby-devel` using a command like:
- Fork the upstream code repository at [https://github.com/codeforboston/codeforboston.org](https://github.com/codeforboston/codeforboston.org) into your namespace using the GitHub UI.
- Clone your namespace's remote into your local file system. Copy the address of your remote repository, then use that as an argument to the `git clone` command. For those not using `git`, simply download the sources using GitHub's UI. In the command below, remember to replace `ALRubinger` with your GitHub user name.
- Use Jekyll to start a small local web server to serve the site, reloading the build with changes you make to local files
78
+
79
+
```
80
+
$> $ jekyll serve --livereload
81
+
...lots of output...
82
+
LiveReload address: http://127.0.0.1:35729
83
+
Server address: http://127.0.0.1:4000/
84
+
Server running... press ctrl-c to stop.
85
+
```
86
+
87
+
- View the site using your web browser at the address indicated above, in this case `http://127.0.0.1:4000/`. Changes you make to the source files should trigger a Jekyll rebuild and appear in your browser once done.
88
+
13
89
## I want to update the wesite. How do I do that?
14
-
- To add/update jobs, edit `_data/jobs.yml`
90
+
- To add/update jobs, edit [`_data/jobs.yml`](https://github.com/codeforboston/CFB_static/edit/master/_data/jobs.yml)
15
91
- To add/update events, edit [`_data/events/active.yml`](https://github.com/codeforboston/CFB_static/edit/master/_data/events/active.yml)
92
+
- To add/update current projects, edit [`_data/projects/active.yml`](https://github.com/codeforboston/CFB_static/edit/master/_data/projects/active.yml)
93
+
- To add/update retired projects, edit [`_data/projects/inactive.yml`](https://github.com/codeforboston/CFB_static/edit/master/_data/projects/inactive.yml)
16
94
- To edit normal site pages, edit the `html` or `markdown` files in `_pages/`
0 commit comments