Skip to content

Commit dabff78

Browse files
committed
Merge pull request #375 from SethTisue/restore-global-jekyll-instructions
restore instructions for running with global Jekyll
2 parents a1fb67a + 396ab5d commit dabff78

File tree

1 file changed

+34
-7
lines changed

1 file changed

+34
-7
lines changed

README.md

Lines changed: 34 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,29 @@ It's a static site generated by [Jekyll](https://github.com/mojombo/jekyll), and
66

77
## Dependencies
88

9-
This site uses a Jekyll, a Ruby framework. You'll need Ruby and Bundler installed; see [Jekyll installation instructions](http://jekyllrb.com/docs/installation/) for the details.
9+
This site uses a Jekyll, a Ruby framework. The required Jekyll version is 1.5.1.
1010

11-
## Building & Viewing
11+
## Building the site
1212

13-
cd into the directory where you cloned this repository, then install the required gems with `bundle install`. This will automatically put the gems into `./bundle-vendor/bundle`.
13+
There are two ways to run Jekyll to build the site:
1414

15-
Start the server in the context of the bundle:
15+
* using globally installed Jekyll and accompanying gems
16+
* using Bundler, so Jekyll and accompanying gems are installed only inside this directory
1617

17-
bundle exec jekyll serve
18+
The former method is the one currently actually used on
19+
scala-lang.org. The latter method may be more convenient for users who
20+
are comfortable using Bundler and who don't want anything else
21+
installed system-wide.
22+
23+
### Building with global Jekyll
24+
25+
Install Jekyll 1.5.1 on your system using RubyGems:
26+
27+
gem install jekyll -v 1.5.1
28+
29+
After cloning, cd into the directory where you cloned this repository and run:
30+
31+
jekyll serve
1832

1933
and watch the output. You should see something like:
2034

@@ -25,9 +39,16 @@ and watch the output. You should see something like:
2539
Generating... done.
2640
Auto-regeneration: enabled for '/Users/ben/src/scala-lang'
2741

28-
The generated site is available at `http://localhost:4000`.
42+
### Building with Bundler
2943

30-
Jekyll will automatically watch for changes on the filesystem. When you change a file, the console will show that jekyll is regenerating. Wait until it says `done` to refresh your browser.
44+
`cd` into the directory where you cloned this repository, then install the required gems with `bundle install`. This will automatically put the gems into `./bundle-vendor/bundle`.
45+
46+
Start the server in the context of the bundle:
47+
48+
bundle exec jekyll serve
49+
50+
from this point, everything else should be the same, regardless of which method
51+
you used to run Jekyll.
3152

3253
### Windows and UTF-8
3354

@@ -36,6 +57,12 @@ console in which you are running jekyll can work with UTF-8 characters. As descr
3657
[Solving UTF problem with Jekyll on Windows](http://joseoncode.com/2011/11/27/solving-utf-problem-with-jekyll-on-windows/)
3758
you have to execute `chcp 65001`. This command is best added to the `jekyll.bat`-script.
3859

60+
## Viewing the site
61+
62+
Regardless of your method of running Jekyll, the generated site is available at `http://localhost:4000`.
63+
64+
Jekyll will automatically watch for changes on the filesystem. When you change a file, the console will show that jekyll is regenerating. Wait until it says `done` to refresh your browser.
65+
3966
## YAML Front Matter
4067

4168
The "YAML Front Matter" is nothing more than the header on each page that you intend for Jekyll to parse. It contains information such as the name of the HTML template (layout) chosen for the specific document, and the title of the document. An example YAML front matter might look like:

0 commit comments

Comments
 (0)