Skip to content

Commit c796bfe

Browse files
authored
Merge pull request #711 from haddocking/readme
simplify setup instructions
2 parents e8ba32e + 5996d78 commit c796bfe

File tree

4 files changed

+217
-76
lines changed

4 files changed

+217
-76
lines changed

.bundle/config

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
---
2+
BUNDLE_PATH: "vendor/bundle"

Gemfile

Lines changed: 6 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,20 @@
11
source "https://rubygems.org"
2-
# Hello! This is where you manage which Jekyll version is used to run.
3-
# When you want to use a different version, change it below, save the
4-
# file and run `bundle install`. Run Jekyll with `bundle exec`, like so:
5-
#
6-
# bundle exec jekyll serve
7-
#
8-
# This will help ensure the proper Jekyll version is running.
9-
# Happy Jekylling!
10-
gem "jekyll", "~> 4.3.2"
11-
# This is the default theme for new Jekyll sites. You may change this to anything you like.
2+
3+
gem "jekyll", "~> 4.2"
4+
125
gem "minima", "~> 2.5"
13-
# If you want to use GitHub Pages, remove the "gem "jekyll"" above and
14-
# uncomment the line below. To upgrade, run `bundle update github-pages`.
15-
# gem "github-pages", group: :jekyll_plugins
16-
# If you have any plugins, put them here!
6+
177
group :jekyll_plugins do
188
gem "jekyll-feed", "~> 0.12"
199
end
2010

21-
# Windows and JRuby does not include zoneinfo files, so bundle the tzinfo-data gem
22-
# and associated library.
2311
platforms :mingw, :x64_mingw, :mswin, :jruby do
2412
gem "tzinfo", ">= 1", "< 3"
2513
gem "tzinfo-data"
2614
end
2715

28-
# Performance-booster for watching directories on Windows
2916
gem "wdm", "~> 0.1.1", :platforms => [:mingw, :x64_mingw, :mswin]
3017

31-
# Lock `http_parser.rb` gem to `v0.6.x` on JRuby builds since newer versions of the gem
32-
# do not have a Java counterpart.
3318
gem "http_parser.rb", "~> 0.6.0", :platforms => [:jruby]
19+
20+
gem "webrick", "~> 1.9"

Gemfile.lock

Lines changed: 176 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,176 @@
1+
GEM
2+
remote: https://rubygems.org/
3+
specs:
4+
addressable (2.8.7)
5+
public_suffix (>= 2.0.2, < 7.0)
6+
base64 (0.3.0)
7+
bigdecimal (3.2.2)
8+
colorator (1.1.0)
9+
concurrent-ruby (1.3.5)
10+
csv (3.3.5)
11+
em-websocket (0.5.3)
12+
eventmachine (>= 0.12.9)
13+
http_parser.rb (~> 0)
14+
eventmachine (1.2.7)
15+
ffi (1.17.2)
16+
ffi (1.17.2-aarch64-linux-gnu)
17+
ffi (1.17.2-aarch64-linux-musl)
18+
ffi (1.17.2-arm-linux-gnu)
19+
ffi (1.17.2-arm-linux-musl)
20+
ffi (1.17.2-arm64-darwin)
21+
ffi (1.17.2-x86-linux-gnu)
22+
ffi (1.17.2-x86-linux-musl)
23+
ffi (1.17.2-x86_64-darwin)
24+
ffi (1.17.2-x86_64-linux-gnu)
25+
ffi (1.17.2-x86_64-linux-musl)
26+
forwardable-extended (2.6.0)
27+
google-protobuf (4.31.1)
28+
bigdecimal
29+
rake (>= 13)
30+
google-protobuf (4.31.1-aarch64-linux-gnu)
31+
bigdecimal
32+
rake (>= 13)
33+
google-protobuf (4.31.1-aarch64-linux-musl)
34+
bigdecimal
35+
rake (>= 13)
36+
google-protobuf (4.31.1-arm64-darwin)
37+
bigdecimal
38+
rake (>= 13)
39+
google-protobuf (4.31.1-x86-linux-gnu)
40+
bigdecimal
41+
rake (>= 13)
42+
google-protobuf (4.31.1-x86-linux-musl)
43+
bigdecimal
44+
rake (>= 13)
45+
google-protobuf (4.31.1-x86_64-darwin)
46+
bigdecimal
47+
rake (>= 13)
48+
google-protobuf (4.31.1-x86_64-linux-gnu)
49+
bigdecimal
50+
rake (>= 13)
51+
google-protobuf (4.31.1-x86_64-linux-musl)
52+
bigdecimal
53+
rake (>= 13)
54+
http_parser.rb (0.8.0)
55+
i18n (1.14.7)
56+
concurrent-ruby (~> 1.0)
57+
jekyll (4.4.1)
58+
addressable (~> 2.4)
59+
base64 (~> 0.2)
60+
colorator (~> 1.0)
61+
csv (~> 3.0)
62+
em-websocket (~> 0.5)
63+
i18n (~> 1.0)
64+
jekyll-sass-converter (>= 2.0, < 4.0)
65+
jekyll-watch (~> 2.0)
66+
json (~> 2.6)
67+
kramdown (~> 2.3, >= 2.3.1)
68+
kramdown-parser-gfm (~> 1.0)
69+
liquid (~> 4.0)
70+
mercenary (~> 0.3, >= 0.3.6)
71+
pathutil (~> 0.9)
72+
rouge (>= 3.0, < 5.0)
73+
safe_yaml (~> 1.0)
74+
terminal-table (>= 1.8, < 4.0)
75+
webrick (~> 1.7)
76+
jekyll-feed (0.17.0)
77+
jekyll (>= 3.7, < 5.0)
78+
jekyll-sass-converter (3.1.0)
79+
sass-embedded (~> 1.75)
80+
jekyll-seo-tag (2.8.0)
81+
jekyll (>= 3.8, < 5.0)
82+
jekyll-watch (2.2.1)
83+
listen (~> 3.0)
84+
json (2.12.2)
85+
kramdown (2.5.1)
86+
rexml (>= 3.3.9)
87+
kramdown-parser-gfm (1.1.0)
88+
kramdown (~> 2.0)
89+
liquid (4.0.4)
90+
listen (3.9.0)
91+
rb-fsevent (~> 0.10, >= 0.10.3)
92+
rb-inotify (~> 0.9, >= 0.9.10)
93+
mercenary (0.4.0)
94+
minima (2.5.2)
95+
jekyll (>= 3.5, < 5.0)
96+
jekyll-feed (~> 0.9)
97+
jekyll-seo-tag (~> 2.1)
98+
pathutil (0.16.2)
99+
forwardable-extended (~> 2.6)
100+
public_suffix (6.0.2)
101+
rake (13.3.0)
102+
rb-fsevent (0.11.2)
103+
rb-inotify (0.11.1)
104+
ffi (~> 1.0)
105+
rexml (3.4.1)
106+
rouge (4.5.2)
107+
safe_yaml (1.0.5)
108+
sass-embedded (1.89.2)
109+
google-protobuf (~> 4.31)
110+
rake (>= 13)
111+
sass-embedded (1.89.2-aarch64-linux-android)
112+
google-protobuf (~> 4.31)
113+
sass-embedded (1.89.2-aarch64-linux-gnu)
114+
google-protobuf (~> 4.31)
115+
sass-embedded (1.89.2-aarch64-linux-musl)
116+
google-protobuf (~> 4.31)
117+
sass-embedded (1.89.2-arm-linux-androideabi)
118+
google-protobuf (~> 4.31)
119+
sass-embedded (1.89.2-arm-linux-gnueabihf)
120+
google-protobuf (~> 4.31)
121+
sass-embedded (1.89.2-arm-linux-musleabihf)
122+
google-protobuf (~> 4.31)
123+
sass-embedded (1.89.2-arm64-darwin)
124+
google-protobuf (~> 4.31)
125+
sass-embedded (1.89.2-riscv64-linux-android)
126+
google-protobuf (~> 4.31)
127+
sass-embedded (1.89.2-riscv64-linux-gnu)
128+
google-protobuf (~> 4.31)
129+
sass-embedded (1.89.2-riscv64-linux-musl)
130+
google-protobuf (~> 4.31)
131+
sass-embedded (1.89.2-x86_64-darwin)
132+
google-protobuf (~> 4.31)
133+
sass-embedded (1.89.2-x86_64-linux-android)
134+
google-protobuf (~> 4.31)
135+
sass-embedded (1.89.2-x86_64-linux-gnu)
136+
google-protobuf (~> 4.31)
137+
sass-embedded (1.89.2-x86_64-linux-musl)
138+
google-protobuf (~> 4.31)
139+
terminal-table (3.0.2)
140+
unicode-display_width (>= 1.1.1, < 3)
141+
unicode-display_width (2.6.0)
142+
webrick (1.9.1)
143+
144+
PLATFORMS
145+
aarch64-linux-android
146+
aarch64-linux-gnu
147+
aarch64-linux-musl
148+
arm-linux-androideabi
149+
arm-linux-gnu
150+
arm-linux-gnueabihf
151+
arm-linux-musl
152+
arm-linux-musleabihf
153+
arm64-darwin
154+
riscv64-linux-android
155+
riscv64-linux-gnu
156+
riscv64-linux-musl
157+
ruby
158+
x86-linux-gnu
159+
x86-linux-musl
160+
x86_64-darwin
161+
x86_64-linux-android
162+
x86_64-linux-gnu
163+
x86_64-linux-musl
164+
165+
DEPENDENCIES
166+
http_parser.rb (~> 0.6.0)
167+
jekyll (~> 4.2)
168+
jekyll-feed (~> 0.12)
169+
minima (~> 2.5)
170+
tzinfo (>= 1, < 3)
171+
tzinfo-data
172+
wdm (~> 0.1.1)
173+
webrick (~> 1.9)
174+
175+
BUNDLED WITH
176+
2.6.9

README.md

Lines changed: 33 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -1,86 +1,62 @@
1-
# Bonvin Lab webpage based on the Jekyll template [Minimal Mistakes](http://mmistakes.github.io/minimal-mistakes)
1+
# BonvinLab webpage
22

3-
See a [live version of this website](http://haddocking.github.io/) hosted on GitHub.
4-
For more information on the template and folder organization, visit the [original author's
5-
web page](http://mmistakes.github.io/minimal-mistakes/theme-setup/).
3+
> Go to [bonvinlab.org](https://bonvinlab.org) for
4+
> the latest version of the BonvinLab website.
65
7-
## Getting Started
6+
## Adding to the page
87

9-
To ensure whatever you create/change appears as faithfully as possible after pushing to the main repository, install the version of Ruby and the gems used by Github. See a list [here](https://pages.github.com/versions/).
8+
### Install dependencies
109

11-
### Installation Instructions (updt. Nov. 2023)
10+
#### Ruby
1211

13-
Following the instructions from: https://github.com/BillRaymond/install-jekyll-apple-silicon/blob/main/README.md
14-
15-
And using homebrew
16-
17-
18-
1. Install ruby3.0
12+
Install Ruby following your system's instructions.
1913

14+
```text
15+
brew install ruby
2016
```
21-
brew install [email protected]
22-
```
23-
24-
2. Add path to ruby3.0 in .bashrc (or .bash_provile)
25-
26-
export PATH="/opt/homebrew/opt/[email protected]/bin/:$PATH"
27-
28-
3. Restart your terminal and make sure you are now using ruby3.0
2917

18+
```text
19+
sudo apt install ruby-full
3020
```
31-
ruby -v
21+
22+
```text
23+
sudo pacman -S ruby ruby-erb
3224
```
3325

34-
4. Install Jekyll and Bundler
26+
#### Clone this repository
3527

36-
```
37-
gem install --user-install bundler jekyll
28+
```bash
29+
git clone --depth 1 https://github.com/haddocking/haddocking.github.io.git bonvinlab-website
30+
cd bonvinlab-website
3831
```
3932

40-
5. Add the path to the gems to in .bashrc (or .bash_provile)
33+
#### Install website dependencies
4134

42-
export PATH="~/.local/share/gem/ruby/3.0.0/bin:$PATH"
35+
These are Ruby packages (gems) required to run the website.
36+
First, install Ruby's dependency manager `bundler` and `jekyll`
4337

38+
```bash
39+
# Change the ruby version if you are not using `3.4.0`
40+
export PATH="$HOME/.local/share/gem/ruby/3.4.0/bin:$PATH"
41+
gem install --user-install bundler jekyll
42+
```
4443

45-
6. Clone the haddocking.github.io repository and install all dependency Gems with Bundler
44+
Now install the required website dependencies (gems) using Bundler.
4645

4746
```bash
48-
git clone https://github.com/haddocking/haddocking.github.io.git haddocking-website
49-
cd haddocking-website
50-
bundle init
51-
bundle add jekyll --version "~>4.2"
5247
bundle config set --local path 'vendor/bundle'
5348
bundle install
54-
bundle exec jekyll new --force --skip-bundle .
55-
bundle add webrick
56-
bundle install
5749
bundle update
5850
```
5951

60-
7. Adapt the settings in _config.yml accordingly
61-
In order for links to properly work, the `url` setting in must be set accordingly, otherwise you will be redirected to the live version. This sets all the `site.url` variable calls throughout _layouts/, _includes/, etc.
62-
63-
```yaml
64-
url: "" # Empty string will render the page successfully locally. Do not commit it to the main repository!
65-
incremental: true # This will be disabled by Github, but is useful for testing changes locally!
66-
```
67-
68-
### Running the website locally
52+
### Running the site locally
6953

70-
To preview changes, which you should always do before committing anything or making any pull requests, run the web server locally using the following:
54+
Serve it locally by running:
7155

72-
```bash --login
73-
$ bundle exec jekyll serve
74-
```
75-
76-
### Small utility to create a new post automatically. Quick and dirty replacement of `octopress new post`
77-
78-
```python
79-
$ python _utilities/create_new_article.py 'A Random Post'
56+
```bash
57+
bundle exec jekyll serve
8058
```
8159

82-
8. For updating jeckyll and bundle
60+
It should now be served on [http://127.0.0.1:4000](http://127.0.0.1:4000)
8361

84-
```bash
85-
$ gem update jekyll
86-
$ gem update bundle
62+
Go ahead and edit/add what you need! To see the rendered version, refresh the page.

0 commit comments

Comments
 (0)