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
+34-7Lines changed: 34 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -6,15 +6,29 @@ It's a static site generated by [Jekyll](https://github.com/mojombo/jekyll), and
6
6
7
7
## Dependencies
8
8
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.
10
10
11
-
## Building & Viewing
11
+
## Building the site
12
12
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:
14
14
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
16
17
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
18
32
19
33
and watch the output. You should see something like:
20
34
@@ -25,9 +39,16 @@ and watch the output. You should see something like:
25
39
Generating... done.
26
40
Auto-regeneration: enabled for '/Users/ben/src/scala-lang'
27
41
28
-
The generated site is available at `http://localhost:4000`.
42
+
### Building with Bundler
29
43
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.
31
52
32
53
### Windows and UTF-8
33
54
@@ -36,6 +57,12 @@ console in which you are running jekyll can work with UTF-8 characters. As descr
36
57
[Solving UTF problem with Jekyll on Windows](http://joseoncode.com/2011/11/27/solving-utf-problem-with-jekyll-on-windows/)
37
58
you have to execute `chcp 65001`. This command is best added to the `jekyll.bat`-script.
38
59
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
+
39
66
## YAML Front Matter
40
67
41
68
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