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:
python -m venv env
source env/bin/activate
pip install -r scripts/requirements.txt
cd previews
npm install
cd ..
Running:
source env/bin/activate
python scripts/create.py