Skip to content

Commit ad21462

Browse files
committed
Use a Makefile to make things easier
(pun intented)
1 parent 8b69364 commit ad21462

2 files changed

Lines changed: 14 additions & 11 deletions

File tree

Makefile

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
.PHONY: all css serve-dev
2+
3+
all:
4+
@echo '# These are the available make targets'
5+
@grep '^[^#[:space:]\.].*:' Makefile | grep -v all: | tr -d :
6+
7+
css:
8+
npm install
9+
npx less --clean-css="--s1 --advanced" styles/styles.less > styles/styles.min.css
10+
11+
serve-dev:
12+
docker run -it -p 4000:4000 -v $(pwd):/site -w /site library/ruby bash -c 'bundle install && bundle exec jekyll serve -H 0.0.0.0'

README.md

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,8 @@ The pages are rendered with Jekyll and kindly hosted by github.
77

88
## Run it locally
99

10-
... with Docker:
11-
12-
```
13-
docker run -it -p 4000:4000 -v $(pwd):/site -w /site library/ruby bash -c 'bundle install && bundle exec jekyll serve -H 0.0.0.0'
14-
```
10+
... with Docker: `make serve-dev`
1511

1612
## Build CSS
1713

18-
To build the stylesheets run this:
19-
20-
```
21-
npm install
22-
npx less --clean-css="--s1 --advanced" styles/styles.less > styles/styles.min.css
23-
```
14+
To build the stylesheets run `make css`.

0 commit comments

Comments
 (0)