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
+28-3Lines changed: 28 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,6 +12,30 @@ The key to contributing is being able to edit and
12
12
preview your content. [Your pull requests are welcome](https://github.com/scala-js/scala-js-website/compare)!
13
13
14
14
## Set up
15
+
16
+
### With Docker
17
+
18
+
You need to have [Docker Engine](https://docs.docker.com/engine/) and [Docker Compose](https://docs.docker.com/compose/) installed on your machine.
19
+
Under Mac OS (Intel or Apple silicon), instead of installing [Docker Desktop](https://docs.docker.com/desktop/) you can also use [HomeBrew](https://brew.sh/) with [Colima](https://github.com/abiosoft/colima): `brew install colima docker docker-compose`.
20
+
21
+
```
22
+
docker-compose up --build
23
+
```
24
+
25
+
On Linux you may have to prefix that command with `sudo`, depending on your Docker setup.
26
+
27
+
The generated site is available at `http://localhost:4000`.
28
+
29
+
When the website dependencies change (the content of the `Gemfile`), you have to kill and re-run the command.
30
+
31
+
If you have problems with the Docker image or want to force the rebuild of the Docker image:
32
+
33
+
```
34
+
docker-compose build --no-cache
35
+
```
36
+
37
+
### Manually with Ruby tooling
38
+
15
39
As this website is built with [Jekyll](http://jekyllrb.com/),
16
40
we will need to set up some Ruby tooling.
17
41
@@ -22,7 +46,7 @@ $ rvm use 2.7.5 --install
22
46
23
47
# Set up Bundler, a Ruby package manager
24
48
# It downloads dependencies specified in a Gemfile
25
-
# but into a local path unlike gem
49
+
# but into a local path unlike gem
26
50
$ gem install bundler
27
51
# and if this fails, try installing libffi first (distro-specific):
28
52
# sudo apt install libffi-dev
@@ -34,8 +58,9 @@ $ bundle install
34
58
$ bundle exec jekyll build
35
59
```
36
60
37
-
## Editing live
38
-
This is what you would do after initial installation:
61
+
#### Editing live
62
+
63
+
This is what you would do after the initial installation:
0 commit comments