- Ruby (see below)
- Install RVM: https://github.com/rvm/ubuntu_rvm#rvm-package-for-ubuntu
- Install the applicable version of Ruby:
rvm install "ruby-3.1.3"
In Windows, you can install the Chocolatey package manager (and subsequently, Ruby), via the following Powershell command (must be run with Administrator privileges):
Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
Then:
choco install ruby
cd
into project directory- Execute:
gem install bundler
- Execute:
gem install bundler:1.17.2
- Execute:
bundle install
- Execute:
bundle update
(also run to update Jekyll where required)
If confronted with the following error in when attempting to run bundle install
PowerShell, MSYS2 could not be found. Please run 'ridk install', then:
- Execute:
Set-ExecutionPolicy -Scope CurrentUser
- Specify:
remotesigned
, and select[A] Yes to All
- Execute:
ridk install
- Execute:
bundler exec jekyll serve
(orbundler exec jekyll serve -D
to include 'Draft' content) - Preview your local Jekyll site in your web browser at localhost:4000.
- Install Livereload plugin for Chrome
- Execute:
bundler exec guard
- Install node from command prompt (w/ admin privileges):
choco install nodejs
- Reopen command prompt
- Run:
npm install -g livereloadx
- Install the applicable Browser Extension
Once installed, run the following command in the project directory:
livereloadx _site
Further command line options are described within the LiveReloadX documentation.
- Add bitbucket credentials
git clone git@bitbucket.org:jack_barker/jackbarker-com-au_drafts.git _drafts
bundle exec htmlproofer ./_site --only-4xx --check-favicon --check-html --check-opengraph --assume-extension
bundle exec yaspeller ./_site/**/*.html --ignore-urls
Requires bash shell and imagemagick.
To install imagemagick within WSL (Windows Subsystem for Linux):
sudo apt-get update
sudo apt-get install -y build-essential checkinstall
sudo apt-get install -y imagemagick libmagickcore-dev libmagickwand-dev libmagic-dev
cd
wget https://www.imagemagick.org/download/ImageMagick.tar.gz
tar xvzf ImageMagick.tar.gz
cd ImageMagick-*
./configure
make clean
make
sudo make install
sudo ldconfig /usr/local/lib
Then, to compile images:
cd /mnt/c/.../jackbarker-com-au/images
./build_images.sh
Supported Markdown / Github emoji, is listed here.