Skip to content

Commit 3da6968

Browse files
authored
Merge pull request #134 from melissawm/fix-readme
Update README for local build
2 parents 67f138a + 0d75248 commit 3da6968

File tree

6 files changed

+144
-67
lines changed

6 files changed

+144
-67
lines changed

.github/dependabot.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# .github/dependabot.yml
2+
version: 2
3+
updates:
4+
- package-ecosystem: 'bundler'
5+
directory: '/'
6+
schedule:
7+
interval: 'daily'

.readthedocs.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ version: 2
77

88
# Set the version of Python and other tools you might need
99
build:
10-
os: ubuntu-22.04
10+
os: ubuntu-24.04
1111
commands:
1212
- gpg --keyserver hkp://keyserver.ubuntu.com --recv-keys 409b6b1796c275462a1703113804bb82d39dc0e3 7d2baf1cf37b13e2069d6956105bd0e739499bdb && curl -sSL https://get.rvm.io | bash -s stable
13-
- ~/.rvm/bin/rvm autolibs disable && ~/.rvm/bin/rvm install ruby 3.1.2
14-
- PATH="$HOME/.rvm/rubies/ruby-3.1.2/bin:$PATH" gem install bundler
15-
- PATH="$HOME/.rvm/rubies/ruby-3.1.2/bin:$PATH" bundle install
16-
- PATH="$HOME/.rvm/rubies/ruby-3.1.2/bin:$PATH" bundle exec jekyll build --destination _readthedocs/html --baseurl $(echo -n "$READTHEDOCS_CANONICAL_URL" | cut -d '/' -f 4-)
13+
- ~/.rvm/bin/rvm autolibs disable && ~/.rvm/bin/rvm install ruby 3.4.3
14+
- PATH="$HOME/.rvm/rubies/ruby-3.4.3/bin:$PATH" gem install bundler
15+
- PATH="$HOME/.rvm/rubies/ruby-3.4.3/bin:$PATH" bundle install
16+
- PATH="$HOME/.rvm/rubies/ruby-3.4.3/bin:$PATH" bundle exec jekyll build --destination _readthedocs/html --baseurl $(echo -n "$READTHEDOCS_CANONICAL_URL" | cut -d '/' -f 4-)

Dockerfile

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
FROM ruby:3.4-slim
2+
3+
RUN gem install bundler
4+
5+
COPY . /src
6+
WORKDIR /src
7+
8+
RUN apt-get update -y
9+
RUN apt-get install ruby-dev -y
10+
RUN apt-get install make gcc g++ -y
11+
RUN bundle install
12+
RUN cat Gemfile.lock
13+
ENTRYPOINT bundle exec jekyll serve

Gemfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,16 @@ gem "github-pages", group: :jekyll_plugins
1717

1818
# If you have any plugins, put them here!
1919
group :jekyll_plugins do
20-
gem "jekyll-feed", "~> 0.13"
21-
gem "jekyll-include-cache"
22-
gem "jekyll-sitemap"
20+
gem "jekyll-feed", "~> 0.17"
21+
gem "jekyll-include-cache", "~> 0.2"
22+
gem "jekyll-sitemap", "~> 1.4"
2323
end
2424

2525
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
2626
gem "tzinfo-data", platforms: [:mingw, :mswin, :x64_mingw, :jruby]
2727

2828
# Performance-booster for watching directories on Windows
29-
gem "wdm", "~> 0.1.0" if Gem.win_platform?
29+
gem "wdm", "~> 0.2.0" if Gem.win_platform?
3030

3131

3232
gem "webrick", "~> 1.8"

Gemfile.lock

Lines changed: 86 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -1,52 +1,67 @@
11
GEM
22
remote: https://rubygems.org/
33
specs:
4-
activesupport (7.1.3)
4+
activesupport (8.0.2)
55
base64
6+
benchmark (>= 0.3)
67
bigdecimal
7-
concurrent-ruby (~> 1.0, >= 1.0.2)
8+
concurrent-ruby (~> 1.0, >= 1.3.1)
89
connection_pool (>= 2.2.5)
910
drb
1011
i18n (>= 1.6, < 2)
12+
logger (>= 1.4.2)
1113
minitest (>= 5.1)
12-
mutex_m
13-
tzinfo (~> 2.0)
14-
addressable (2.8.6)
15-
public_suffix (>= 2.0.2, < 6.0)
14+
securerandom (>= 0.3)
15+
tzinfo (~> 2.0, >= 2.0.5)
16+
uri (>= 0.13.1)
17+
addressable (2.8.7)
18+
public_suffix (>= 2.0.2, < 7.0)
1619
base64 (0.2.0)
17-
bigdecimal (3.1.6)
20+
benchmark (0.4.0)
21+
bigdecimal (3.1.9)
1822
coffee-script (2.4.1)
1923
coffee-script-source
2024
execjs
2125
coffee-script-source (1.12.2)
2226
colorator (1.1.0)
23-
commonmarker (0.23.10)
24-
concurrent-ruby (1.2.3)
25-
connection_pool (2.4.1)
26-
dnsruby (1.70.0)
27+
commonmarker (0.23.11)
28+
concurrent-ruby (1.3.5)
29+
connection_pool (2.5.1)
30+
csv (3.3.4)
31+
dnsruby (1.72.4)
32+
base64 (~> 0.2.0)
33+
logger (~> 1.6.5)
2734
simpleidn (~> 0.2.1)
28-
drb (2.2.0)
29-
ruby2_keywords
35+
drb (2.2.1)
3036
em-websocket (0.5.3)
3137
eventmachine (>= 0.12.9)
3238
http_parser.rb (~> 0)
3339
ethon (0.16.0)
3440
ffi (>= 1.15.0)
3541
eventmachine (1.2.7)
36-
execjs (2.9.1)
37-
faraday (2.9.0)
38-
faraday-net_http (>= 2.0, < 3.2)
39-
faraday-net_http (3.1.0)
40-
net-http
41-
ffi (1.16.3)
42+
execjs (2.10.0)
43+
faraday (2.13.0)
44+
faraday-net_http (>= 2.0, < 3.5)
45+
json
46+
logger
47+
faraday-net_http (3.4.0)
48+
net-http (>= 0.5.0)
49+
ffi (1.17.2-aarch64-linux-gnu)
50+
ffi (1.17.2-aarch64-linux-musl)
51+
ffi (1.17.2-arm-linux-gnu)
52+
ffi (1.17.2-arm-linux-musl)
53+
ffi (1.17.2-arm64-darwin)
54+
ffi (1.17.2-x86_64-darwin)
55+
ffi (1.17.2-x86_64-linux-gnu)
56+
ffi (1.17.2-x86_64-linux-musl)
4257
forwardable-extended (2.6.0)
4358
gemoji (4.1.0)
44-
github-pages (231)
59+
github-pages (232)
4560
github-pages-health-check (= 1.18.2)
46-
jekyll (= 3.9.5)
61+
jekyll (= 3.10.0)
4762
jekyll-avatar (= 0.8.0)
4863
jekyll-coffeescript (= 1.2.2)
49-
jekyll-commonmark-ghpages (= 0.4.0)
64+
jekyll-commonmark-ghpages (= 0.5.1)
5065
jekyll-default-layout (= 0.1.5)
5166
jekyll-feed (= 0.17.0)
5267
jekyll-gist (= 1.5.0)
@@ -83,9 +98,10 @@ GEM
8398
liquid (= 4.0.4)
8499
mercenary (~> 0.3)
85100
minima (= 2.5.1)
86-
nokogiri (>= 1.13.6, < 2.0)
101+
nokogiri (>= 1.16.2, < 2.0)
87102
rouge (= 3.30.0)
88103
terminal-table (~> 1.4)
104+
webrick (~> 1.8)
89105
github-pages-health-check (1.18.2)
90106
addressable (~> 2.3)
91107
dnsruby (~> 1.60)
@@ -96,11 +112,12 @@ GEM
96112
activesupport (>= 2)
97113
nokogiri (>= 1.4)
98114
http_parser.rb (0.8.0)
99-
i18n (1.14.1)
115+
i18n (1.14.7)
100116
concurrent-ruby (~> 1.0)
101-
jekyll (3.9.5)
117+
jekyll (3.10.0)
102118
addressable (~> 2.4)
103119
colorator (~> 1.0)
120+
csv (~> 3.0)
104121
em-websocket (~> 0.5)
105122
i18n (>= 0.7, < 2)
106123
jekyll-sass-converter (~> 1.0)
@@ -111,16 +128,17 @@ GEM
111128
pathutil (~> 0.9)
112129
rouge (>= 1.7, < 4)
113130
safe_yaml (~> 1.0)
131+
webrick (>= 1.0)
114132
jekyll-avatar (0.8.0)
115133
jekyll (>= 3.0, < 5.0)
116134
jekyll-coffeescript (1.2.2)
117135
coffee-script (~> 2.2)
118136
coffee-script-source (~> 1.12)
119137
jekyll-commonmark (1.4.0)
120138
commonmarker (~> 0.22)
121-
jekyll-commonmark-ghpages (0.4.0)
122-
commonmarker (~> 0.23.7)
123-
jekyll (~> 3.9.0)
139+
jekyll-commonmark-ghpages (0.5.1)
140+
commonmarker (>= 0.23.7, < 1.1.0)
141+
jekyll (>= 3.9, < 4.0)
124142
jekyll-commonmark (~> 1.4.0)
125143
rouge (>= 2.0, < 5.0)
126144
jekyll-default-layout (0.1.5)
@@ -206,41 +224,53 @@ GEM
206224
gemoji (>= 3, < 5)
207225
html-pipeline (~> 2.2)
208226
jekyll (>= 3.0, < 5.0)
227+
json (2.10.2)
209228
kramdown (2.4.0)
210229
rexml
211230
kramdown-parser-gfm (1.1.0)
212231
kramdown (~> 2.0)
213232
liquid (4.0.4)
214-
listen (3.8.0)
233+
listen (3.9.0)
215234
rb-fsevent (~> 0.10, >= 0.10.3)
216235
rb-inotify (~> 0.9, >= 0.9.10)
236+
logger (1.6.6)
217237
mercenary (0.3.6)
218-
mini_portile2 (2.8.8)
219238
minima (2.5.1)
220239
jekyll (>= 3.5, < 5.0)
221240
jekyll-feed (~> 0.9)
222241
jekyll-seo-tag (~> 2.1)
223-
minitest (5.22.2)
224-
mutex_m (0.2.0)
225-
net-http (0.4.1)
242+
minitest (5.25.5)
243+
net-http (0.6.0)
226244
uri
227-
nokogiri (1.18.4)
228-
mini_portile2 (~> 2.8.2)
245+
nokogiri (1.18.7-aarch64-linux-gnu)
246+
racc (~> 1.4)
247+
nokogiri (1.18.7-aarch64-linux-musl)
248+
racc (~> 1.4)
249+
nokogiri (1.18.7-arm-linux-gnu)
250+
racc (~> 1.4)
251+
nokogiri (1.18.7-arm-linux-musl)
252+
racc (~> 1.4)
253+
nokogiri (1.18.7-arm64-darwin)
254+
racc (~> 1.4)
255+
nokogiri (1.18.7-x86_64-darwin)
256+
racc (~> 1.4)
257+
nokogiri (1.18.7-x86_64-linux-gnu)
258+
racc (~> 1.4)
259+
nokogiri (1.18.7-x86_64-linux-musl)
229260
racc (~> 1.4)
230261
octokit (4.25.1)
231262
faraday (>= 1, < 3)
232263
sawyer (~> 0.9)
233264
pathutil (0.16.2)
234265
forwardable-extended (~> 2.6)
235-
public_suffix (5.0.4)
266+
public_suffix (5.1.1)
236267
racc (1.8.1)
237268
rb-fsevent (0.11.2)
238-
rb-inotify (0.10.1)
269+
rb-inotify (0.11.1)
239270
ffi (~> 1.0)
240-
rexml (3.3.9)
271+
rexml (3.4.1)
241272
rouge (3.30.0)
242-
ruby2_keywords (0.0.5)
243-
rubyzip (2.3.2)
273+
rubyzip (2.4.1)
244274
safe_yaml (1.0.5)
245275
sass (3.7.4)
246276
sass-listen (~> 4.0.0)
@@ -250,33 +280,37 @@ GEM
250280
sawyer (0.9.2)
251281
addressable (>= 2.3.5)
252282
faraday (>= 0.17.3, < 3)
253-
simpleidn (0.2.1)
254-
unf (~> 0.1.4)
283+
securerandom (0.4.1)
284+
simpleidn (0.2.3)
255285
terminal-table (1.8.0)
256286
unicode-display_width (~> 1.1, >= 1.1.1)
257287
typhoeus (1.4.1)
258288
ethon (>= 0.9.0)
259289
tzinfo (2.0.6)
260290
concurrent-ruby (~> 1.0)
261-
unf (0.1.4)
262-
unf_ext
263-
unf_ext (0.0.9.1)
264291
unicode-display_width (1.8.0)
265-
uri (0.13.0)
266-
webrick (1.8.2)
292+
uri (1.0.3)
293+
webrick (1.9.1)
267294

268295
PLATFORMS
269-
ruby
296+
aarch64-linux-gnu
297+
aarch64-linux-musl
298+
arm-linux-gnu
299+
arm-linux-musl
300+
arm64-darwin
301+
x86_64-darwin
302+
x86_64-linux-gnu
303+
x86_64-linux-musl
270304

271305
DEPENDENCIES
272306
github-pages
273-
jekyll-feed (~> 0.13)
274-
jekyll-include-cache
307+
jekyll-feed (~> 0.17)
308+
jekyll-include-cache (~> 0.2)
275309
jekyll-redirect-from
276-
jekyll-sitemap
310+
jekyll-sitemap (~> 1.4)
277311
kramdown-parser-gfm
278312
tzinfo-data
279313
webrick (~> 1.8)
280314

281315
BUNDLED WITH
282-
2.3.6
316+
2.6.8

README.md

Lines changed: 29 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,39 @@ Main Zarr website hosted at https://zarr.dev
44

55
## Building
66

7+
To build the webpage, you will need a working Ruby installation.
8+
9+
If you are on Ubuntu and want to install the requirements locally,
10+
follow the steps below as root. Alternatively, see the Dockerfile
11+
for an alternative.
12+
13+
1. Install `rvm`.
14+
15+
```
16+
gpg --keyserver hkp://keyserver.ubuntu.com --recv-keys 409b6b1796c275462a1703113804bb82d39dc0e3 7d2baf1cf37b13e2069d6956105bd0e739499bdb && curl -sSL https://get.rvm.io | bash -s stable
17+
```
18+
19+
2. Install Ruby
20+
```
21+
rvm autolibs disable && rvm install ruby 3.4.3
22+
```
23+
24+
Note that if the above fails, you may need to specify the path for the `rvm` command in your system.
25+
26+
3. Install `bundler`
27+
28+
```
29+
gem install bundler
30+
```
31+
32+
4. In the root of the repository, run:
33+
734
```
8-
conda create -n zarr.dev -c conda-forge rb-bundler c-compiler compilers cxx-compiler
9-
conda activate zarr.dev
1035
bundle install
11-
bundle exec jekyll serve
1236
```
1337

14-
Note: using conda-forge packages directly failed on eventmachine (Dec 2021):
38+
5. Build and serve the site locally:
39+
1540
```
16-
conda create -n zarr.dev -c conda-forge rb-jekyll rb-bundler rb-public_suffix rb-minima rb-jekyll-feed
17-
conda activate zarr.dev
1841
bundle exec jekyll serve
1942
```

0 commit comments

Comments
 (0)