Skip to content

Commit 52eee6f

Browse files
committed
Add instructions for running jekyll locally
This commit adds instruction about running jekyll locally. The motivation for this is that it can be useful to be able to check the blog post formatting locally while writing them. Signed-off-by: Daniel Bevenius <daniel.bevenius@gmail.com>
1 parent 7b37d52 commit 52eee6f

1 file changed

Lines changed: 31 additions & 1 deletion

File tree

README.adoc

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,39 @@
11

22
Source repo for https://trustification.io[trustification.io]
33

4-
To add a post:
4+
== Add a post
55

66
. Add a markdown file beneath link:./_posts/[_posts] named according to this format: `2022-10-20-some-name.md`
77
. Commit your changes and push to `gh-pages` branch to publish
88

99
That's it.
10+
11+
== Running locally
12+
13+
Make sure that you have `Ruby` install which can be installed using
14+
link:https://rvm.io[rvm]:
15+
[shell]
16+
----
17+
$ rvm install 3.0.0
18+
$ rvm --default use 3.0.0
19+
----
20+
21+
Install `bundler` and `jekyll`:
22+
[shell]
23+
----
24+
$ gem install jekyll bundler
25+
----
26+
27+
Install the gems required (from Gemfile):
28+
[shell]
29+
----
30+
$ bundle install
31+
----
32+
33+
Run jekyll:
34+
[shell]
35+
----
36+
$ bundle exec jekyll serve
37+
----
38+
39+
You should now be able to open http://127.0.0.1:4000/ in a browser.

0 commit comments

Comments
 (0)