Use ruby 2.7.0:
rvm use ruby-2.7.0
gem install bundler
Running it for the first time:
bundle install
Running Jekyll:
bundle exec jekyll serve
Build the docker image for the cover generator:
cd previews
docker build -t datatalks-cover-generator .
cd ..
Now let's generate the image:
- the article:
_posts/2020-12-07-practical-guide-better-code.md
- the output file:
images/posts/2020-12-07-practical-guide-better-code/cover.jpg
./scripts/generate-post-preview.sh 2021-02-01-landing-product-analyst-job
Book cover:
./scripts/generate-book-preview.sh 20210301-ml-engineering
Installing the requirements:
pipenv install
cd previews
npm install
cd ..
Running:
pipenv run python scripts/create.py